Logo ROOT  
Reference Guide
TLimitDataSource.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_TLimitDataSource
5 #define ROOT_TLimitDataSource
6 
7 #include "TObjArray.h"
8 
9 #include "TVectorDfwd.h"
10 
11 class TH1;
12 
13 //_______________________________________________________________________
14 //
15 // TLimitDataSource
16 //
17 // This class serves as input for the TLimit::ComputeLimit method.
18 // It takes the signal, background and data histograms to form a channel.
19 // More channels can be added using AddChannel(), as well as different
20 // systematics sources.
21 //_______________________________________________________________________
22 
23 
24 class TLimitDataSource : public TObject{
25 public:
27  virtual ~TLimitDataSource() {}
29  TLimitDataSource(TH1* s,TH1* b,TH1* d, TVectorD* es,TVectorD* eb,TObjArray* names);
30  virtual void AddChannel(TH1*,TH1*,TH1*);
31  virtual void AddChannel(TH1*,TH1*,TH1*,TVectorD*, TVectorD*, TObjArray*);
32  inline virtual TObjArray* GetSignal() { return &fSignal;}
33  inline virtual TObjArray* GetBackground() { return &fBackground;}
34  inline virtual TObjArray* GetCandidates() { return &fCandidates;}
35  inline virtual TObjArray* GetErrorOnSignal() { return &fErrorOnSignal;}
36  inline virtual TObjArray* GetErrorOnBackground() { return &fErrorOnBackground;}
37  inline virtual TObjArray* GetErrorNames() { return &fIds;}
38  virtual void SetOwner(bool swtch=kTRUE);
39 private:
40  // The arrays used to store the packed inputs
41  TObjArray fSignal; //packed input signal
42  TObjArray fBackground; //packed input background
43  TObjArray fCandidates; //packed input candidates (data)
44  TObjArray fErrorOnSignal; //packed error sources for signal
45  TObjArray fErrorOnBackground; //packed error sources for background
46  TObjArray fIds; //packed IDs for the different error sources
47  // some dummy objects that the class will use and delete
48  TObjArray fDummyTA; //array of dummy object (used for bookeeping)
49  TObjArray fDummyIds; //array of dummy object (used for bookeeping)
50 
51  ClassDef(TLimitDataSource, 2 ) // input for TLimit routines
52 };
53 
54 #endif
TLimitDataSource::fErrorOnBackground
TObjArray fErrorOnBackground
Definition: TLimitDataSource.h:45
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TObjArray
Definition: TObjArray.h:37
TLimitDataSource::fBackground
TObjArray fBackground
Definition: TLimitDataSource.h:42
TLimitDataSource::~TLimitDataSource
virtual ~TLimitDataSource()
Definition: TLimitDataSource.h:27
TLimitDataSource::fSignal
TObjArray fSignal
Definition: TLimitDataSource.h:41
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
TLimitDataSource::TLimitDataSource
TLimitDataSource()
Definition: TLimitDataSource.cxx:18
TVectorDfwd.h
b
#define b(i)
Definition: RSha256.hxx:118
TLimitDataSource::GetCandidates
virtual TObjArray * GetCandidates()
Definition: TLimitDataSource.h:34
TLimitDataSource::fDummyIds
TObjArray fDummyIds
Definition: TLimitDataSource.h:49
TLimitDataSource::GetBackground
virtual TObjArray * GetBackground()
Definition: TLimitDataSource.h:33
TLimitDataSource
Definition: TLimitDataSource.h:24
TLimitDataSource::fDummyTA
TObjArray fDummyTA
Definition: TLimitDataSource.h:48
TLimitDataSource::AddChannel
virtual void AddChannel(TH1 *, TH1 *, TH1 *)
Definition: TLimitDataSource.cxx:44
TLimitDataSource::fErrorOnSignal
TObjArray fErrorOnSignal
Definition: TLimitDataSource.h:44
TVectorT
Definition: TMatrixTBase.h:78
TLimitDataSource::GetErrorNames
virtual TObjArray * GetErrorNames()
Definition: TLimitDataSource.h:37
TLimitDataSource::GetErrorOnBackground
virtual TObjArray * GetErrorOnBackground()
Definition: TLimitDataSource.h:36
TLimitDataSource::GetErrorOnSignal
virtual TObjArray * GetErrorOnSignal()
Definition: TLimitDataSource.h:35
TObjArray.h
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TH1
Definition: TH1.h:57
d
#define d(i)
Definition: RSha256.hxx:120
TLimitDataSource::SetOwner
virtual void SetOwner(bool swtch=kTRUE)
Definition: TLimitDataSource.cxx:85
TLimitDataSource::GetSignal
virtual TObjArray * GetSignal()
Definition: TLimitDataSource.h:32
TLimitDataSource::fIds
TObjArray fIds
Definition: TLimitDataSource.h:46
TLimitDataSource::fCandidates
TObjArray fCandidates
Definition: TLimitDataSource.h:43