00001 /***************************************************************************** 00002 * Project: BaBar detector at the SLAC PEP-II B-factory 00003 * Package: RooRarFit 00004 * File: $Id: rarDatasetDef.rdl,v 1.5 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_DATASETDEF 00011 #define RAR_DATASETDEF 00012 00013 #include "TList.h" 00014 #include "TString.h" 00015 #include "TObject.h" 00016 00017 #include "RooRarFit/rarConfig.hh" 00018 00047 class rarDatasetDef : public rarConfig { 00048 00049 public: 00050 rarDatasetDef(); 00051 rarDatasetDef(const char *configFile, const char *configSec); 00052 virtual ~rarDatasetDef(); 00053 00056 virtual RooArgSet *getPrimaryObs() {return _primaryObs;} 00057 00060 virtual RooArgSet *getAddOnCols() {return _addonCols;} 00061 00062 virtual RooArgList *getFormulaArgs(rarStrParser fStrParser); 00063 00064 virtual void setVal(TString var, Double_t val); 00065 virtual void setVal(TString var, Int_t val) { setVal(var, (Double_t)val);} 00066 virtual void setVal(TString var, TString val); 00067 00068 protected: 00069 void init(); 00070 00071 RooArgSet *_primaryObs; 00072 RooArgSet *_addonCols; 00073 00074 private: 00075 rarDatasetDef(const rarDatasetDef&); 00076 ClassDef(rarDatasetDef, 0) // RooRarFit dataset definition class 00077 ; 00078 }; 00079 00080 #endif