33#define __ROOFIT_SUPPRESS_ROODATAWEIGHTEDAVERAGE_DEPRECATION_WARNING
36#undef __ROOFIT_SUPPRESS_ROODATAWEIGHTEDAVERAGE_DEPRECATION_WARNING
67 coutI(Plotting) <<
"RooDataWeightedAverage::ctor(" <<
GetName() <<
") constructing data weighted average of function " << pdf.
GetName()
68 <<
" over " << indata.
numEntries() <<
" data points of " << *(indata.
get()) <<
" with a total weight of " << indata.
sumEntries() << endl ;
119 for (
auto i=firstEvent ; i<lastEvent ; i+=stepSize) {
bool _showProgress
Show progress indication during evaluation if true.
double _sumWeight
Global sum of weights needed for normalization.
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 Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Abstract base class for binned and unbinned datasets.
virtual double weight() const =0
virtual double sumEntries() const =0
Return effective number of entries in dataset, i.e., sum all weights.
virtual const RooArgSet * get() const
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
RooAbsOptTestStatistic is the abstract base class for test statistics objects that evaluate a functio...
RooAbsReal * _funcClone
Pointer to internal clone of input function.
RooArgSet * _normSet
Pointer to set with observables used for normalization.
RooAbsData * _dataClone
Pointer to internal clone if input data.
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Class RooDataWeightedAverage calculate a weighted average of a function or p.d.f given a dataset with...
double globalNormalization() const override
Return global normalization term by which raw (combined) test statistic should be defined to obtain f...
~RooDataWeightedAverage() override
Destructor.
bool _showProgress
Show progress indication during evaluation if true.
double evaluatePartition(std::size_t firstEvent, std::size_t lastEvent, std::size_t stepSize) const override
Calculate the data weighted average for events [firstEVent,lastEvent] with step size stepSize.
RooDataWeightedAverage(const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, RooAbsTestStatistic::Configuration const &cfg, bool showProgress=false)
Constructor of data weighted average of given p.d.f over given data.
double _sumWeight
Global sum of weights needed for normalization.
const char * GetName() const override
Returns name of object.