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
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
virtual void SetParametersForTestStat(const RooArgSet &nullpoi)
void SetParametersForTestStat(const RooArgSet &nullpoi)
void SetExpIncreasingNumToysPerDensity(void)
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint, RooAbsPdf &pdf) const
virtual RooDataSet * GetSamplingDistributionsSingleWorker(RooArgSet ¶mPoint)
ToyMCImportanceSampler is an extension of the ToyMCSampler for Importance Sampling.
virtual ~ToyMCImportanceSampler()
void SetReuseNLL(bool r=true)
virtual RooAbsData * GenerateToyData(RooArgSet ¶mPoint, double &weight) const
#define ClassDef(name, id)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
std::vector< RooAbsReal * > fNullNLLs
std::vector< const RooArgSet * > fNullSnapshots
ToyMCImportanceSampler(TestStatistic &ts, Int_t ntoys)
virtual void SetConditionalObservables(const RooArgSet &set)
virtual void SetPdf(RooAbsPdf &pdf)
std::vector< const RooArgSet * > fImportanceSnapshots
ToyMCSampler is an implementation of the TestStatSampler interface.
virtual void ClearCache()
int CreateNImpDensitiesForOnePOI(RooAbsPdf &pdf, const RooArgSet &allPOI, RooRealVar &poi, int n, double poiValueForBackground=0.0)
std::vector< RooAbsPdf * > fNullDensities
Namespace for the RooStats classes.
unsigned int fIndexGenDensity
std::vector< RooAbsReal * > fImpNLLs
toysStrategies fToysStrategy
virtual void SetPdf(RooAbsPdf &pdf)
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
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)
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add element to non-owning set.
RooArgSet fConditionalObs