43RooAbsNumGenerator::RooAbsNumGenerator() =
default;
58 if (nodes.snapshot(_cloneSet,
true)) {
59 oocoutE(
nullptr, Generation) <<
"RooAbsNumGenerator::RooAbsNumGenerator(" << func.
GetName() <<
") Couldn't deep-clone function, abort," << std::endl ;
73 if(!arg->isFundamental()) {
74 oocoutE(
nullptr, Generation) << func.
GetName() <<
"::RooAbsNumGenerator: cannot generate values for derived \""
75 << arg->GetName() <<
"\"" << std::endl;
80 found= (
const RooAbsArg*)_cloneSet.find(arg->GetName());
85 arg= _cloneSet.addClone(*arg);
99 oocoutE(
nullptr, Generation) << func.
GetName() <<
"::RooAbsNumGenerator: cannot generate values for \""
100 <<
realVar->GetName() <<
"\" with unbound range" << std::endl;
105 oocoutE(
nullptr, Generation) << func.
GetName() <<
"::RooAbsNumGenerator" <<
": cannot generate values for \""
106 << arg->GetName() <<
"\" with unexpected type" << std::endl;
111 oocoutE(
nullptr, Generation) << func.
GetName() <<
"::RooAbsNumGenerator" <<
": constructor failed with errors" << std::endl;
122 _cache= std::make_unique<RooDataSet>(
"cache",
"Accept-Reject Event Cache",
cacheArgs);
140RooAbsNumGenerator::~RooAbsNumGenerator() =
default;
146void RooAbsNumGenerator::attachParameters(
const RooArgSet& vars)
149 newParams.remove(*_cache->get(),
true,
true) ;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Storage_t const & get() const
Const access to the underlying stl container.
RooAbsArg * find(const char *name) const
Find object with given name in list.
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Object to represent discrete states.
static void softAbort()
Soft abort function that interrupts macro execution but doesn't kill ROOT.
Variable that can be changed from the outside.
const char * GetName() const override
Returns name of object.