library: libHist #include "TLimitDataSource.h"

# TLimitDataSource

class description - source file - inheritance tree (.pdf)

## class TLimitDataSource

| Inheritance Chart:
`TLimitDataSource` |

        public:

                             TLimitDataSource()
                             TLimitDataSource(TH1D* s, TH1D* b, TH1D* d)
                     virtual ~TLimitDataSource()
                virtual void AddChannel(TH1D*, TH1D*, TH1D*)
                virtual void AddChannel(TH1D*, TH1D*, TH1D*, TH1D*, TH1D*, TObjArray*)
              static TClass* Class()
          virtual TObjArray* GetBackground()
          virtual TObjArray* GetCandidates()
          virtual TObjArray* GetErrorNames()
          virtual TObjArray* GetErrorOnBackground()
          virtual TObjArray* GetErrorOnSignal()
          virtual TObjArray* GetSignal()
             virtual TClass* IsA() const
                virtual void SetOwner(bool swtch = kTRUE)
                virtual void ShowMembers(TMemberInspector& insp, char* parent)
                virtual void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          TObjArray fSignal             packed input signal
          TObjArray fBackground         packed input background
          TObjArray fCandidates         packed input candidates (data)
          TObjArray fErrorOnSignal      packed error sources for signal
          TObjArray fErrorOnBackground  packed error sources for background
          TObjArray fIds                packed IDs for the different error sources
          TObjArray fDummyTH1D          array of dummy object (used for bookeeping)
          TObjArray fDummyIds           array of dummy object (used for bookeeping)

## Class Description

     TLimitDataSource

     This class serves as interface to feed data into the TLimit routines

TLimitDataSource()

     Default constructor

TLimitDataSource(TH1D * s, TH1D * b, TH1D * d)

     Another constructor, directly adds one channel
     with signal, background and data given as input.

void AddChannel(TH1D * s, TH1D * b, TH1D * d)

     Adds a channel with signal, background and data given as input.

void AddChannel(TH1D * s, TH1D * b, TH1D * d, TH1D * es, TH1D * eb, TObjArray * names)

     Adds a channel with signal, background and data given as input.
     In addition, error sources are defined.
     TH1D are here used for convenience: each bin has to be seen as
     an error source (relative).
     names is an array of strings containing the names of the sources.
     Sources with the same name are correlated.

void SetOwner(bool swtch)

     Gives to the TLimitDataSource the ownership of the various objects
     given as input.
     Objects are then deleted by the TLimitDataSource destructor.

### Inline Functions

                   void ~TLimitDataSource()
             TObjArray* GetSignal()
             TObjArray* GetBackground()
             TObjArray* GetCandidates()
             TObjArray* GetErrorOnSignal()
             TObjArray* GetErrorOnBackground()
             TObjArray* GetErrorNames()
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)

Author: Christophe.Delaere@cern.ch 21/08/2002
Last update: root/hist:$Name: $:$Id: TLimitDataSource.cxx,v 1.4 2004/01/27 13:41:53 brun Exp $