53 RooRealVar numSeg(
"numSeg",
"Number of segments",3) ;
123 if (!limitsOK)
return kFALSE ;
136 for (i=0 ; i<
_nseg ; i++) {
200 for (i=0 ; i<
_nseg ; i++) {
220 for (i=0 ; i<
_nseg ; i++) {
static Int_t isInfinite(Double_t x)
Return true if x is infinite by RooNumBer internal specification.
Bool_t initialize()
One-time integrator initialization.
static void registerIntegrator(RooNumIntFactory &fact)
Register RooSegmentedIntegrator1D, its parameters, dependencies and capabilities with RooNumIntFactor...
virtual RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const
Virtual constructor with given function and configuration. Needed by RooNumIntFactory.
RooIntegrator1D ** _array
RooSegmentedIntegrator1D()
Constructor.
void function(const char *name_, T fun, const char *docstring=0)
virtual Bool_t checkLimits() const
Check that our integration range is finite and otherwise return kFALSE.
virtual Double_t integral(const Double_t *yvec=0)
Calculate numeric integral at given set of function binding parameters.
const RooAbsFunc * _function
virtual ~RooSegmentedIntegrator1D()
Destructor.
virtual Double_t getMinLimit(UInt_t dimension) const =0
Bool_t _useIntegrandLimits
Bool_t setLimits(Double_t *xmin, Double_t *xmax)
Change our integration limits.
RooIntegrator1D * pRooIntegrator1D
virtual Double_t integral(const Double_t *yvec=0)
Evaluate integral at given function binding parameter values.
virtual Double_t getMaxLimit(UInt_t dimension) const =0
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
const RooAbsFunc * integrand() const
Bool_t setLimits(Double_t *xmin, Double_t *xmax)
Change our integration limits.
void setEpsAbs(Double_t newEpsAbs)
Set absolute convergence criteria (convergence if abs(Err)
const RooArgSet & getConfigSection(const char *name) const
Retrieve configuration information specific to integrator with given name.
void setEpsRel(Double_t newEpsRel)
Set relative convergence criteria (convergence if abs(Err)/abs(Int)
ClassImp(RooSegmentedIntegrator1D)
Bool_t storeProtoIntegrator(RooAbsIntegrator *proto, const RooArgSet &defConfig, const char *depName="")
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...
Double_t getRealValue(const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
Get value of a RooAbsReal stored in set with given name.