52 _effFunc(
"effFunc",
"Efficiency modeling function",
this,(
RooAbsReal&)effFunc),
53 _sigCatName(sigCatName)
66 _sigCatName(
other._sigCatName)
A space to attach TBranches.
value_type lookupIndex(const std::string &stateName) const
Find the index number corresponding to the state name.
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
bool matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooArgSet is a container object that can hold multiple RooAbsArg objects.
A PDF helper class to fit efficiencies parameterized by a supplied function F.
TString _sigCatName
Name of accept state of accept/reject category.
RooCategoryProxy _cat
Accept/reject categort.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
RooEfficiency()
Default constructor.
RooRealProxy _effFunc
Efficiency modeling function.
double evaluate() const override
Calculate the raw value of this p.d.f which is the effFunc value if cat==1 and it is (1-effFunc) if c...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
const char * Data() const
double efficiency(double effFuncVal, int catIndex, int sigCatIndex)