Logo ROOT   6.18/05
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
21class RooAbsPdf;
22class RooDataSet ;
23class RooAbsData ;
24class RooFitResult ;
25class RooPlot ;
26class RooRealVar ;
27class RooWorkspace ;
28class RooAbsGenContext ;
29
30#include "RooArgSet.h"
31#include "RooLinkedList.h"
32#include "RooAbsPdf.h"
33
34
36public:
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
bool Bool_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:37
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooAbsStudy is an abstract base class for RooStudyManager modules.
Definition: RooAbsStudy.h:33
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition: RooCmdArg.h:27
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:31
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.
virtual Bool_t initialize()
One-time initialization of study.
RooArgSet * _initParams
virtual RooAbsStudy * clone(const char *newname="") const
RooAbsPdf * _fitPdf
virtual Bool_t attach(RooWorkspace &w)
Function called after insertion into workspace.
RooArgSet _fitObs
std::string _fitPdfName
virtual Bool_t finalize()
Finalization of study.
std::string _genPdfName
RooArgSet * _params
std::string _fitObsName
RooLinkedList _genOpts
virtual ~RooGenFitStudy()
RooAbsPdf::GenSpec * _genSpec
RooRealVar * _nllVar
RooGenFitStudy(const char *name=0, const char *title=0)
Constructor.
RooLinkedList _fitOpts
RooRealVar * _ngenVar
RooArgSet _genObs
virtual Bool_t execute()
Execute one study iteration.
void setFitConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
RooAbsPdf * _genPdf
std::string _genObsName
void setGenConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
void Print(Option_t *options=0) const
Print TNamed name and title.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:36
A RooPlot is a plot frame and a container for graphics objects within that frame.
Definition: RooPlot.h:41
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
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
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47