#ifndef ROOT_TLimitDataSource
#define ROOT_TLimitDataSource
#ifndef ROOT_TObjArray
#include "TObjArray.h"
#endif
#include "TVectorDfwd.h"
class TH1;
class TLimitDataSource : public TObject{
public:
TLimitDataSource();
virtual ~TLimitDataSource() {}
TLimitDataSource(TH1* s,TH1* b,TH1* d);
TLimitDataSource(TH1* s,TH1* b,TH1* d, TVectorD* es,TVectorD* eb,TObjArray* names);
virtual void AddChannel(TH1*,TH1*,TH1*);
virtual void AddChannel(TH1*,TH1*,TH1*,TVectorD*, TVectorD*, TObjArray*);
inline virtual TObjArray* GetSignal() { return &fSignal;}
inline virtual TObjArray* GetBackground() { return &fBackground;}
inline virtual TObjArray* GetCandidates() { return &fCandidates;}
inline virtual TObjArray* GetErrorOnSignal() { return &fErrorOnSignal;}
inline virtual TObjArray* GetErrorOnBackground() { return &fErrorOnBackground;}
inline virtual TObjArray* GetErrorNames() { return &fIds;}
virtual void SetOwner(bool swtch=kTRUE);
private:
TObjArray fSignal;
TObjArray fBackground;
TObjArray fCandidates;
TObjArray fErrorOnSignal;
TObjArray fErrorOnBackground;
TObjArray fIds;
TObjArray fDummyTA;
TObjArray fDummyIds;
ClassDef(TLimitDataSource, 2 )
};
#endif