51 _cat(
"cat",
"Signal/Background category",this,(
RooAbsCategory&)cat),
52 _effFunc(
"effFunc",
"Efficiency modeling function",this,(
RooAbsReal&)effFunc),
53 _sigCatName(sigCatName)
64 _cat(
"cat",this,other._cat),
65 _effFunc(
"effFunc",this,other._effFunc),
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.
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 ...
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
RooEfficiency()
Default constructor.
std::string buildCallToAnalyticIntegral(Int_t code, const char *rangeName, RooFit::Detail::CodeSquashContext &ctx) const override
This function defines the analytical integral translation for the class.
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.
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.
const char * Data() const
double efficiency(double effFuncVal, int catIndex, int sigCatIndex)