Logo ROOT  
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
12class TRandom;
14class TArrayD;
15class TOrdCollection;
16class TH1;
17
18class TLimit {
19 protected:
20 static bool Fluctuate(TLimitDataSource * input, TLimitDataSource * output, bool init,TRandom *, bool stat=false);
22
23public:
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);
40 Int_t nmc =50000,
41 bool stat = false,
42 TRandom * generator = 0);
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
#define d(i)
Definition: RSha256.hxx:102
#define b(i)
Definition: RSha256.hxx:100
int Int_t
Definition: RtypesCore.h:43
double Double_t
Definition: RtypesCore.h:57
#define ClassDef(name, id)
Definition: Rtypes.h:322
Array of doubles (64 bits per element).
Definition: TArrayD.h:27
Class to compute 95% CL limits.
The TH1 histogram class.
Definition: TH1.h:56
This class serves as interface to feed data into the TLimit routines.
Algorithm to compute 95% C.L.
Definition: TLimit.h:18
static Double_t LogLikelihood(Double_t s, Double_t b, Double_t b2, Double_t d)
Definition: TLimit.cxx:407
virtual ~TLimit()
Definition: TLimit.h:25
static TOrdCollection * fgSystNames
Definition: TLimit.h:50
static TArrayD * fgTable
Definition: TLimit.h:49
static TConfidenceLevel * ComputeLimit(TLimitDataSource *data, Int_t nmc=50000, bool stat=false, TRandom *generator=0)
Definition: TLimit.cxx:103
static bool Fluctuate(TLimitDataSource *input, TLimitDataSource *output, bool init, TRandom *, bool stat=false)
Definition: TLimit.cxx:228
TLimit()
Definition: TLimit.h:24
An array of TObjects.
Definition: TObjArray.h:37
Ordered collection.
This is the base class for the ROOT Random number generators.
Definition: TRandom.h:27
EvaluateInfo init(std::vector< RooRealProxy > parameters, std::vector< ArrayWrapper * > wrappers, std::vector< double * > arrays, size_t begin, size_t batchSize)
static constexpr double s
static void output(int code)
Definition: gifencode.c:226