12 #ifndef ROOSTATS_ToyMCImportanceSampler 13 #define ROOSTATS_ToyMCImportanceSampler 79 virtual RooAbsData*
GenerateToyData(std::vector<double>& weights, std::vector<double>& nullNLLs, std::vector<double>& impNLLs)
const;
146 oocoutE((
TObject*)0,
InputArguments) <<
"Cannot use SetPdf() when already multiple null densities are specified. Please use AddNullDensity()." << std::endl;
158 oocoutE((
TObject*)0,
InputArguments) <<
"Cannot use SetParametersForTestStat() when already multiple null densities are specified. Please use AddNullDensity()." << std::endl;
182 double poiValueForBackground = 0.0
188 double nStdDevOverlap = 0.5,
189 double poiValueForBackground = 0.0
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
virtual void SetParametersForTestStat(const RooArgSet &nullpoi)
void SetParametersForTestStat(const RooArgSet &nullpoi)
void SetExpIncreasingNumToysPerDensity(void)
virtual void ClearCache()
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint, double &weight) const
ToyMCImportanceSampler is an extension of the ToyMCSampler for Importance Sampling.
void SetReuseNLL(bool r=true)
#define ClassDef(name, id)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
std::vector< RooAbsReal * > fNullNLLs
RooRealVar represents a fundamental (non-derived) real valued object.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
std::vector< const RooArgSet * > fNullSnapshots
ToyMCImportanceSampler(TestStatistic &ts, Int_t ntoys)
virtual ~ToyMCImportanceSampler()
virtual void SetConditionalObservables(const RooArgSet &set)
virtual void SetPdf(RooAbsPdf &pdf)
std::vector< const RooArgSet * > fImportanceSnapshots
RooAbsData is the common abstract base class for binned and unbinned datasets.
ToyMCSampler is an implementation of the TestStatSampler interface.
RooDataSet is a container class to hold unbinned data.
int CreateNImpDensitiesForOnePOI(RooAbsPdf &pdf, const RooArgSet &allPOI, RooRealVar &poi, int n, double poiValueForBackground=0.0)
std::vector< RooAbsPdf * > fNullDensities
virtual RooDataSet * GetSamplingDistributionsSingleWorker(RooArgSet ¶mPoint)
Namespace for the RooStats classes.
unsigned int fIndexGenDensity
std::vector< RooAbsReal * > fImpNLLs
toysStrategies fToysStrategy
virtual void SetPdf(RooAbsPdf &pdf)
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint, RooAbsPdf &pdf) const
Mother of all ROOT objects.
void SetDensityToGenerateFromByIndex(unsigned int i, bool fromNull=false)
specifies the pdf to sample from
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
void SetEqualNumToysPerDensity(void)
std::vector< RooAbsPdf * > fImportanceDensities
const RooArgSet * fParametersForTestStat
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
int CreateImpDensitiesForOnePOIAdaptively(RooAbsPdf &pdf, const RooArgSet &allPOI, RooRealVar &poi, double nStdDevOverlap=0.5, double poiValueForBackground=0.0)
void AddNullDensity(RooAbsPdf *p, const RooArgSet *s=NULL)
void AddImportanceDensity(RooAbsPdf *p, const RooArgSet *s)
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
void SetApplyVeto(bool b=true)
RooArgSet fConditionalObs