44 _xf(
"!xf",
"xf",this,false,false),
45 _ixf(
"!ixf",
"ixf",this),
50 std::string pname = std::string(
name) +
"_product";
52 auto XF = std::make_unique<RooProduct>(pname.c_str(),pname.c_str(),
RooArgSet(
x,func));
56 XF->specialIntegratorConfig(
true)->method1D().setLabel(
"RooBinIntegrator");
59 std::unique_ptr<RooAbsReal> intXF{XF->createIntegral(
x)};
76 _xf(
"!xf",
"xf",this,false,false),
77 _ixf(
"!ixf",
"ixf",this),
84 std::string pname = std::string(
name) +
"_product";
86 auto XF = std::make_unique<RooProduct>(pname.c_str(),pname.c_str(),
RooArgSet(
x,func)) ;
90 XF->specialIntegratorConfig(
true)->method1D().setLabel(
"RooBinIntegrator");
94 XF->specialIntegratorConfig(
true)->method2D().setLabel(
"RooBinIntegrator");
95 XF->specialIntegratorConfig(
true)->methodND().setLabel(
"RooBinIntegrator");
99 if (intNSet) intSet.
add(
_nset,
true) ;
100 std::unique_ptr<RooAbsReal> intXF{XF->createIntegral(intSet, &
_nset)};
106 _ixf.setArg(*intXF) ;
RooExpensiveObjectCache & expensiveObjectCache() const
virtual void setExpensiveObjectCache(RooExpensiveObjectCache &cache)
bool addOwnedComponents(const RooAbsCollection &comps)
Take ownership of the contents of 'comps'.
friend class RooRealIntegral
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
RooSetProxy _nset
Normalization set (optional).
RooAbsReal()
coverity[UNINIT_CTOR] Default constructor
virtual bool isBinnedDistribution(const RooArgSet &) const
Tests if the distribution is binned. Unless overridden by derived classes, this always returns false.
RooFit::OwningPtr< RooAbsReal > createIntegral(const RooArgSet &iset, const RooCmdArg &arg1, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}) const
Create an object that represents the integral of the function over one or more observables listed in ...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
double evaluate() const override
Calculate value.
RooRealProxy _ixf
Int(X*F(X))dx ;.
RooRealProxy _if
Int(F(x))dx ;.
Variable that can be changed from the outside.