53 if ((var->getVal()==
value) && (!var->getAttribute(
"REMOVAL_DUMMY")))
return *var ;
57 std::ostringstream s ;
60 auto var = std::make_unique<RooConstVar>(s.str().c_str(),s.str().c_str(),
value);
61 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
74 auto var = std::make_unique<RooConstVar>(
"REMOVAL_DUMMY",
"REMOVAL_DUMMY",1) ;
75 var->setAttribute(
"RooRealConstant_Factory_Object",
true) ;
76 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.
Represents 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.