52 _cat(
"cat",
"Signal/Background category",this,(
RooAbsCategory&)cat),
53 _effFunc(
"effFunc",
"Efficiency modeling function",this,(
RooAbsReal&)effFunc),
54 _sigCatName(sigCatName)
65 _cat(
"cat",this,other._cat),
66 _effFunc(
"effFunc",this,other._effFunc),
67 _sigCatName(other._sigCatName)
102 return 1 - effFuncVal ;
A space to attach TBranches.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
RooEfficiency is a PDF helper class to fit efficiencies parameterized by a supplied function F.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
TString _sigCatName
Name of accept state of accept/reject category.
RooCategoryProxy _cat
Accept/reject categort.
~RooEfficiency() override
Destructor.
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...
const char * label() const
Get the label of the current category state. This function only makes sense for category proxies.