Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooHistFunc.cxx
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * @(#)root/roofit:$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
17/**
18\file RooHistFunc.cxx
19\class RooHistFunc
20\ingroup Roofitcore
21
22A real-valued function sampled from a
23multidimensional histogram. The histogram can have an arbitrary number of real or
24discrete dimensions and may have negative values.
25**/
26
27#include "RooHistFunc.h"
28#include "RooDataHist.h"
29#include "RooMsgService.h"
30#include "RooRealVar.h"
31#include "RooCategory.h"
32#include "RooWorkspace.h"
33#include "RooHistPdf.h"
34#include "RooFitImplHelpers.h"
35
36#include "TError.h"
37#include "TBuffer.h"
38
39#include <stdexcept>
40
41
42
43
44////////////////////////////////////////////////////////////////////////////////
45/// Constructor from a RooDataHist. The variable listed in 'vars' control the dimensionality of the
46/// function. Any additional dimensions present in 'dhist' will be projected out. RooDataHist dimensions
47/// can be either real or discrete. See RooDataHist::RooDataHist for details on the binning.
48/// RooHistFunc neither owns or clone 'dhist' and the user must ensure the input histogram exists
49/// for the entire life span of this function.
50
51RooHistFunc::RooHistFunc(const char *name, const char *title, const RooArgSet& vars,
52 const RooDataHist& dhist, Int_t intOrder) :
53 RooAbsReal(name,title),
54 _depList("depList","List of dependents",this),
55 _dataHist(const_cast<RooDataHist*>(&dhist)),
56 _intOrder(intOrder)
57{
59 _depList.add(vars) ;
60
61 // Verify that vars and dhist.get() have identical contents
62 const RooArgSet* dvars = dhist.get() ;
63 if (vars.size()!=dvars->size()) {
64 coutE(InputArguments) << "RooHistFunc::ctor(" << GetName()
65 << ") ERROR variable list and RooDataHist must contain the same variables." << std::endl ;
66 throw std::invalid_argument("RooHistFunc: ERROR variable list and RooDataHist must contain the same variables.");
67 }
68
69 for (const auto arg : vars) {
70 if (!dvars->find(arg->GetName())) {
71 coutE(InputArguments) << "RooHistFunc::ctor(" << GetName()
72 << ") ERROR variable list and RooDataHist must contain the same variables." << std::endl ;
73 throw std::invalid_argument("RooHistFunc: ERROR variable list and RooDataHist must contain the same variables.");
74 }
75 }
76
77}
78
79
80
81////////////////////////////////////////////////////////////////////////////////
82/// Constructor from a RooDataHist. The variable listed in 'vars' control the dimensionality of the
83/// function. Any additional dimensions present in 'dhist' will be projected out. RooDataHist dimensions
84/// can be either real or discrete. See RooDataHist::RooDataHist for details on the binning.
85/// RooHistFunc neither owns or clone 'dhist' and the user must ensure the input histogram exists
86/// for the entire life span of this function.
87
88RooHistFunc::RooHistFunc(const char *name, const char *title, const RooArgList& funcObs, const RooArgList& histObs,
89 const RooDataHist& dhist, Int_t intOrder) :
90 RooAbsReal(name,title),
91 _depList("depList","List of dependents",this),
92 _dataHist(const_cast<RooDataHist*>(&dhist)),
93 _intOrder(intOrder)
94{
95 _histObsList.addClone(histObs) ;
96 _depList.add(funcObs) ;
97
98 // Verify that vars and dhist.get() have identical contents
99 const RooArgSet* dvars = dhist.get() ;
100 if (histObs.size()!=dvars->size()) {
101 coutE(InputArguments) << "RooHistFunc::ctor(" << GetName()
102 << ") ERROR variable list and RooDataHist must contain the same variables." << std::endl ;
103 throw std::invalid_argument("RooHistFunc: ERROR variable list and RooDataHist must contain the same variables.");
104 }
105
106 for (const auto arg : histObs) {
107 if (!dvars->find(arg->GetName())) {
108 coutE(InputArguments) << "RooHistFunc::ctor(" << GetName()
109 << ") ERROR variable list and RooDataHist must contain the same variables." << std::endl ;
110 throw std::invalid_argument("RooHistFunc: ERROR variable list and RooDataHist must contain the same variables.");
111 }
112 }
113
114}
115
116RooHistFunc::RooHistFunc(const char *name, const char *title, const RooArgSet &vars, std::unique_ptr<RooDataHist> dhist,
117 int intOrder)
118 : RooHistFunc{name, title, vars, *dhist, intOrder}
119{
120 initializeOwnedDataHist(std::move(dhist));
121}
122
123RooHistFunc::RooHistFunc(const char *name, const char *title, const RooArgList &pdfObs, const RooArgList &histObs,
124 std::unique_ptr<RooDataHist> dhist, int intOrder)
125 : RooHistFunc{name, title, pdfObs, histObs, *dhist, intOrder}
126{
127 initializeOwnedDataHist(std::move(dhist));
128}
129
130
131////////////////////////////////////////////////////////////////////////////////
132/// Copy constructor
133
134RooHistFunc::RooHistFunc(const RooHistFunc& other, const char* name) :
135 RooAbsReal(other,name),
136 _depList("depList",this,other._depList),
137 _dataHist(other._dataHist),
138 _intOrder(other._intOrder),
139 _cdfBoundaries(other._cdfBoundaries),
140 _totVolume(other._totVolume)
141{
142
144}
145
146
147
148////////////////////////////////////////////////////////////////////////////////
149
153
154
155
156
157////////////////////////////////////////////////////////////////////////////////
158/// Return the current value: The value of the bin enclosing the current coordinates
159/// of the dependents, normalized by the histograms contents. Interpolation
160/// is applied if the RooHistFunc is configured to do that
161
163{
164 // Transfer values from
165 if (!_depList.empty()) {
166 for (auto i = 0u; i < _histObsList.size(); ++i) {
167 const auto harg = _histObsList[i];
168 const auto parg = _depList[i];
169
170 if (harg != parg) {
171 parg->syncCache() ;
172 harg->copyCache(parg,true) ;
173 if (!harg->inRange(nullptr)) {
174 return 0 ;
175 }
176 }
177 }
178 }
179
181 return ret ;
182}
183
185{
186 std::span<double> output = ctx.output();
187 std::size_t nEvents = output.size();
188
189 if (_depList.size() == 1) {
190 auto xVals = ctx.at(_depList[0]);
191 _dataHist->weights(output.data(), xVals, _intOrder, false, _cdfBoundaries);
192 return;
193 }
194
195 std::vector<std::span<const double>> inputValues;
196 for (const auto& obs : _depList) {
197 auto realObs = dynamic_cast<const RooAbsReal*>(obs);
198 if (realObs) {
199 inputValues.push_back(ctx.at(realObs));
200 } else {
201 inputValues.emplace_back();
202 }
203 }
204
205 for (std::size_t i = 0; i < nEvents; ++i) {
206 bool skip = false;
207
208 for (auto j = 0u; j < _histObsList.size(); ++j) {
209 const auto histObs = _histObsList[j];
210
211 if (i < inputValues[j].size()) {
212 histObs->setCachedValue(inputValues[j][i], false);
213 if (!histObs->inRange(nullptr)) {
214 skip = true;
215 break;
216 }
217 }
218 }
219
220 output[i] = skip ? 0. : _dataHist->weightFast(_histObsList, _intOrder, false, _cdfBoundaries);
221 }
222}
223
224
225////////////////////////////////////////////////////////////////////////////////
226/// Only handle case of maximum in all variables
227
229{
230 std::unique_ptr<RooAbsCollection> common{_depList.selectCommon(vars)};
231 return common->size() == _depList.size() ? 1 : 0;
232}
233
234////////////////////////////////////////////////////////////////////////////////
235
236double RooHistFunc::maxVal(Int_t code) const
237{
238 R__ASSERT(code==1) ;
239
240 double max(-1) ;
241 for (Int_t i=0 ; i<_dataHist->numEntries() ; i++) {
242 double wgt = _dataHist->weight(i) ;
243 if (wgt>max) max=wgt ;
244 }
245
246 return max*1.05 ;
247}
248
249////////////////////////////////////////////////////////////////////////////////
250/// Return the total volume spanned by the observables of the RooDataHist
251
253{
254 // Return previously calculated value, if any
255 if (_totVolume>0) {
256 return _totVolume ;
257 }
258 _totVolume = 1. ;
259 for (const auto arg : _depList) {
260 RooRealVar* real = dynamic_cast<RooRealVar*>(arg) ;
261 if (real) {
262 _totVolume *= (real->getMax()-real->getMin()) ;
263 } else {
264 RooCategory* cat = dynamic_cast<RooCategory*>(arg) ;
265 if (cat) {
266 _totVolume *= cat->numTypes() ;
267 }
268 }
269 }
270
271 return _totVolume ;
272}
273
274
275////////////////////////////////////////////////////////////////////////////////
276/// Determine integration scenario. If no interpolation is used,
277/// RooHistFunc can perform all integrals over its dependents
278/// analytically via partial or complete summation of the input
279/// histogram. If interpolation is used, only the integral
280/// over all RooHistPdf observables is implemented.
281
282Int_t RooHistFunc::getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName) const
283{
284 return RooHistPdf::getAnalyticalIntegral(allVars, analVars, rangeName, _histObsList, _depList, _intOrder);
285}
286
287
288////////////////////////////////////////////////////////////////////////////////
289/// Return integral identified by 'code'. The actual integration
290/// is deferred to RooDataHist::sum() which implements partial
291/// or complete summation over the histograms contents
292
293double RooHistFunc::analyticalIntegral(Int_t code, const char* rangeName) const
294{
295 return RooHistPdf::analyticalIntegral(code, rangeName, _histObsList, _depList, *_dataHist, true);
296}
297
299{
301}
302
303////////////////////////////////////////////////////////////////////////////////
304/// Return sampling hint for making curves of (projections) of this function
305/// as the recursive division strategy of RooCurve cannot deal efficiently
306/// with the vertical lines that occur in a non-interpolated histogram
307
308std::list<double>* RooHistFunc::plotSamplingHint(RooAbsRealLValue& obs, double xlo, double xhi) const
309{
311}
312
313////////////////////////////////////////////////////////////////////////////////
314/// Return the histogram bin boundaries mapped into the plot-observable
315/// coordinate. Handles the case where the function observable is a
316/// transformation (shift, scale, ...) of the plot observable so that the
317/// returned boundaries are placed at the correct positions in the plot.
318
319std::list<double>* RooHistFunc::binBoundaries(RooAbsRealLValue& obs, double xlo, double xhi) const
320{
321 // No hints are required when interpolation is used
322 if (_intOrder>1) {
323 return nullptr ;
324 }
325
326 const std::vector<double> boundaries =
328 if (boundaries.empty()) {
329 return nullptr;
330 }
331
332 auto hint = new std::list<double>;
333 const double delta = (xhi - xlo) * 1e-8;
334 for (double b : boundaries) {
335 if (b > xlo - delta && b < xhi + delta) {
336 hint->push_back(b);
337 }
338 }
339
340 return hint;
341}
342
343
344
345////////////////////////////////////////////////////////////////////////////////
346/// Check if our datahist is already in the workspace.
347/// In case of error, return true.
349{
350 // Check if dataset with given name already exists
351 RooAbsData* wsdata = ws.embeddedData(_dataHist->GetName()) ;
352
353 if (wsdata) {
354 // If our data is exactly the same, we are done:
355 if (static_cast<RooDataHist*>(wsdata) == _dataHist)
356 return false;
357
358 // Yes it exists - now check if it is identical to our internal histogram
359 if (wsdata->InheritsFrom(RooDataHist::Class())) {
360
361 // Check if histograms are identical
362 if (areIdentical(static_cast<RooDataHist&>(*wsdata),*_dataHist)) {
363
364 // Exists and is of correct type, and identical -- adjust internal pointer to WS copy
365 _dataHist = static_cast<RooDataHist*>(wsdata) ;
366 } else {
367
368 // not identical, clone rename and import
369 auto uniqueName = std::string(_dataHist->GetName()) + "_" + GetName();
370 bool flag = ws.import(*_dataHist,RooFit::Rename(uniqueName.c_str()),RooFit::Embedded()) ;
371 if (flag) {
372 coutE(ObjectHandling) << " RooHistPdf::importWorkspaceHook(" << GetName() << ") unable to import clone of underlying RooDataHist with unique name " << uniqueName << ", abort" << std::endl ;
373 return true ;
374 }
375 _dataHist = static_cast<RooDataHist*>(ws.embeddedData(uniqueName)) ;
376 }
377
378 } else {
379
380 // Exists and is NOT of correct type: clone rename and import
381 auto uniqueName = std::string(_dataHist->GetName()) + "_" + GetName();
382 bool flag = ws.import(*_dataHist,RooFit::Rename(uniqueName.c_str()),RooFit::Embedded()) ;
383 if (flag) {
384 coutE(ObjectHandling) << " RooHistPdf::importWorkspaceHook(" << GetName() << ") unable to import clone of underlying RooDataHist with unique name " << uniqueName << ", abort" << std::endl ;
385 return true ;
386 }
387 _dataHist = static_cast<RooDataHist*>(ws.embeddedData(uniqueName));
388
389 }
390 return false ;
391 }
392
393 // We need to import our datahist into the workspace
395
396 // Redirect our internal pointer to the copy in the workspace
397 _dataHist = static_cast<RooDataHist*>(ws.embeddedData(_dataHist->GetName())) ;
398 return false ;
399}
400
401
402////////////////////////////////////////////////////////////////////////////////
403
405{
406 if (std::abs(dh1.sumEntries()-dh2.sumEntries())>1e-8) return false ;
407 if (dh1.numEntries() != dh2.numEntries()) return false ;
408 for (int i=0 ; i < dh1.numEntries() ; i++) {
409 if (std::abs(dh1.weight(i)-dh2.weight(i))>1e-8) return false ;
410 }
412 if (getColonSeparatedNameString(*dh1.get()) != getColonSeparatedNameString(*dh2.get())) return false ;
413 return true ;
414}
415
416
417
418////////////////////////////////////////////////////////////////////////////////
419/// Stream an object of class RooHistFunc.
420
422{
423 if (R__b.IsReading()) {
425 // WVE - interim solution - fix proxies here
426 _proxyList.Clear() ;
428 } else {
430 }
431}
432
433
434////////////////////////////////////////////////////////////////////////////////
435/// Schema evolution: if histObsList wasn't filled from persistence (v1)
436/// then fill it here. Can't be done in regular schema evolution in LinkDef
437/// as _depList content is not guaranteed to be initialized there
438
440{
441 RooAbsReal::ioStreamerPass2(); // call the baseclass method
442
443 if (_histObsList.empty()) {
445 }
446}
447
448
449////////////////////////////////////////////////////////////////////////////////
450/// Compute bin number corresponding to current coordinates.
451/// \return If a bin is not in the current range of the observables, return -1.
453 if (!_depList.empty()) {
454 for (auto i = 0u; i < _histObsList.size(); ++i) {
455 const auto harg = _histObsList[i];
456 const auto parg = _depList[i];
457
458 if (harg != parg) {
459 parg->syncCache() ;
460 harg->copyCache(parg,true) ;
461 if (!harg->inRange(nullptr)) {
462 return -1;
463 }
464 }
465 }
466 }
467
468 return _dataHist->getIndex(_histObsList, true);
469}
470
471
472////////////////////////////////////////////////////////////////////////////////
473/// Compute bin numbers corresponding to all coordinates in `evalData`.
474/// \return Vector of bin numbers. If a bin is not in the current range of the observables, return -1.
475std::vector<Int_t> RooHistFunc::getBins(RooFit::EvalContext & ctx) const {
476 std::vector<std::span<const double>> depData;
477 for (const auto dep : _depList) {
478 auto real = dynamic_cast<const RooAbsReal*>(dep);
479 if (real) {
480 depData.push_back(ctx.at(real));
481 } else {
482 depData.emplace_back();
483 }
484 }
485
486 const auto batchSize = std::max_element(depData.begin(), depData.end(),
487 [](const std::span<const double>& a, const std::span<const double>& b){ return a.size() < b.size(); })->size();
488 std::vector<Int_t> results;
489
490 for (std::size_t evt = 0; evt < batchSize; ++evt) {
491 if (!_depList.empty()) {
492 for (auto i = 0u; i < _histObsList.size(); ++i) {
493 const auto harg = _histObsList[i];
494
495 if (evt < depData[i].size())
496 harg->setCachedValue(depData[i][evt], false);
497
498 if (!harg->inRange(nullptr)) {
499 results.push_back(-1);
500 continue;
501 }
502 }
503 }
504
505 results.push_back(_dataHist->getIndex(_histObsList, true));
506 }
507
508 return results;
509}
#define b(i)
Definition RSha256.hxx:100
#define a(i)
Definition RSha256.hxx:99
#define e(i)
Definition RSha256.hxx:103
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define coutE(a)
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
Definition TError.h:139
char name[80]
Definition TGX11.cxx:142
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Definition RooAbsArg.h:77
RooRefArray _proxyList
Definition RooAbsArg.h:563
void registerProxy(RooArgProxy &proxy)
Register an RooArgProxy in the proxy list.
friend void RooRefArray::Streamer(TBuffer &)
virtual void ioStreamerPass2()
Method called by workspace container to finalize schema evolution issues that cannot be handled in a ...
Int_t numTypes(const char *=nullptr) const
Return number of types defined (in range named rangeName if rangeName!=nullptr)
Storage_t::size_type size() const
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
Abstract base class for binned and unbinned datasets.
Definition RooAbsData.h:55
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
virtual double getMax(const char *name=nullptr) const
Get maximum of currently defined range.
virtual double getMin(const char *name=nullptr) const
Get minimum of currently defined range.
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:63
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
RooArgSet * selectCommon(const RooAbsCollection &refColl) const
Use RooAbsCollection::selecCommon(), but return as RooArgSet.
Definition RooArgSet.h:154
Object to represent discrete states.
Definition RooCategory.h:28
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
Container class to hold N-dimensional binned data.
Definition RooDataHist.h:40
void weights(double *output, std::span< double const > xVals, int intOrder, bool correctForBinSize, bool cdfBoundaries)
A vectorized version of RooDataHist::weight() for one dimensional histograms with up to one dimension...
static TClass * Class()
Int_t getIndex(const RooAbsCollection &coord, bool fast=false) const
Calculate bin number of the given coordinates.
double weight(std::size_t i) const
Return weight of i-th bin.
double weightFast(const RooArgSet &bin, int intOrder, bool correctForBinSize, bool cdfBoundaries)
A faster version of RooDataHist::weight that assumes the passed arguments are aligned with the histog...
const RooArgSet * get() const override
Get bin centre of current bin.
Definition RooDataHist.h:82
double sumEntries() const override
Sum the weights of all bins.
std::span< const double > at(RooAbsArg const *arg, RooAbsArg const *caller=nullptr)
std::span< double > output()
A real-valued function sampled from a multidimensional histogram.
Definition RooHistFunc.h:29
bool _cdfBoundaries
Use boundary conditions for CDFs.
RooDataHist * _dataHist
Unowned pointer to underlying histogram.
double _totVolume
! Total volume of space (product of ranges of observables)
void doEval(RooFit::EvalContext &) const override
Base function for computing multiple values of a RooAbsReal.
bool forceAnalyticalInt(const RooAbsArg &dep) const override
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Return integral identified by 'code'.
~RooHistFunc() override
std::list< double > * binBoundaries(RooAbsRealLValue &, double, double) const override
Return the histogram bin boundaries mapped into the plot-observable coordinate.
void ioStreamerPass2() override
Schema evolution: if histObsList wasn't filled from persistence (v1) then fill it here.
void initializeOwnedDataHist(std::unique_ptr< RooDataHist > &&dataHist)
double evaluate() const override
Return the current value: The value of the bin enclosing the current coordinates of the dependents,...
std::list< double > * plotSamplingHint(RooAbsRealLValue &obs, double xlo, double xhi) const override
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Int_t getMaxVal(const RooArgSet &vars) const override
Only handle case of maximum in all variables.
double totVolume() const
Get total bin volume spanned by this hist function.
Int_t getBin() const
Compute bin number corresponding to current coordinates.
bool areIdentical(const RooDataHist &dh1, const RooDataHist &dh2)
double maxVal(Int_t code) const override
Return maximum value for set of observables identified by code assigned in getMaxVal.
std::vector< Int_t > getBins(RooFit::EvalContext &ctx) const
Compute bin numbers corresponding to all coordinates in evalData.
bool importWorkspaceHook(RooWorkspace &ws) override
Check if our datahist is already in the workspace.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Determine integration scenario.
Int_t _intOrder
Interpolation order.
static TClass * Class()
RooSetProxy _depList
List of observables mapped onto histogram observables.
RooArgSet _histObsList
List of observables defining dimensions of histogram.
bool forceAnalyticalInt(const RooAbsArg &dep) const override
static std::vector< double > histogramBoundariesInPlotObs(RooDataHist const &dataHist, RooArgSet const &pdfObsList, RooArgSet const &histObsList, RooAbsRealLValue &obs, double xlo, double xhi)
Return the histogram bin boundaries mapped to the coordinates of the plot observable obs.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Return integral identified by 'code'.
std::list< double > * plotSamplingHint(RooAbsRealLValue &obs, double xlo, double xhi) const override
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Determine integration scenario.
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Persistable container for RooFit projects.
RooAbsData * embeddedData(RooStringView name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found.
bool import(const RooAbsArg &arg, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}, const RooCmdArg &arg9={})
Import a RooAbsArg object, e.g.
Buffer base class used for serializing objects.
Definition TBuffer.h:43
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
Bool_t IsReading() const
Definition TBuffer.h:86
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
const char * GetName() const override
Returns name of object.
Definition TNamed.h:49
void Clear(Option_t *option="") override
Remove all objects from the array.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
Definition TObject.cxx:548
RooCmdArg Rename(const char *suffix)
RooCmdArg Embedded(bool flag=true)
std::string getColonSeparatedNameString(RooArgSet const &argSet, char delim=':')