1 |
// @(#)root/hist:$Name: $:$Id: TLimitDataSource.h,v 1.2 2010/05/03 16:51:17 auterman Exp $
|
2 |
// Author: Christophe.Delaere@cern.ch 21/08/2002
|
3 |
|
4 |
#ifndef ROOT_TLimitDataSource
|
5 |
#define ROOT_TLimitDataSource
|
6 |
|
7 |
#ifndef ROOT_TObjArray
|
8 |
#include "TObjArray.h"
|
9 |
#endif
|
10 |
|
11 |
class TH1D;
|
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 {
|
25 |
public:
|
26 |
TLimitDataSource();
|
27 |
virtual ~TLimitDataSource() {}
|
28 |
TLimitDataSource(TH1D* s,TH1D* b,TH1D* d);
|
29 |
virtual void AddChannel(TH1D*,TH1D*,TH1D*);
|
30 |
virtual void AddChannel(TH1D*,TH1D*,TH1D*,TH1D*, TH1D*, TObjArray*);
|
31 |
virtual void AddChannel(TH1D*,TH1D*,TH1D*,TH1D*, TH1D*,TH1D*, TH1D*, 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* GetErrorOnSignalNeg() { return &fErrorOnSignalNeg;}
|
37 |
inline virtual TObjArray* GetErrorOnBackground() { return &fErrorOnBackground;}
|
38 |
inline virtual TObjArray* GetErrorOnBackgroundNeg() { return &fErrorOnBackgroundNeg;}
|
39 |
inline virtual TObjArray* GetErrorNames() { return &fIds;}
|
40 |
virtual void SetOwner(bool swtch=kTRUE);
|
41 |
private:
|
42 |
// The arrays used to store the packed inputs
|
43 |
TObjArray fSignal; //packed input signal
|
44 |
TObjArray fBackground; //packed input background
|
45 |
TObjArray fCandidates; //packed input candidates (data)
|
46 |
TObjArray fErrorOnSignal; //packed error sources for signal
|
47 |
TObjArray fErrorOnSignalNeg; //packed error sources for signal
|
48 |
TObjArray fErrorOnBackground; //packed error sources for background
|
49 |
TObjArray fErrorOnBackgroundNeg; //packed error sources for background
|
50 |
TObjArray fIds; //packed IDs for the different error sources
|
51 |
// some dummy objects that the class will use and delete
|
52 |
TObjArray fDummyTH1D; //array of dummy object (used for bookeeping)
|
53 |
TObjArray fDummyIds; //array of dummy object (used for bookeeping)
|
54 |
|
55 |
ClassDef(TLimitDataSource, 2 ) // input for TLimit routines
|
56 |
};
|
57 |
|
58 |
#endif
|