Logo ROOT  
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#include <string>
34
36public:
37
38 RooGenFitStudy(const char* name=0, const char* title=0) ;
39 RooGenFitStudy(const RooGenFitStudy& other) ;
40 ~RooGenFitStudy() override ;
41 RooAbsStudy* clone(const char* newname="") const override { 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 bool attach(RooWorkspace& w) override ;
47 bool initialize() override ;
48 bool execute() override ;
49 bool finalize() override ;
50
51 void Print(Option_t *options= 0) const override;
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 ClassDefOverride(RooGenFitStudy,1) // Generate-and-Fit study module
75} ;
76
77
78#endif
79
const char Option_t
Definition: RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
char name[80]
Definition: TGX11.cxx:110
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:62
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:57
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
Definition: RooCmdArg.h:26
RooDataSet is a container class to hold unbinned data.
Definition: RooDataSet.h:55
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.
bool initialize() override
One-time initialization of study.
void setGenConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
RooArgSet * _initParams
!
RooAbsPdf * _fitPdf
!
RooArgSet _fitObs
!
std::string _fitPdfName
std::string _genPdfName
RooArgSet * _params
!
std::string _fitObsName
~RooGenFitStudy() override
RooLinkedList _genOpts
RooAbsPdf::GenSpec * _genSpec
!
RooRealVar * _nllVar
!
RooGenFitStudy(const char *name=0, const char *title=0)
Constructor.
bool execute() override
Execute one study iteration.
void Print(Option_t *options=0) const override
Print TNamed name and title.
RooLinkedList _fitOpts
RooRealVar * _ngenVar
!
void setFitConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg())
RooArgSet _genObs
!
bool finalize() override
Finalization of study.
RooAbsPdf * _genPdf
!
std::string _genObsName
bool attach(RooWorkspace &w) override
Function called after insertion into workspace.
RooAbsStudy * clone(const char *newname="") const override
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Definition: RooLinkedList.h:38
A RooPlot is a plot frame and a container for graphics objects within that frame.
Definition: RooPlot.h:43
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:40
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:43
const char * GetName() const override
Returns name of object.
Definition: TNamed.h:47
const char * GetTitle() const override
Returns title of object.
Definition: TNamed.h:48