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;
#define ClassDef(name, id)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooLinkedListIter iterator(Bool_t dir=kIterForward) const
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Bool_t canBeExtended() const
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooLinkedListIter is the TIterator implementation for RooLinkedList.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual Double_t getValV(const RooArgSet *nset=0) const
Return value of variable.
NumEventsTestStat is a simple implementation of the TestStatistic interface used for simple number co...
virtual const TString GetVarName() const
virtual ~NumEventsTestStat()
NumEventsTestStat(RooAbsPdf &pdf)
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...
virtual const RooAbsArg * GetTestStatistic() const
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer