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) ;
73 auto var = std::make_unique<RooConstVar>(
"REMOVAL_DUMMY",
"REMOVAL_DUMMY",1) ;
74 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
75 var->setAttribute(
"REMOVAL_DUMMY") ;
virtual bool addOwned(RooAbsArg &var, bool silent=false)
Add an argument and transfer the ownership to the collection.
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.