13 #ifndef ROOSTATS_ToyMCSampler
14 #define ROOSTATS_ToyMCSampler
41 class DetailedOutputAggregator;
317 mutable std::list<RooAbsPdf::GenSpec*>
_gsList ;
Holds configuration options for proof and proof-lite.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
virtual TestStatistic * GetTestStatistic(void) const
virtual void SetParametersForTestStat(const RooArgSet &nullpoi)
virtual void GenerateGlobalObservables(RooAbsPdf &pdf) const
virtual void SetTestStatistic(TestStatistic *t)
void SetToysLeftTail(Double_t toys, Double_t threshold)
virtual void SetGlobalObservables(const RooArgSet &o)
Bool_t fGenerateAutoBinned
virtual Double_t EvaluateTestStatistic(RooAbsData &data, RooArgSet &nullPOI, int i)
TestStatSampler is an interface class for a tools which produce RooStats SamplingDistributions.
virtual RooDataSet * GetSamplingDistributionsSingleWorker(RooArgSet ¶mPoint)
RooAbsPdf::GenSpec * _gs1
virtual void SetExpectedNuisancePar(Bool_t i=kTRUE)
virtual void SetNEventsPerToy(const Int_t nevents)
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint, RooAbsPdf &pdf) const
std::string fSamplingDistName
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint, double &weight) const
NuisanceParametersSampler * fNuisanceParametersSampler
virtual void SetConfidenceLevel(Double_t cl)
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint) const
virtual Double_t ConfidenceLevel() const
virtual RooArgList * EvaluateAllTestStatistics(RooAbsData &data, const RooArgSet &poi)
virtual void SetTestStatistic(TestStatistic *testStatistic, unsigned int i)
Double_t fAdaptiveLowLimit
virtual SamplingDistribution * AppendSamplingDistribution(RooArgSet &allParameters, SamplingDistribution *last, Int_t additionalMC)
#define ClassDef(name, id)
void SetToysRightTail(Double_t toys, Double_t threshold)
void SetToysBothTails(Double_t toys, Double_t low_threshold, Double_t high_threshold)
TString fGenerateBinnedTag
Double_t fAdaptiveHighLimit
void SetGenerateAutoBinned(Bool_t autoBinned=kTRUE)
std::list< RooArgSet * > _obsList
virtual TestStatistic * GetTestStatistic(unsigned int i) const
virtual void SetNToys(const Int_t ntoy)
void SetGenerateBinnedTag(const char *binnedTag="")
virtual void Initialize(RooAbsArg &, RooArgSet &, RooArgSet &)
virtual Int_t GetNToys(void)
const RooDataSet * fProtoData
RooAbsData * Generate(RooAbsPdf &pdf, RooArgSet &observables, const RooDataSet *protoData=NULL, int forceEvents=0) const
void SetProofConfig(ProofConfig *pc=NULL)
ProofConfig * fProofConfig
static Double_t infinity()
Return internal infinity representation.
std::vector< TestStatistic * > fTestStatistics
const RooArgSet * fGlobalObservables
ToyMCSampler is an implementation of the TestStatSampler interface.
void SetSamplingDistName(const char *name)
This class simply holds a sampling distribution of some test statistic.
virtual void SetAsimovNuisancePar(Bool_t i=kTRUE)
Namespace for the RooStats classes.
RooAbsPdf::GenSpec * _gs4
GenSpec #3.
virtual void SetObservables(const RooArgSet &o)
void SetMaxToys(Double_t t)
void SetProtoData(const RooDataSet *d)
std::list< RooAbsPdf::GenSpec * > _gsList
static void SetAlwaysUseMultiGen(Bool_t flag)
virtual void SetPdf(RooAbsPdf &pdf)
virtual SamplingDistribution * GetSamplingDistribution(RooArgSet ¶mPoint)
static Bool_t fgAlwaysUseMultiGen
GenSpec #4.
virtual void SetPriorNuisance(RooAbsPdf *pdf)
Mother of all ROOT objects.
const RooArgSet * fObservables
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual void ClearCache()
virtual RooDataSet * GetSamplingDistributions(RooArgSet ¶mPoint)
const RooArgSet * fParametersForTestStat
virtual void SetTestSize(Double_t size)
void SetUseMultiGen(Bool_t flag)
RooAbsPdf::GenSpec * _gs3
GenSpec #2.
void SetGenerateBinned(bool binned=true)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooAbsPdf::GenSpec * _gs2
GenSpec #1.
std::string GetSamplingDistName(void)
const RooArgSet * fNuisancePars
virtual void SetNuisanceParameters(const RooArgSet &np)
Bool_t fExpectedNuisancePar
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
virtual void AddTestStatistic(TestStatistic *t=NULL)
RooAbsPdf * fPriorNuisance
std::list< RooAbsPdf * > _pdfList
virtual Double_t EvaluateTestStatistic(RooAbsData &data, RooArgSet &nullPOI)