00001 /***************************************************************************** 00002 * Project: BaBar detector at the SLAC PEP-II B-factory 00003 * Package: RooRarFit 00004 * File: $Id: rarDatasets.rdl,v 1.15 2011/06/16 13:18:49 fwilson Exp $ 00005 * Authors: Lei Zhang 00006 * History: 00007 * 00008 * Copyright (C) 2005-2012, University of California, Riverside 00009 *****************************************************************************/ 00010 #ifndef RAR_DATASETS 00011 #define RAR_DATASETS 00012 00013 #include "TList.h" 00014 #include "TString.h" 00015 #include "TObject.h" 00016 00017 #include "RooRarFit/rarConfig.hh" 00018 #include "RooRarFit/rarDatasetDef.hh" 00019 00027 class rarDatasets : public rarConfig { 00028 00029 public: 00030 rarDatasets(); 00031 rarDatasets(const char*configFile,const char*configSec,const char*actionSec); 00032 virtual ~rarDatasets(); 00033 00036 virtual RooArgSet *getPrimaryObs() {return _dsd->getPrimaryObs();} 00037 00040 virtual RooArgSet *getAddOnCols() {return _dsd->getAddOnCols();} 00041 00044 virtual RooArgSet *getFullFObs() {return _fullFObs;} 00045 00046 virtual TString getDSName(TString name); 00047 virtual RooDataSet *getData(const char *name=0); 00048 00051 virtual TList *getDatasetList() {return &_dataSets;} 00052 00053 virtual TString ubStr(TString dsName, const char *ubStrVal=0); 00054 virtual Bool_t isBlind(TString dsName); 00055 00056 protected: 00057 void init(); 00058 //virtual void setWeightVar(); // not needed in new versions of root 00059 virtual void tabulateDatasets(const char *dsName=0); 00060 00061 TString getWeightVarName(TString datasetName); 00062 00063 TString _actionSec; 00064 rarDatasetDef *_dsd; 00065 TList _dataSets; 00066 RooArgSet *_fullFObs; 00067 RooArgSet _UBs; 00068 00069 private: 00070 rarDatasets(const rarDatasets&); 00071 ClassDef(rarDatasets, 0) // RooRarFit dataset class 00072 ; 00073 }; 00074 00075 #endif