11#ifndef ROOSTATS_NumEventsTestStat
12#define ROOSTATS_NumEventsTestStat
50 if(data.isWeighted()) {
51 return data.sumEntries();
55 if (!
fPdf ||
fPdf->canBeExtended()) {
56 return data.numEntries();
60 if(data.numEntries() == 1) {
61 double numEvents = 0.0;
63 numEvents += obs->getValV();
68 std::cout <<
"Data set is invalid" << std::endl;
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
#define ClassDefOverride(name, id)
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
double Evaluate(RooAbsData &data, RooArgSet &) override
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
NumEventsTestStat(RooAbsPdf &pdf)
const TString GetVarName() const override
virtual const RooAbsArg * GetTestStatistic() const
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
Namespace for the RooStats classes.