Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooProdPdf.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooProdPdf.h,v 1.44 2007/07/16 21:04:28 wouter Exp $
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_PROD_PDF
17#define ROO_PROD_PDF
18
19#include "RooAbsPdf.h"
20#include "RooListProxy.h"
21#include "RooLinkedList.h"
22#include "RooAICRegistry.h"
23#include "RooObjCacheManager.h"
24#include "RooCmdArg.h"
25
26#include <vector>
27#include <list>
28#include <string>
29
32
33namespace RooFit {
34namespace Detail {
35class RooFixedProdPdf;
36}
37}
38
39class RooProdPdf : public RooAbsPdf {
40public:
41
42 RooProdPdf() ;
43 RooProdPdf(const char *name, const char *title,
44 RooAbsPdf& pdf1, RooAbsPdf& pdf2, double cutOff=0.0) ;
45 RooProdPdf(const char* name, const char* title, const RooArgList& pdfList, double cutOff=0.0) ;
46 RooProdPdf(const char* name, const char* title, const RooArgSet& fullPdfSet, const RooLinkedList& cmdArgList) ;
47
48 RooProdPdf(const char* name, const char* title, const RooArgSet& fullPdfSet,
49 const RooCmdArg& arg1 , const RooCmdArg& arg2={},
50 const RooCmdArg& arg3={}, const RooCmdArg& arg4={},
51 const RooCmdArg& arg5={}, const RooCmdArg& arg6={},
52 const RooCmdArg& arg7={}, const RooCmdArg& arg8={}) ;
53
54 RooProdPdf(const char* name, const char* title,
55 const RooCmdArg& arg1, const RooCmdArg& arg2={},
56 const RooCmdArg& arg3={}, const RooCmdArg& arg4={},
57 const RooCmdArg& arg5={}, const RooCmdArg& arg6={},
58 const RooCmdArg& arg7={}, const RooCmdArg& arg8={}) ;
59
60 RooProdPdf(const RooProdPdf& other, const char* name=nullptr) ;
61 TObject* clone(const char* newname) const override { return new RooProdPdf(*this,newname) ; }
62 ~RooProdPdf() override ;
63
64 bool forceAnalyticalInt(const RooAbsArg& dep) const override ;
65 Int_t getAnalyticalIntegralWN(RooArgSet& allVars, RooArgSet& numVars, const RooArgSet* normSet, const char* rangeName=nullptr) const override ;
66 double analyticalIntegralWN(Int_t code, const RooArgSet* normSet, const char* rangeName=nullptr) const override ;
67 bool selfNormalized() const override { return _selfNorm ; }
68
69 ExtendMode extendMode() const override ;
70 double expectedEvents(const RooArgSet* nset) const override ;
71 std::unique_ptr<RooAbsReal> createExpectedEventsFunc(const RooArgSet* nset) const override;
72
73 const RooArgList& pdfList() const { return _pdfList ; }
74
75 void addPdfs(RooAbsCollection const& pdfs);
76 void removePdfs(RooAbsCollection const& pdfs);
77
78 Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, bool staticInitOK=true) const override;
79 void initGenerator(Int_t code) override ;
80 void generateEvent(Int_t code) override;
81 bool isDirectGenSafe(const RooAbsArg& arg) const override ;
82
83 // Constraint management
84 RooArgSet* getConstraints(const RooArgSet& observables, RooArgSet const& constrainedParams, RooArgSet &pdfParams) const override ;
85
86 std::list<double>* plotSamplingHint(RooAbsRealLValue& obs, double xlo, double xhi) const override ;
87 std::list<double>* binBoundaries(RooAbsRealLValue& /*obs*/, double /*xlo*/, double /*xhi*/) const override ;
88 bool isBinnedDistribution(const RooArgSet& obs) const override ;
89
90 void printMetaArgs(std::ostream& os) const override ;
91
92 void selectNormalizationRange(const char* rangeName=nullptr, bool force=false) override ;
93 void fixRefRange(const char* rangeName) ;
94
95 void setSelfNormalized(bool flag) { _selfNorm = flag ; }
97
98
99 bool redirectServersHook(const RooAbsCollection& /*newServerList*/, bool /*mustReplaceAll*/, bool /*nameChange*/, bool /*isRecursive*/) override ;
100
101 RooArgSet* getConnectedParameters(const RooArgSet& observables) const ;
102
103 RooArgSet* findPdfNSet(RooAbsPdf const& pdf) const ;
104
105 std::unique_ptr<RooAbsArg> compileForNormSet(RooArgSet const &normSet, RooFit::Detail::CompileContext & ctx) const override;
106
107 // The cache object. Internal, do not use.
108 class CacheElem final : public RooAbsCacheElement {
109 public:
111 // Payload
116 std::vector<std::unique_ptr<RooArgSet>> _normList;
118 std::unique_ptr<RooAbsReal> _rearrangedNum{};
119 std::unique_ptr<RooAbsReal> _rearrangedDen{};
120 // Cache management functions
122 void printCompactTreeHook(std::ostream&, const char *, Int_t, Int_t) override ;
123 void writeToStream(std::ostream& os) const ;
124 } ;
125
126private:
127
128 std::unique_ptr<RooArgSet> fillNormSetForServer(RooArgSet const& normSet, RooAbsArg const& server) const;
129
130 double evaluate() const override ;
131
132 std::unique_ptr<RooAbsReal> makeCondPdfRatioCorr(RooAbsReal& term, const RooArgSet& termNset, const RooArgSet& termImpSet, const char* normRange, const char* refRange) const ;
133
134 void getParametersHook(const RooArgSet* /*nset*/, RooArgSet* /*list*/, bool stripDisconnected) const override ;
135
136 void initializeFromCmdArgList(const RooArgSet& fullPdfSet, const RooLinkedList& l) ;
137
138 void factorizeProduct(const RooArgSet& normSet, const RooArgSet& intSet,
139 RooLinkedList& termList, RooLinkedList& normList,
140 RooLinkedList& impDepList, RooLinkedList& crossDepList,
141 RooLinkedList& intList) const;
142 std::string makeRGPPName(const char* pfx, const RooArgSet& term, const RooArgSet& iset, const RooArgSet& nset, const char* isetRangeName) const ;
143 void groupProductTerms(std::list<std::vector<RooArgSet*>>& groupedTerms, RooArgSet& outerIntDeps,
144 const RooLinkedList& terms, const RooLinkedList& norms,
145 const RooLinkedList& imps, const RooLinkedList& ints, const RooLinkedList& cross) const ;
146
147
148
149 Int_t getPartIntList(const RooArgSet* nset, const RooArgSet* iset, const char* isetRangeName=nullptr) const ;
150
151 std::vector<RooAbsReal*> processProductTerm(const RooArgSet* nset, const RooArgSet* iset, const char* isetRangeName,
152 const RooArgSet* term,const RooArgSet& termNSet, const RooArgSet& termISet,
153 bool& isOwned, bool forceWrap=false) const ;
154
155
156 CacheMode canNodeBeCached() const override { return RooAbsArg::NotAdvised ; } ;
157 void setCacheAndTrackHints(RooArgSet&) override ;
158
159 std::unique_ptr<CacheElem> createCacheElem(const RooArgSet* nset, const RooArgSet* iset, const char* isetRangeName=nullptr) const;
160
161 mutable RooObjCacheManager _cacheMgr ; //! The cache manager
162
163 CacheElem* getCacheElem(RooArgSet const* nset) const ;
164 void rearrangeProduct(CacheElem&) const;
165 std::unique_ptr<RooAbsReal> specializeIntegral(RooAbsReal& orig, const char* targetRangeName) const ;
166 std::unique_ptr<RooAbsReal> specializeRatio(RooFormulaVar& input, const char* targetRangeName) const ;
167 double calculate(const RooProdPdf::CacheElem& cache, bool verbose=false) const ;
168 void doEvalImpl(RooAbsArg const* caller, const RooProdPdf::CacheElem &cache, RooFit::EvalContext &) const;
169
170
171 friend class RooProdGenContext ;
173 RooAbsGenContext* genContext(const RooArgSet &vars, const RooDataSet *prototype=nullptr,
174 const RooArgSet *auxProto=nullptr, bool verbose= false) const override ;
175
176
177 mutable RooAICRegistry _genCode ; ///<! Registry of composite direct generator codes
178
179 double _cutOff = 0.0; ///< Cutoff parameter for running product
180 RooListProxy _pdfList ; ///< List of PDF components
181 std::vector<std::unique_ptr<RooArgSet>> _pdfNSetList ; ///< List of PDF component normalization sets
182 Int_t _extendedIndex = -1; ///< Index of extended PDF (if any)
183
184 void useDefaultGen(bool flag=true) { _useDefaultGen = flag ; }
185 bool _useDefaultGen = false; ///< Use default or distributed event generator
186
187 mutable TNamed* _refRangeName = nullptr; ///< Reference range name for interpretation of conditional products
188
189 bool _selfNorm = true; ///< Is self-normalized
190 RooArgSet _defNormSet ; ///< Default normalization set
191
192private:
193
194
195
196 ClassDefOverride(RooProdPdf,6) // PDF representing a product of PDFs
197};
198
199namespace RooFit {
200namespace Detail {
201
202/// A RooProdPdf with a fixed normalization set can be replaced by this class.
203/// Its purpose is to provide the right client-server interface for the
204/// evaluation of RooProdPdf cache elements that were created for a given
205/// normalization set.
207public:
208 RooFixedProdPdf(std::unique_ptr<RooProdPdf> &&prodPdf, RooArgSet const &normSet);
209 RooFixedProdPdf(const RooFixedProdPdf &other, const char *name = nullptr);
210
211 inline TObject *clone(const char *newname) const override { return new RooFixedProdPdf(*this, newname); }
212
213 inline bool selfNormalized() const override { return true; }
214
215 inline bool canComputeBatchWithCuda() const override { return true; }
216
217 inline void doEval(RooFit::EvalContext &ctx) const override { _prodPdf->doEvalImpl(this, *_cache, ctx); }
218
219 inline ExtendMode extendMode() const override { return _prodPdf->extendMode(); }
220 inline double expectedEvents(const RooArgSet * /*nset*/) const override
221 {
222 return _prodPdf->expectedEvents(&_normSet);
223 }
224 inline std::unique_ptr<RooAbsReal> createExpectedEventsFunc(const RooArgSet * /*nset*/) const override
225 {
226 return _prodPdf->createExpectedEventsFunc(&_normSet);
227 }
228
229 // Analytical Integration handling
230 inline bool forceAnalyticalInt(const RooAbsArg &dep) const override { return _prodPdf->forceAnalyticalInt(dep); }
231 inline Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet,
232 const char *rangeName = nullptr) const override
233 {
234 return _prodPdf->getAnalyticalIntegralWN(allVars, analVars, normSet, rangeName);
235 }
236 inline Int_t
237 getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &numVars, const char *rangeName = nullptr) const override
238 {
239 return _prodPdf->getAnalyticalIntegral(allVars, numVars, rangeName);
240 }
241 inline double analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName) const override
242 {
243 return _prodPdf->analyticalIntegralWN(code, normSet, rangeName);
244 }
245 inline double analyticalIntegral(Int_t code, const char *rangeName = nullptr) const override
246 {
247 return _prodPdf->analyticalIntegral(code, rangeName);
248 }
249
250 RooProdPdf::CacheElem const &cache() const { return *_cache; }
251
252private:
253 void initialize();
254
255 inline double evaluate() const override { return _prodPdf->calculate(*_cache); }
256
258 std::unique_ptr<RooProdPdf::CacheElem> _cache;
260 std::unique_ptr<RooProdPdf> _prodPdf;
261
263};
264
265} // namespace Detail
266} // namespace RooFit
267
268#endif
RooArgList * pRooArgList
Definition RooProdPdf.h:30
RooLinkedList * pRooLinkedList
Definition RooProdPdf.h:31
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
char name[80]
Definition TGX11.cxx:110
Utility class for operator p.d.f classes that keeps track of analytical integration codes and associa...
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Definition RooAbsArg.h:77
Abstract base class for objects to be stored in RooAbsCache cache manager objects.
Abstract container object that can hold multiple RooAbsArg objects.
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
Abstract base class for generator contexts of RooAbsPdf objects.
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
const char * normRange() const
Definition RooAbsPdf.h:250
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
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:34
A RooProdPdf with a fixed normalization set can be replaced by this class.
Definition RooProdPdf.h:206
double expectedEvents(const RooArgSet *) const override
Return expected number of events to be used in calculation of extended likelihood.
Definition RooProdPdf.h:220
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &numVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
Definition RooProdPdf.h:237
bool selfNormalized() const override
Shows if a PDF is self-normalized, which means that no attempt is made to add a normalization term.
Definition RooProdPdf.h:213
double analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName) const override
Analytical integral with normalization (see RooAbsReal::analyticalIntegralWN() for further informatio...
Definition RooProdPdf.h:241
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition RooProdPdf.h:255
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Variant of getAnalyticalIntegral that is also passed the normalization set that should be applied to ...
Definition RooProdPdf.h:231
void doEval(RooFit::EvalContext &ctx) const override
Base function for computing multiple values of a RooAbsReal.
Definition RooProdPdf.h:217
std::unique_ptr< RooProdPdf > _prodPdf
Definition RooProdPdf.h:260
bool canComputeBatchWithCuda() const override
Definition RooProdPdf.h:215
RooProdPdf::CacheElem const & cache() const
Definition RooProdPdf.h:250
TObject * clone(const char *newname) const override
Definition RooProdPdf.h:211
bool forceAnalyticalInt(const RooAbsArg &dep) const override
Definition RooProdPdf.h:230
std::unique_ptr< RooAbsReal > createExpectedEventsFunc(const RooArgSet *) const override
Returns an object that represents the expected number of events for a given normalization set,...
Definition RooProdPdf.h:224
ExtendMode extendMode() const override
Returns ability of PDF to provide extended likelihood terms.
Definition RooProdPdf.h:219
std::unique_ptr< RooProdPdf::CacheElem > _cache
Definition RooProdPdf.h:258
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
Definition RooProdPdf.h:245
A RooFormulaVar is a generic implementation of a real-valued object, which takes a RooArgList of serv...
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...
Implementation of a RooCacheManager<RooAbsCacheElement> that specializes in the storage of cache elem...
Efficient implementation of the generator context specific for RooProdPdf PDFs.
RooArgList containedArgs(Action) override
Return RooAbsArg components contained in the cache.
std::unique_ptr< RooAbsReal > _rearrangedNum
Definition RooProdPdf.h:118
void printCompactTreeHook(std::ostream &, const char *, Int_t, Int_t) override
Hook function to print cache contents in tree printing of RooProdPdf.
std::vector< std::unique_ptr< RooArgSet > > _normList
Definition RooProdPdf.h:116
std::unique_ptr< RooAbsReal > _rearrangedDen
Definition RooProdPdf.h:119
void writeToStream(std::ostream &os) const
Efficient implementation of a product of PDFs of the form.
Definition RooProdPdf.h:39
void setCacheAndTrackHints(RooArgSet &) override
Label OK'ed components of a RooProdPdf with cache-and-track, and label all RooProdPdf descendants wit...
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Query internal generation capabilities of component p.d.f.s and aggregate capabilities into master co...
void rearrangeProduct(CacheElem &) const
bool selfNormalized() const override
Shows if a PDF is self-normalized, which means that no attempt is made to add a normalization term.
Definition RooProdPdf.h:67
void factorizeProduct(const RooArgSet &normSet, const RooArgSet &intSet, RooLinkedList &termList, RooLinkedList &normList, RooLinkedList &impDepList, RooLinkedList &crossDepList, RooLinkedList &intList) const
Factorize product in irreducible terms for given choice of integration/normalization.
double analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Return analytical integral defined by given scenario code.
~RooProdPdf() override
Destructor.
Int_t _extendedIndex
Index of extended PDF (if any)
Definition RooProdPdf.h:182
std::unique_ptr< RooAbsReal > specializeRatio(RooFormulaVar &input, const char *targetRangeName) const
RooProdPdf()
Default constructor.
void removePdfs(RooAbsCollection const &pdfs)
Remove some PDFs from the factors of this RooProdPdf.
bool _useDefaultGen
Use default or distributed event generator.
Definition RooProdPdf.h:185
std::vector< std::unique_ptr< RooArgSet > > _pdfNSetList
List of PDF component normalization sets.
Definition RooProdPdf.h:181
std::unique_ptr< RooArgSet > fillNormSetForServer(RooArgSet const &normSet, RooAbsArg const &server) const
std::unique_ptr< RooAbsReal > specializeIntegral(RooAbsReal &orig, const char *targetRangeName) const
void useDefaultGen(bool flag=true)
Definition RooProdPdf.h:184
bool forceAnalyticalInt(const RooAbsArg &dep) const override
Force RooRealIntegral to offer all observables for internal integration.
std::unique_ptr< RooAbsArg > compileForNormSet(RooArgSet const &normSet, RooFit::Detail::CompileContext &ctx) const override
void getParametersHook(const RooArgSet *, RooArgSet *, bool stripDisconnected) const override
RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype=nullptr, const RooArgSet *auxProto=nullptr, bool verbose=false) const override
Return generator context optimized for generating events from product p.d.f.s.
void setSelfNormalized(bool flag)
Definition RooProdPdf.h:95
RooArgSet * getConstraints(const RooArgSet &observables, RooArgSet const &constrainedParams, RooArgSet &pdfParams) const override
Return all parameter constraint p.d.f.s on parameters listed in constrainedParams.
TNamed * _refRangeName
Reference range name for interpretation of conditional products.
Definition RooProdPdf.h:187
RooAICRegistry _genCode
! Registry of composite direct generator codes
Definition RooProdPdf.h:177
void addPdfs(RooAbsCollection const &pdfs)
Add some full PDFs to the factors of this RooProdPdf.
RooListProxy _pdfList
List of PDF components.
Definition RooProdPdf.h:180
Int_t getPartIntList(const RooArgSet *nset, const RooArgSet *iset, const char *isetRangeName=nullptr) const
Return list of (partial) integrals of product terms for integration of p.d.f over observables iset wh...
void printMetaArgs(std::ostream &os) const override
Customized printing of arguments of a RooProdPdf to more intuitively reflect the contents of the prod...
std::list< double > * binBoundaries(RooAbsRealLValue &, double, double) const override
Forward the plot sampling hint from the p.d.f. that defines the observable obs.
CacheMode canNodeBeCached() const override
Definition RooProdPdf.h:156
RooObjCacheManager _cacheMgr
Definition RooProdPdf.h:161
std::string makeRGPPName(const char *pfx, const RooArgSet &term, const RooArgSet &iset, const RooArgSet &nset, const char *isetRangeName) const
Make an appropriate automatic name for a RooGenProdProj object in getPartIntList()
bool isDirectGenSafe(const RooAbsArg &arg) const override
Forward determination of safety of internal generator code to component p.d.f that would generate the...
std::unique_ptr< RooAbsReal > makeCondPdfRatioCorr(RooAbsReal &term, const RooArgSet &termNset, const RooArgSet &termImpSet, const char *normRange, const char *refRange) const
For single normalization ranges.
RooArgSet * findPdfNSet(RooAbsPdf const &pdf) const
Look up user specified normalization set for given input PDF component.
ExtendMode extendMode() const override
If this product contains exactly one extendable p.d.f return the extension abilities of that p....
std::list< double > * plotSamplingHint(RooAbsRealLValue &obs, double xlo, double xhi) const override
Forward the plot sampling hint from the p.d.f. that defines the observable obs.
double expectedEvents(const RooArgSet *nset) const override
Return the expected number of events associated with the extendable input PDF in the product.
std::vector< RooAbsReal * > processProductTerm(const RooArgSet *nset, const RooArgSet *iset, const char *isetRangeName, const RooArgSet *term, const RooArgSet &termNSet, const RooArgSet &termISet, bool &isOwned, bool forceWrap=false) const
Calculate integrals of factorized product terms over observables iset while normalized to observables...
TObject * clone(const char *newname) const override
Definition RooProdPdf.h:61
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &numVars, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Determine which part (if any) of given integral can be performed analytically.
bool isBinnedDistribution(const RooArgSet &obs) const override
If all components that depend on obs are binned that so is the product.
RooArgSet * getConnectedParameters(const RooArgSet &observables) const
Return all parameter constraint p.d.f.s on parameters listed in constrainedParams.
double calculate(const RooProdPdf::CacheElem &cache, bool verbose=false) const
Calculate running product of pdfs terms, using the supplied normalization set in 'normSetList' for ea...
RooArgSet _defNormSet
Default normalization set.
Definition RooProdPdf.h:190
std::unique_ptr< RooAbsReal > createExpectedEventsFunc(const RooArgSet *nset) const override
Returns an object that represents the expected number of events for a given normalization set,...
CacheElem * getCacheElem(RooArgSet const *nset) const
The cache manager.
bool redirectServersHook(const RooAbsCollection &, bool, bool, bool) override
Implement support for node removal.
void initGenerator(Int_t code) override
Forward one-time initialization call to component generation initialization methods.
void doEvalImpl(RooAbsArg const *caller, const RooProdPdf::CacheElem &cache, RooFit::EvalContext &) const
Evaluate product of PDFs in batch mode.
void generateEvent(Int_t code) override
Generate a single event with configuration specified by 'code' Defer internal generation to component...
const RooArgList & pdfList() const
Definition RooProdPdf.h:73
void groupProductTerms(std::list< std::vector< RooArgSet * > > &groupedTerms, RooArgSet &outerIntDeps, const RooLinkedList &terms, const RooLinkedList &norms, const RooLinkedList &imps, const RooLinkedList &ints, const RooLinkedList &cross) const
Group product into terms that can be calculated independently.
void fixRefRange(const char *rangeName)
std::unique_ptr< CacheElem > createCacheElem(const RooArgSet *nset, const RooArgSet *iset, const char *isetRangeName=nullptr) const
double evaluate() const override
Calculate current value of object.
void initializeFromCmdArgList(const RooArgSet &fullPdfSet, const RooLinkedList &l)
Initialize RooProdPdf configuration from given list of RooCmdArg configuration arguments and set of '...
void selectNormalizationRange(const char *rangeName=nullptr, bool force=false) override
Interface function used by test statistics to freeze choice of range for interpretation of conditiona...
bool _selfNorm
Is self-normalized.
Definition RooProdPdf.h:189
double _cutOff
Cutoff parameter for running product.
Definition RooProdPdf.h:179
void setDefNormSet(const RooArgSet &nset)
Definition RooProdPdf.h:96
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
Mother of all ROOT objects.
Definition TObject.h:41
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition CodegenImpl.h:64
TLine l
Definition textangle.C:4