47 _list(
"list",
"First set of components",this)
49 for (
Int_t ifrac=fracList.
size()-1 ; ifrac>=0 ; ifrac--) {
52 std::stringstream errorMsg;
53 errorMsg <<
"RooRecursiveFraction::ctor(" <<
GetName() <<
") ERROR: component " << comp->
GetName()
54 <<
" is not of type RooAbsReal" << std::endl;
55 coutE(InputArguments) << errorMsg.str();
56 throw std::invalid_argument(errorMsg.str());
70 _list(
"list",this,other._list)
84 for (
unsigned int i=1; i <
_list.
size(); ++i) {
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Storage_t::size_type size() const
const RooArgSet * nset() const
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
A class to maintain the context for squashing of RooFit models into code.
std::string buildCall(std::string const &funcname, Args_t const &...args)
Build the code to call the function with name funcname, passing some arguments.
void addResult(RooAbsArg const *key, std::string const &value)
A function to save an expression that includes/depends on the result of the input node.
A RooAbsReal implementation that calculates the plain fraction of sum of RooAddPdf components from a ...
double evaluate() const override
Calculate and return value of .
RooRecursiveFraction()=default
void translate(RooFit::Detail::CodeSquashContext &ctx) const override
This function defines a translation for each RooAbsReal based object that can be used to express the ...
const char * GetName() const override
Returns name of object.