11 #ifndef ROOSTATS_NumEventsTestStat 12 #define ROOSTATS_NumEventsTestStat 56 if(
data.isWeighted()) {
57 return data.sumEntries();
62 return data.numEntries();
66 if(
data.numEntries() == 1) {
78 std::cout <<
"Data set is invalid" << std::endl;
virtual Double_t getValV(const RooArgSet *nset=0) const
Return value of variable.
virtual const TString GetVarName() const
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &)
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
#define ClassDef(name, id)
virtual const RooAbsArg * GetTestStatistic() const
RooRealVar represents a fundamental (non-derived) real valued object.
virtual ~NumEventsTestStat()
RooAbsData is the common abstract base class for binned and unbinned datasets.
Bool_t canBeExtended() const
Namespace for the RooStats classes.
NumEventsTestStat(RooAbsPdf &pdf)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooLinkedListIter iterator(Bool_t dir=kIterForward) const
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
RooLinkedListIter is the TIterator implementation for RooLinkedList.
NumEventsTestStat is a simple implementation of the TestStatistic interface used for simple number co...