Logo ROOT   6.14/05
Reference Guide
TLimit.h
Go to the documentation of this file.
1 // @(#)root/hist:$Id$
2 // Author: Christophe.Delaere@cern.ch 21/08/2002
3 
4 #ifndef ROOT_TLimit
5 #define ROOT_TLimit
6 
7 #include "TObject.h"
8 
9 #include "TVectorDfwd.h"
10 
11 class TConfidenceLevel;
12 class TRandom;
13 class TLimitDataSource;
14 class TArrayD;
15 class TOrdCollection;
16 class TH1;
17 
18 class TLimit {
19  protected:
20  static bool Fluctuate(TLimitDataSource * input, TLimitDataSource * output, bool init,TRandom *, bool stat=false);
22 
23 public:
24  TLimit() {}
25  virtual ~TLimit() {}
27  Int_t nmc =50000,
28  bool stat = false,
29  TRandom * generator = 0);
31  Int_t nmc =50000,
32  bool stat = false,
33  TRandom * generator = 0);
35  TVectorD* se, TVectorD* be, TObjArray*,
36  Int_t nmc =50000,
37  bool stat = false,
38  TRandom * generator = 0);
39  static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
40  Int_t nmc =50000,
41  bool stat = false,
42  TRandom * generator = 0);
43  static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
44  TVectorD* se, TVectorD* be, TObjArray*,
45  Int_t nmc =50000,
46  bool stat = false,
47  TRandom * generator = 0);
48  private:
49  static TArrayD *fgTable; // a log table... just to speed up calculation
50  static TOrdCollection *fgSystNames; // Collection of systematics names
51  ClassDef(TLimit, 2) // Class to compute 95% CL limits
52 };
53 
54 #endif
55 
An array of TObjects.
Definition: TObjArray.h:37
static TOrdCollection * fgSystNames
Definition: TLimit.h:50
int Int_t
Definition: RtypesCore.h:41
static Double_t LogLikelihood(Double_t s, Double_t b, Double_t b2, Double_t d)
Definition: TLimit.cxx:407
static bool Fluctuate(TLimitDataSource *input, TLimitDataSource *output, bool init, TRandom *, bool stat=false)
Definition: TLimit.cxx:228
This class serves as interface to feed data into the TLimit routines.
TLimit()
Definition: TLimit.h:24
#define ClassDef(name, id)
Definition: Rtypes.h:320
This is the base class for the ROOT Random number generators.
Definition: TRandom.h:27
virtual ~TLimit()
Definition: TLimit.h:25
Algorithm to compute 95% C.L.
Definition: TLimit.h:18
static TConfidenceLevel * ComputeLimit(TLimitDataSource *data, Int_t nmc=50000, bool stat=false, TRandom *generator=0)
Definition: TLimit.cxx:103
Class to compute 95% CL limits.
#define d(i)
Definition: RSha256.hxx:102
static Int_t init()
double Double_t
Definition: RtypesCore.h:55
The TH1 histogram class.
Definition: TH1.h:56
static constexpr double s
Array of doubles (64 bits per element).
Definition: TArrayD.h:27
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
Ordered collection.
static TArrayD * fgTable
Definition: TLimit.h:49