Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "Rtypes.h"
8
9#include "TVectorDfwd.h"
10
12class TRandom;
14class TArrayD;
15class TOrdCollection;
16class TH1;
17class TObjArray;
18
19class TLimit {
20 protected:
21 static bool Fluctuate(TLimitDataSource * input, TLimitDataSource * output, bool init,TRandom *, bool stat=false);
23
24public:
25 TLimit() {}
26 virtual ~TLimit() {}
28 Int_t nmc =50000,
29 bool stat = false,
30 TRandom * generator = nullptr);
32 Int_t nmc =50000,
33 bool stat = false,
34 TRandom * generator = nullptr);
36 TVectorD* se, TVectorD* be, TObjArray*,
37 Int_t nmc =50000,
38 bool stat = false,
39 TRandom * generator = nullptr);
40 static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
41 Int_t nmc =50000,
42 bool stat = false,
43 TRandom * generator = nullptr);
44 static TConfidenceLevel *ComputeLimit(TH1* s, TH1* b, TH1* d,
45 TVectorD* se, TVectorD* be, TObjArray*,
46 Int_t nmc =50000,
47 bool stat = false,
48 TRandom * generator = nullptr);
49 private:
50 static TArrayD *fgTable; ///< A log table... just to speed up calculation
51 static TOrdCollection *fgSystNames; ///< Collection of systematics names
52 ClassDef(TLimit, 2) // Class to compute 95% CL limits
53};
54
55#endif
56
#define d(i)
Definition RSha256.hxx:102
#define b(i)
Definition RSha256.hxx:100
int Int_t
Definition RtypesCore.h:45
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:337
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Array of doubles (64 bits per element).
Definition TArrayD.h:27
Class to compute 95% CL limits.
TH1 is the base class of all histogram classes in ROOT.
Definition TH1.h:59
This class serves as input for the TLimit::ComputeLimit method.
<div class="legacybox"><h2>Legacy Code</h2> TLimit is a legacy interface: there will be no bug fixes ...
Definition TLimit.h:19
static Double_t LogLikelihood(Double_t s, Double_t b, Double_t b2, Double_t d)
Definition TLimit.cxx:406
virtual ~TLimit()
Definition TLimit.h:26
static TOrdCollection * fgSystNames
Collection of systematics names.
Definition TLimit.h:51
static TArrayD * fgTable
A log table... just to speed up calculation.
Definition TLimit.h:50
static bool Fluctuate(TLimitDataSource *input, TLimitDataSource *output, bool init, TRandom *, bool stat=false)
Definition TLimit.cxx:227
static TConfidenceLevel * ComputeLimit(TLimitDataSource *data, Int_t nmc=50000, bool stat=false, TRandom *generator=nullptr)
Definition TLimit.cxx:102
TLimit()
Definition TLimit.h:25
An array of TObjects.
Definition TObjArray.h:31
Ordered collection.
This is the base class for the ROOT Random number generators.
Definition TRandom.h:27
static void output()