Logo ROOT   6.08/07
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 #ifndef ROOT_TObject
8 #include "TObject.h"
9 #endif
10 
11 #include "TVectorDfwd.h"
12 
13 class TConfidenceLevel;
14 class TRandom;
15 class TLimitDataSource;
16 class TArrayD;
17 class TOrdCollection;
18 class TH1;
19 
20 class TLimit {
21  protected:
22  static bool Fluctuate(TLimitDataSource * input, TLimitDataSource * output, bool init,TRandom *, bool stat=false);
24 
25 public:
26  TLimit() {}
27  virtual ~TLimit() {}
29  Int_t nmc =50000,
30  bool stat = false,
31  TRandom * generator = 0);
33  Int_t nmc =50000,
34  bool stat = false,
35  TRandom * generator = 0);
37  TVectorD* se, TVectorD* be, TObjArray*,
38  Int_t nmc =50000,
39  bool stat = false,
40  TRandom * generator = 0);
41  static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
42  Int_t nmc =50000,
43  bool stat = false,
44  TRandom * generator = 0);
45  static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
46  TVectorD* se, TVectorD* be, TObjArray*,
47  Int_t nmc =50000,
48  bool stat = false,
49  TRandom * generator = 0);
50  private:
51  static TArrayD *fgTable; // a log table... just to speed up calculation
52  static TOrdCollection *fgSystNames; // Collection of systematics names
53  ClassDef(TLimit, 2) // Class to compute 95% CL limits
54 };
55 
56 #endif
57 
An array of TObjects.
Definition: TObjArray.h:39
static TOrdCollection * fgSystNames
Definition: TLimit.h:52
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:26
#define ClassDef(name, id)
Definition: Rtypes.h:254
This is the base class for the ROOT Random number generators.
Definition: TRandom.h:31
virtual ~TLimit()
Definition: TLimit.h:27
Algorithm to compute 95% C.L.
Definition: TLimit.h:20
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.
static Int_t init()
double Double_t
Definition: RtypesCore.h:55
The TH1 histogram class.
Definition: TH1.h:80
Array of doubles (64 bits per element).
Definition: TArrayD.h:29
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:51