74 _x(
"x",
"observable",this,x),
103 _x(
"x",
"Observable",this,xpdf),
174 inline bool operator()(
const struct Data&
a,
const struct Data&
b)
const 175 {
return a.x < b.x; }
183 std::vector<Data> tmp;
211 std::sort(tmp.begin(), tmp.end(), cmp());
217 for (
unsigned i = 0; i < tmp.size(); ++i) {
223 std::vector<Data> tmp2;
249 if (xlo >= xhi)
continue;
257 for (
Int_t k = binlo; k <= binhi; ++k, chi += chi2incr) {
267 if (xlo >= xhi)
continue;
275 for (
Int_t k = binlo; k <= binhi; ++k, chi += chi2incr) {
286 if (xlo >= xhi)
continue;
294 for (
Int_t k = binlo; k <= binhi; ++k, chi += chi2incr) {
300 for (
Int_t i=0;i<_nPoints+1;++i)
350 for (
Int_t i = imin + 2; i < imax; ++i)
351 sum += 2. * _lookupTable[i];
358 sum +=
_binWidth * (1. - dxmin) * 0.5 * (_lookupTable[imin + 1] +
359 _lookupTable[imin] + dxmin *
360 (_lookupTable[imin + 1] - _lookupTable[imin]));
362 sum +=
_binWidth * dxmax * 0.5 * (_lookupTable[imax] +
363 _lookupTable[imax] + dxmax *
364 (_lookupTable[imax + 1] - _lookupTable[imax]));
365 }
else if (imin == imax) {
367 sum +=
_binWidth * (dxmax - dxmin) * 0.5 * (
368 _lookupTable[imin] + dxmin *
369 (_lookupTable[imin + 1] - _lookupTable[imin]) +
370 _lookupTable[imax] + dxmax *
371 (_lookupTable[imax + 1] - _lookupTable[imax]));
385 Double_t max = -std::numeric_limits<Double_t>::max();
402 for ( ; it < iend; ++it) {
virtual const char * GetName() const
Returns name of object.
Double_t _lookupTable[_nPoints+1]
static long int sum(long int i)
virtual Int_t getMaxVal(const RooArgSet &vars) const
Advertise capability to determine maximum value of function for given set of observables.
virtual Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t getVal(const RooArgSet *set=0) const
TRObject operator()(const T1 &t1) const
static const double x2[5]
Class RooKeysPdf implements a one-dimensional kernel estimation p.d.f which model the distribution of...
double pow(double, double)
void LoadDataSet(RooDataSet &data)
static const Double_t _nSigma
virtual Double_t weight() const
Return event weight of current event.
RooRealVar represents a fundamental (non-derived) real valued object.
Double_t g(Double_t x, Double_t sigma) const
RooKeysPdf()
coverity[UNINIT_CTOR]
virtual Double_t maxVal(Int_t code) const
Return maximum value for set of observables identified by code assigned in getMaxVal.
RooAbsArg * absArg() const
RooDataSet is a container class to hold unbinned data.
virtual const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
virtual Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
static const double x1[5]
Double_t min(const char *rname=0) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t max(const char *rname=0) const
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Double_t evaluate() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Bool_t contains(const RooAbsArg &var) const
const RooAbsReal & arg() const
virtual Int_t numEntries() const