45 _xf(
"!xf",
"xf",this,false,false),
46 _ixf(
"!ixf",
"ixf",this),
51 std::string pname = std::string(
name) +
"_product";
53 auto XF = std::make_unique<RooProduct>(pname.c_str(),pname.c_str(),
RooArgSet(
x,func));
57 XF->specialIntegratorConfig(
true)->method1D().setLabel(
"RooBinIntegrator");
60 std::unique_ptr<RooAbsReal> intXF{XF->createIntegral(
x)};
77 _xf(
"!xf",
"xf",this,false,false),
78 _ixf(
"!ixf",
"ixf",this),
85 std::string pname = std::string(
name) +
"_product";
87 auto XF = std::make_unique<RooProduct>(pname.c_str(),pname.c_str(),
RooArgSet(
x,func)) ;
91 XF->specialIntegratorConfig(
true)->method1D().setLabel(
"RooBinIntegrator");
95 XF->specialIntegratorConfig(
true)->method2D().setLabel(
"RooBinIntegrator");
96 XF->specialIntegratorConfig(
true)->methodND().setLabel(
"RooBinIntegrator");
100 if (intNSet) intSet.
add(
_nset,
true) ;
101 std::unique_ptr<RooAbsReal> intXF{XF->createIntegral(intSet, &
_nset)};
107 _ixf.setArg(*intXF) ;
120 _xf(
"xf",this,other._xf),
121 _ixf(
"ixf",this,other._ixf),
122 _if(
"if",this,other._if)
RooExpensiveObjectCache & expensiveObjectCache() const
virtual void setExpensiveObjectCache(RooExpensiveObjectCache &cache)
bool addOwnedComponents(const RooAbsCollection &comps)
Take ownership of the contents of 'comps'.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
RooSetProxy _nset
Normalization set (optional)
Abstract base class for objects that represent a real value and implements functionality common to al...
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 ...
virtual bool isBinnedDistribution(const RooArgSet &) const
Tests if the distribution is binned. Unless overridden by derived classes, this always returns false.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
double evaluate() const override
Calculate value.
RooRealProxy _ixf
Int(X*F(X))dx ;.
RooRealProxy _if
Int(F(x))dx ;.
Performs hybrid numerical/analytical integrals of RooAbsReal objects.
void setCacheNumeric(bool flag)
Variable that can be changed from the outside.