Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
11class 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
25public:
27 ~TLimitDataSource() override {}
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;}
37 inline virtual TObjArray* GetErrorNames() { return &fIds;}
38 virtual void SetOwner(bool swtch=kTRUE);
39private:
40 /// @name Arrays used to store the packed inputs
41 ///@{
42 TObjArray fSignal; ///< Packed input signal
43 TObjArray fBackground; ///< Packed input background
44 TObjArray fCandidates; ///< Packed input candidates (data)
45 TObjArray fErrorOnSignal; ///< Packed error sources for signal
46 TObjArray fErrorOnBackground; ///< Packed error sources for background
47 TObjArray fIds; ///< Packed IDs for the different error sources
48 ///@}
49
50 /// Dummy objects the class will use and delete
51 ///@{
52 TObjArray fDummyTA; ///< Array of dummy object (used for bookeeping)
53 TObjArray fDummyIds; ///< Array of dummy object (used for bookeeping)
54 ///@}
55
56 ClassDefOverride(TLimitDataSource, 2 ) // Input for TLimit routines
57};
58
59#endif
#define d(i)
Definition RSha256.hxx:102
#define b(i)
Definition RSha256.hxx:100
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
TH1 is the base class of all histogram classes in ROOT.
Definition TH1.h:58
This class serves as input for the TLimit::ComputeLimit method.
virtual void SetOwner(bool swtch=kTRUE)
Gives to the TLimitDataSource the ownership of the various objects given as input.
TObjArray fErrorOnBackground
Packed error sources for background.
TObjArray fErrorOnSignal
Packed error sources for signal.
virtual TObjArray * GetErrorOnSignal()
virtual TObjArray * GetSignal()
virtual void AddChannel(TH1 *, TH1 *, TH1 *)
Adds a channel with signal, background and data given as input.
TLimitDataSource()
Default constructor.
TObjArray fIds
Packed IDs for the different error sources.
TObjArray fDummyTA
Dummy objects the class will use and delete.
TObjArray fSignal
Packed input signal.
virtual TObjArray * GetCandidates()
virtual TObjArray * GetBackground()
virtual TObjArray * GetErrorNames()
~TLimitDataSource() override
TObjArray fCandidates
Packed input candidates (data)
virtual TObjArray * GetErrorOnBackground()
TObjArray fBackground
Packed input background.
TObjArray fDummyIds
Array of dummy object (used for bookeeping)
An array of TObjects.
Definition TObjArray.h:31
Mother of all ROOT objects.
Definition TObject.h:41