49 std::log(std::numeric_limits<double>::epsilon()));
74 _mirrorLeft(
mirror == MirrorLeft ||
mirror == MirrorBoth ||
mirror == MirrorLeftAsymRight),
75 _mirrorRight(
mirror == MirrorRight ||
mirror == MirrorBoth ||
mirror == MirrorAsymLeftRight),
76 _asymLeft(
mirror == MirrorAsymLeft ||
mirror == MirrorAsymLeftRight ||
mirror == MirrorAsymBoth),
77 _asymRight(
mirror == MirrorAsymRight ||
mirror == MirrorLeftAsymRight ||
mirror == MirrorAsymBoth),
80 _binWidth((_hi - _lo) / (_nPoints - 1)),
95 _nEvents(
other._nEvents),
96 _mirrorLeft(
other._mirrorLeft),
97 _mirrorRight(
other._mirrorRight),
98 _asymLeft(
other._asymLeft),
99 _asymRight(
other._asymRight),
102 _binWidth(
other._binWidth),
143 inline bool operator()(
const struct Data&
a,
const struct Data&
b)
const
144 {
return a.x <
b.x; }
152 std::vector<Data> tmp;
160 for (
Int_t i = 0; i <
data.numEntries(); ++i) {
162 const double x =
real.getVal();
163 const double w =
data.weight();
182 std::sort(tmp.begin(), tmp.end(), cmp());
188 for (
unsigned i = 0; i < tmp.size(); ++i) {
194 std::vector<Data>
tmp2;
200 double h=std::pow(
double(4)/
double(3),0.2)*std::pow(
_sumWgt,-0.2)*
_rho;
216 const double xlo = std::min(
_hi,
218 const double xhi = std::max(
_lo,
220 if (xlo >= xhi)
continue;
234 const double xlo = std::min(
_hi,
236 const double xhi = std::max(
_lo,
238 if (xlo >= xhi)
continue;
253 const double xlo = std::min(
_hi,
255 const double xhi = std::max(
_lo,
257 if (xlo >= xhi)
continue;
356 double max = -std::numeric_limits<double>::max();
373 for ( ; it <
iend; ++it) {
374 const double r = (
x - *it) /
sigmav;
375 y += std::exp(-0.5 *
r *
r);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmin
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
TRObject operator()(const T1 &t1) const
bool contains(const RooAbsArg &var) const
Check if collection contains an argument with the same name as var.
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
bool matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooAbsArg * absArg() const
Return pointer to contained argument.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
Class RooKeysPdf implements a one-dimensional kernel estimation p.d.f which model the distribution of...
static constexpr int _nPoints
RooKeysPdf()
coverity[UNINIT_CTOR]
double _lookupTable[_nPoints+1]
double maxVal(Int_t code) const override
Return maximum value for set of observables identified by code assigned in getMaxVal.
double g(double x, double sigma) const
void LoadDataSet(RooDataSet &data)
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
static const double _nSigma
Int_t getMaxVal(const RooArgSet &vars) const override
Advertise capability to determine maximum value of function for given set of observables.
Variable that can be changed from the outside.
double max(const char *rname=nullptr) const
Query upper limit of range. This requires the payload to be RooAbsRealLValue or derived.
double min(const char *rname=nullptr) const
Query lower limit of range. This requires the payload to be RooAbsRealLValue or derived.
static uint64_t sum(uint64_t i)