ROOT  6.06/09
Reference Guide
RooGenFitStudy.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_GEN_FIT_STUDY
17 #define ROO_GEN_FIT_STUDY
18 
19 #include "RooAbsStudy.h"
20 
21 class RooAbsPdf;
22 class RooDataSet ;
23 class RooAbsData ;
24 class RooFitResult ;
25 class RooPlot ;
26 class RooRealVar ;
27 class RooWorkspace ;
28 class RooAbsGenContext ;
29 
30 #include "RooArgSet.h"
31 #include "RooLinkedList.h"
32 #include "RooAbsPdf.h"
33 
34 
35 class RooGenFitStudy : public RooAbsStudy {
36 public:
37 
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()) ; }
42 
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()) ;
45 
46  virtual Bool_t attach(RooWorkspace& w) ;
47  virtual Bool_t initialize() ;
48  virtual Bool_t execute() ;
49  virtual Bool_t finalize() ;
50 
51  void Print(Option_t *options= 0) const;
52 
53  protected:
54 
55 
56  std::string _genPdfName ;
57  std::string _genObsName ;
58  std::string _fitPdfName ;
59  std::string _fitObsName ;
62 
67 
73 
74  ClassDef(RooGenFitStudy,1) // Generate-and-Fit study module
75 } ;
76 
77 
78 #endif
79 
virtual const char * GetTitle() const
Returns title of object.
Definition: TNamed.h:52
void setFitConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
virtual Bool_t initialize()
One-time initialization of study.
virtual RooAbsStudy * clone(const char *newname="") const
virtual Bool_t finalize()
Finalization of study.
std::string _genPdfName
const char Option_t
Definition: RtypesCore.h:62
RooAbsPdf * _fitPdf
RooRealVar * _nllVar
bool Bool_t
Definition: RtypesCore.h:59
RooLinkedList _genOpts
RooLinkedList _fitOpts
virtual Bool_t execute()
Execute one study iteration.
#define ClassDef(name, id)
Definition: Rtypes.h:254
RooAbsPdf * _genPdf
void setGenConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
std::string _fitPdfName
RooArgSet _genObs
std::string _fitObsName
void Print(Option_t *options=0) const
Print TNamed name and title.
RooArgSet _fitObs
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:51
std::string _genObsName
RooRealVar * _ngenVar
RooGenFitStudy(const char *name=0, const char *title=0)
Constructor.
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual ~RooGenFitStudy()
virtual Bool_t attach(RooWorkspace &w)
Function called after insertion into workspace.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooAbsPdf::GenSpec * _genSpec
RooArgSet * _params
RooArgSet * _initParams