ROOT logo
ROOT » ROOFIT » ROOSTATS » RooStats::TestStatSampler

class RooStats::TestStatSampler

TestStatSampler is an interface class for a tools which produce RooStats SamplingDistributions. Tools that implement this interface are expected to be used for coverage studies, the Neyman Construction, etc.

Function Members (Methods)

    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

static TClass*Class()
virtual Double_tConfidenceLevel() const
virtual Double_tEvaluateTestStatistic(RooAbsData& data, RooArgSet& paramsOfInterest)
virtual RooStats::SamplingDistribution*GetSamplingDistribution(RooArgSet& paramsOfInterest)
virtual const RooAbsArg*GetTestStatistic() const
virtual voidInitialize(RooAbsArg& testStatistic, RooArgSet& paramsOfInterest, RooArgSet& nuisanceParameters)
virtual TClass*IsA() const
RooStats::TestStatSampler&operator=(const RooStats::TestStatSampler&)
virtual voidSetConfidenceLevel(Double_t cl)
virtual voidSetNuisanceParameters(RooArgSet&)
virtual voidSetObservables(RooArgSet&)
virtual voidSetParameters(RooArgSet&)
virtual voidSetPdf(RooAbsPdf&)
virtual voidSetTestSize(Double_t size)
virtual voidSetTestStatistic(RooAbsArg&) const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

virtual ~TestStatSampler()
SamplingDistribution* GetSamplingDistribution(RooArgSet& paramsOfInterest)
 Main interface to get a ConfInterval, pure virtual
Double_t EvaluateTestStatistic(RooAbsData& data, RooArgSet& paramsOfInterest)
 Main interface to evaluate the test statistic on a dataset
const RooAbsArg* GetTestStatistic() const
 Get the TestStatistic
Double_t ConfidenceLevel() const
 Get the Confidence level for the test
void Initialize(RooAbsArg& testStatistic, RooArgSet& paramsOfInterest, RooArgSet& nuisanceParameters)
 Common Initialization
void SetPdf(RooAbsPdf& )
 Set the Pdf, add to the the workspace if not already there
void SetParameters(RooArgSet& )
 specify the parameters of interest in the interval
void SetNuisanceParameters(RooArgSet& )
 specify the nuisance parameters (eg. the rest of the parameters)
void SetObservables(RooArgSet& )
 specify the observables in the dataset (needed to evaluate the test statistic)
void SetTestSize(Double_t size)
 set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
void SetConfidenceLevel(Double_t cl)
 set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
void SetTestStatistic(RooAbsArg& ) const
 Set the TestStatistic (want the argument to be a function of the data & parameter points