Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/hist:$Id$
2// Author: Christophe.Delaere@cern.ch 21/08/2002
4#ifndef ROOT_TLimitDataSource
5#define ROOT_TLimitDataSource
7#include "TObjArray.h"
9#include "TVectorDfwd.h"
11class TH1;
15// TLimitDataSource
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.
27 ~TLimitDataSource() override {}
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);
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 ///@}
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 ///@}
56 ClassDefOverride(TLimitDataSource, 2 ) // Input for TLimit routines
#define d(i)
Definition: RSha256.hxx:102
const Bool_t kTRUE
Definition: RtypesCore.h:100
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
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.
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:37
static constexpr double s