55 if ((var->getVal()==
value) && (!var->getAttribute(
"REMOVAL_DUMMY")))
return *var ;
59 std::ostringstream s ;
62 auto var = std::make_unique<RooConstVar>(s.str().c_str(),s.str().c_str(),
value);
63 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
76 auto var = std::make_unique<RooConstVar>(
"REMOVAL_DUMMY",
"REMOVAL_DUMMY",1) ;
77 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
78 var->setAttribute(
"REMOVAL_DUMMY") ;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
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.
RooConstVar represent a constant real-valued object.
Provides static functions to create and keep track of RooRealVar constants.
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.