60 _showProgress(showProgress)
63 coutI(Plotting) <<
"RooDataWeightedAverage::ctor(" <<
GetName() <<
") constructing data weighted average of function " << pdf.
GetName()
64 <<
" over " << indata.
numEntries() <<
" data points of " << *(indata.
get()) <<
" with a total weight of " << indata.
sumEntries() << endl ;
75 _sumWeight(other._sumWeight),
76 _showProgress(other._showProgress)
117 for (
auto i=firstEvent ; i<lastEvent ; i+=stepSize) {
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
virtual void recalculateCache(const RooArgSet *, Int_t, Int_t, Int_t, bool)
RooAbsData is the common 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
RooAbsDataStore * store()
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.
RooArgSet * _projDeps
Set of projected observable.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
double _sumWeight
Global sum of weights needed for normalization.
const char * GetName() const override
Returns name of object.