Logo ROOT   master
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 * GetName() const
Returns name of object.
Definition: TNamed.h:47
void setFitConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
virtual RooAbsStudy * clone(const char *newname="") const
virtual Bool_t initialize()
One-time initialization of study.
virtual Bool_t finalize()
Finalization of study.
std::string _genPdfName
const char Option_t
Definition: RtypesCore.h:64
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooAbsPdf * _fitPdf
RooRealVar * _nllVar
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Definition: RooFitResult.h:40
RooGenFitStudy is an abstract base class for RooStudyManager modules.
RooLinkedList _genOpts
RooLinkedList _fitOpts
virtual Bool_t execute()
Execute one study iteration.
#define ClassDef(name, id)
Definition: Rtypes.h:322
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
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooArgSet _genObs
std::string _fitObsName
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:35
RooAbsStudy is an abstract base class for RooStudyManager modules.
Definition: RooAbsStudy.h:33
RooArgSet _fitObs
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:44
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:33
std::string _genObsName
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
Definition: RooPlot.h:44
RooRealVar * _ngenVar
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:35
RooGenFitStudy(const char *name=0, const char *title=0)
Constructor.
virtual ~RooGenFitStudy()
virtual Bool_t attach(RooWorkspace &w)
Function called after insertion into workspace.
RooAbsPdf, the base class of all PDFs
Definition: RooAbsPdf.h:40
void Print(Option_t *options=0) const
Print TNamed name and title.
RooAbsPdf::GenSpec * _genSpec
RooArgSet * _params
RooArgSet * _initParams
char name[80]
Definition: TGX11.cxx:109
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:43
virtual const char * GetTitle() const
Returns title of object.
Definition: TNamed.h:48
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition: RooCmdArg.h:28