33 c(
"_pdfs",
"The list of pdfs",
this),
34 corr(
"_corrs",
"The list of correction factors",
this),
35 x(
"_index",
"the pdf index",
this, _x)
45 _x.
defineType((
"_pdf" + std::to_string(count)).c_str(), count);
46 std::unique_ptr<RooArgSet> variables(pdf->getVariables());
47 std::unique_ptr<RooAbsCollection>
nonConstVariables(variables->selectByAttrib(
"Constant",
false));
49 std::string
corrName = std::string{
"const"} + pdf->GetName();
59 :
RooAbsPdf(
other,
name),
c(
"_pdfs",
this,
other.
c), corr(
"_corrs",
this,
other.corr),
x(
"_index",
this,
other.
x)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Common abstract base class for objects that represent a value and a "shape" in RooFit.
RooFit::OwningPtr< RooArgSet > getParameters(const RooAbsData *data, bool stripDisconnected=true) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
Abstract interface for all probability density functions.
virtual double getLogVal(const RooArgSet *set=nullptr) const
Return the log of the current value with given normalization An error message is printed if the argum...
const RooArgSet * nset() const
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Object to represent discrete states.
bool defineType(const std::string &label)
Define a state with given name.
bool addOwned(RooAbsArg &var, bool silent=false) override
Overloaded RooCollection_t::addOwned() method insert object into owning set and registers object as s...
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...
The class RooMultiPdf allows for the creation of a RooMultiPdf object, which can switch between previ...
void getParametersHook(const RooArgSet *nset, RooArgSet *list, bool stripDisconnected) const override
RooAbsPdf * getCurrentPdf() const
Double_t evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Double_t getLogVal(const RooArgSet *set=nullptr) const override
Return the log of the current value with given normalization An error message is printed if the argum...