00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef RAR_COMPBASE
00011 #define RAR_COMPBASE
00012
00013 #include "TList.h"
00014 #include "TString.h"
00015 #include "TObject.h"
00016
00017 #include "RooRarFit/rarBasePdf.hh"
00018
00035 class rarCompBase : public rarBasePdf {
00036
00037 public:
00038 rarCompBase();
00039 rarCompBase(const char*configFile,const char*configSec,const char*configStr,
00040 rarDatasets *theDatasets, RooDataSet *theData,
00041 const char *name, const char *title,
00042 Bool_t useBasePdfFit=kTRUE);
00043 virtual ~rarCompBase();
00044
00045 virtual void setSimPdf(RooSimultaneous *simPdf);
00046 virtual RooArgSet getParams();
00047
00048 virtual void preAction();
00049 virtual RooArgSet getArgSet(TString paramNames, Bool_t useRead=kFALSE,
00050 RooArgSet *fullSet=0);
00051 virtual void doPdfFit(TString pdfList="");
00052 virtual void attachDataSet(const RooAbsData &data);
00053 virtual Bool_t isNegativeValue();
00054 virtual RooPlot *doPdfPlot(TList &plotList, TString pdfList="");
00055 virtual RooArgSet getCorrCoeffs();
00057 virtual TList *getPdfList() {return &_pdfList;}
00058 virtual RooArgList getPdfsWOvar(RooArgList ignoredObs);
00059 virtual RooAbsPdf *getProtGen();
00060
00061 protected:
00062 void init();
00063
00064 Int_t _nComp;
00065 TList _pdfList;
00066 RooArgList _subProtGenPdfs;
00067
00068 private:
00069 rarCompBase(const rarCompBase&);
00070 ClassDef(rarCompBase, 0)
00071 ;
00072 };
00073
00074 #endif