65 auto name = std::string(
GetName()) +
"_expectedEvents";
66 return std::make_unique<RooProduct>(
name.c_str(),
name.c_str(), *
_n);
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooExtendedTerm is a p.d.f with no observables that only introduces an extended ML term for a given n...
RooRealProxy _n
Number of expected events.
double expectedEvents(const RooArgSet *nset) const override
Return number of expected events, in other words the value of the associated n parameter.
RooExtendedTerm()=default
std::unique_ptr< RooAbsReal > createExpectedEventsFunc(const RooArgSet *nset) const override
Returns an object that represents the expected number of events for a given normalization set,...
const char * GetName() const override
Returns name of object.