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();
50 corr.addOwned(std::make_unique<RooConstVar>(corrName.c_str(),
"", nonConstVariables->size()));
59 :
RooAbsPdf(other,
name),
c(
"_pdfs", this, other.
c),
corr(
"_corrs", this, other.
corr),
x(
"_index", this, other.
x)
84 if (!stripDisconnected)
double Double_t
Double 8 bytes.
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...
RooAbsArg()
Default constructor.
RooAbsPdf()
Default constructor.
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...
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.
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...