/usr/include/root/TLimit.h is in libroot-hist-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | // @(#)root/hist:$Id$
// Author: Christophe.Delaere@cern.ch 21/08/2002
#ifndef ROOT_TLimit
#define ROOT_TLimit
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#include "TVectorDfwd.h"
class TConfidenceLevel;
class TRandom;
class TLimitDataSource;
class TArrayD;
class TOrdCollection;
class TH1;
//____________________________________________________________________
//
// TLimit
//
// This class computes 95% Confidence Levels.
//
// Implemented by C. Delaere from the mclimit code written by Tom Junk.
// reference: HEP-EX/9902006
// See http://cern.ch/thomasj/searchlimits/ecl.html for more details.
//____________________________________________________________________
class TLimit {
protected:
static bool Fluctuate(TLimitDataSource * input, TLimitDataSource * output, bool init,TRandom *, bool stat=false);
static Double_t LogLikelihood(Double_t s, Double_t b, Double_t b2, Double_t d);
public:
TLimit() {}
virtual ~TLimit() {}
static TConfidenceLevel *ComputeLimit(TLimitDataSource * data,
Int_t nmc =50000,
bool stat = false,
TRandom * generator = 0);
static TConfidenceLevel *ComputeLimit(Double_t s, Double_t b, Int_t d,
Int_t nmc =50000,
bool stat = false,
TRandom * generator = 0);
static TConfidenceLevel *ComputeLimit(Double_t s, Double_t b, Int_t d,
TVectorD* se, TVectorD* be, TObjArray*,
Int_t nmc =50000,
bool stat = false,
TRandom * generator = 0);
static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
Int_t nmc =50000,
bool stat = false,
TRandom * generator = 0);
static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
TVectorD* se, TVectorD* be, TObjArray*,
Int_t nmc =50000,
bool stat = false,
TRandom * generator = 0);
private:
static TArrayD *fgTable; // a log table... just to speed up calculation
static TOrdCollection *fgSystNames; // Collection of systematics names
ClassDef(TLimit, 2) // Class to compute 95% CL limits
};
#endif
|