16 #ifndef ROO_GEN_FIT_STUDY
17 #define ROO_GEN_FIT_STUDY
28 class RooAbsGenContext ;
35 class RooGenFitStudy :
public RooAbsStudy {
38 RooGenFitStudy(
const char* name=0,
const char* title=0) ;
39 RooGenFitStudy(
const RooGenFitStudy& other) ;
40 virtual ~RooGenFitStudy() ;
41 virtual RooAbsStudy* clone(
const char* newname=
"")
const {
return new RooGenFitStudy(newname?newname:GetName(),GetTitle()) ; }
43 void setGenConfig(
const char* pdfName,
const char* obsName,
const RooCmdArg& arg1=RooCmdArg(),
const RooCmdArg& arg2=RooCmdArg(),
const RooCmdArg& arg3=RooCmdArg()) ;
44 void setFitConfig(
const char* pdfName,
const char* obsName,
const RooCmdArg& arg1=RooCmdArg(),
const RooCmdArg& arg2=RooCmdArg(),
const RooCmdArg& arg3=RooCmdArg()) ;
46 virtual Bool_t attach(RooWorkspace& w) ;
47 virtual Bool_t initialize() ;
48 virtual Bool_t execute() ;
49 virtual Bool_t finalize() ;
51 void Print(Option_t *options= 0)
const;
56 std::string _genPdfName ;
57 std::string _genObsName ;
58 std::string _fitPdfName ;
59 std::string _fitObsName ;
60 RooLinkedList _genOpts ;
61 RooLinkedList _fitOpts ;
68 RooAbsPdf::GenSpec* _genSpec ;
70 RooRealVar* _ngenVar ;
72 RooArgSet* _initParams;
74 ClassDef(RooGenFitStudy,1)