52 if ((var->getVal()==
value) && (!var->getAttribute(
"REMOVAL_DUMMY")))
return *var ;
56 std::ostringstream s ;
59 auto var = std::make_unique<RooConstVar>(s.str().c_str(),s.str().c_str(),
value);
60 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
62 constDB().addOwned(std::move(var));
73 auto var = std::make_unique<RooConstVar>(
"REMOVAL_DUMMY",
"REMOVAL_DUMMY",1) ;
74 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
75 var->setAttribute(
"REMOVAL_DUMMY") ;
77 constDB().addOwned(std::move(var));
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
RooArgList is a container object that can hold multiple RooAbsArg objects.
Represents a constant real-valued object.
static RooConstVar & value(double value)
Return a constant value object with given value.
static RooArgList & constDB()
One-time initialization of constants database.
static RooConstVar & removalDummy()
Create a dummy node used in node-removal operations.