Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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=nullptr, const char* title=nullptr) ;
39 RooGenFitStudy(const RooGenFitStudy& other) ;
40 RooAbsStudy* clone(const char* newname="") const override { return new RooGenFitStudy(newname?newname:GetName(),GetTitle()) ; }
41
42 void setGenConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1={},const RooCmdArg& arg2={},const RooCmdArg& arg3={}) ;
43 void setFitConfig(const char* pdfName, const char* obsName, const RooCmdArg& arg1={},const RooCmdArg& arg2={},const RooCmdArg& arg3={}) ;
44
45 bool attach(RooWorkspace& w) override ;
46 bool initialize() override ;
47 bool execute() override ;
48 bool finalize() override ;
49
50 void Print(Option_t *options= nullptr) const override;
51
52 protected:
53
54
55 std::string _genPdfName ;
56 std::string _genObsName ;
57 std::string _fitPdfName ;
58 std::string _fitObsName ;
61
62 RooAbsPdf* _genPdf = nullptr; ///<!
64 RooAbsPdf* _fitPdf = nullptr; ///<!
66
67 RooAbsPdf::GenSpec* _genSpec = nullptr; ///<!
68 RooRealVar* _nllVar = nullptr; ///<!
69 RooRealVar* _ngenVar = nullptr; ///<!
70 std::unique_ptr<RooArgSet> _params; ///<!
71 RooArgSet* _initParams= nullptr; ///<!
72
73 ClassDefOverride(RooGenFitStudy,2) // Generate-and-Fit study module
74} ;
75
76
77#endif
78
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
char name[80]
Definition TGX11.cxx:110
Abstract base class for binned and unbinned datasets.
Definition RooAbsData.h:57
Abstract base class for generator contexts of RooAbsPdf objects.
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
Abstract base class for RooStudyManager modules.
Definition RooAbsStudy.h:33
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
Named container for two doubles, two integers two object points and three string pointers that can be...
Definition RooCmdArg.h:26
Container class to hold unbinned data.
Definition RooDataSet.h:33
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
Abstract base class for RooStudyManager modules.
bool initialize() override
One-time initialization of study.
RooArgSet * _initParams
!
RooAbsPdf * _fitPdf
!
RooArgSet _fitObs
!
std::string _fitPdfName
void setFitConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={})
std::string _genPdfName
std::string _fitObsName
RooLinkedList _genOpts
RooAbsPdf::GenSpec * _genSpec
!
RooRealVar * _nllVar
!
std::unique_ptr< RooArgSet > _params
!
bool execute() override
Execute one study iteration.
RooLinkedList _fitOpts
RooRealVar * _ngenVar
!
RooArgSet _genObs
!
void setGenConfig(const char *pdfName, const char *obsName, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={})
bool finalize() override
Finalization of study.
RooAbsPdf * _genPdf
!
std::string _genObsName
bool attach(RooWorkspace &w) override
Function called after insertion into workspace.
void Print(Option_t *options=nullptr) const override
This method must be overridden when a class wants to print itself.
RooAbsStudy * clone(const char *newname="") const override
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...
Plot frame and a container for graphics objects within that frame.
Definition RooPlot.h:45
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Persistable container for RooFit projects.
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