![]() |
ROOT
6.06/09
Reference Guide
|
ToyMCSampler is an implementation of the TestStatSampler interface.
It generates Toy Monte Carlo for a given parameter point and evaluates a TestStatistic.
For parallel runs, ToyMCSampler can be given an instance of ProofConfig and then run in parallel using proof or proof-lite. Internally, it uses ToyMCStudy with the RooStudyManager.
Definition at line 99 of file ToyMCSampler.h.
Static Public Member Functions | |
| static void | SetAlwaysUseMultiGen (Bool_t flag) |
Protected Member Functions | |
| const RooArgList * | EvaluateAllTestStatistics (RooAbsData &data, const RooArgSet &poi, DetailedOutputAggregator &detOutAgg) |
| RooAbsData * | Generate (RooAbsPdf &pdf, RooArgSet &observables, const RooDataSet *protoData=NULL, int forceEvents=0) const |
| virtual void | ClearCache () |
Protected Attributes | |
| RooAbsPdf * | fPdf |
| const RooArgSet * | fParametersForTestStat |
| std::vector< TestStatistic * > | fTestStatistics |
| std::string | fSamplingDistName |
| RooAbsPdf * | fPriorNuisance |
| const RooArgSet * | fNuisancePars |
| const RooArgSet * | fObservables |
| const RooArgSet * | fGlobalObservables |
| Int_t | fNToys |
| Int_t | fNEvents |
| Double_t | fSize |
| Bool_t | fExpectedNuisancePar |
| Bool_t | fGenerateBinned |
| TString | fGenerateBinnedTag |
| Bool_t | fGenerateAutoBinned |
| Double_t | fToysInTails |
| Double_t | fMaxToys |
| Double_t | fAdaptiveLowLimit |
| Double_t | fAdaptiveHighLimit |
| const RooDataSet * | fProtoData |
| ProofConfig * | fProofConfig |
| NuisanceParametersSampler * | fNuisanceParametersSampler |
| RooArgSet * | _allVars |
| std::list< RooAbsPdf * > | _pdfList |
| std::list< RooArgSet * > | _obsList |
| std::list< RooAbsPdf::GenSpec * > | _gsList |
| RooAbsPdf::GenSpec * | _gs1 |
| RooAbsPdf::GenSpec * | _gs2 |
| GenSpec #1. More... | |
| RooAbsPdf::GenSpec * | _gs3 |
| GenSpec #2. More... | |
| RooAbsPdf::GenSpec * | _gs4 |
| GenSpec #3. More... | |
| Bool_t | fUseMultiGen |
Static Protected Attributes | |
| static Bool_t | fgAlwaysUseMultiGen |
| GenSpec #4. More... | |
#include <RooStats/ToyMCSampler.h>
Inheritance diagram for RooStats::ToyMCSampler:
Collaboration diagram for RooStats::ToyMCSampler:| RooStats::ToyMCSampler::ToyMCSampler | ( | ) |
| RooStats::ToyMCSampler::ToyMCSampler | ( | TestStatistic & | ts, |
| Int_t | ntoys | ||
| ) |
|
virtual |
|
inlinevirtual |
Definition at line 125 of file ToyMCSampler.h.
|
virtual |
Referenced by RooStats::NeymanConstruction::GetInterval().
|
protectedvirtual |
Reimplemented in RooStats::ToyMCImportanceSampler.
Referenced by SetPdf().
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Definition at line 168 of file ToyMCSampler.h.
|
virtual |
Referenced by RooStats::HypoTestCalculatorGeneric::GetHypoTest().
|
protected |
|
inlinevirtual |
Definition at line 155 of file ToyMCSampler.h.
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Definition at line 158 of file ToyMCSampler.h.
Referenced by EvaluateTestStatistic().
|
protected |
|
inlinevirtual |
Definition at line 140 of file ToyMCSampler.h.
Referenced by RooStats::HypoTestInverter::RebuildDistributions().
|
inlinevirtual |
Definition at line 145 of file ToyMCSampler.h.
Referenced by GenerateToyData().
|
virtual |
|
inlinevirtual |
Reimplemented in RooStats::ToyMCImportanceSampler.
Definition at line 148 of file ToyMCSampler.h.
Referenced by GenerateToyData().
Definition at line 175 of file ToyMCSampler.h.
|
inline |
Definition at line 241 of file ToyMCSampler.h.
|
virtual |
Implements RooStats::TestStatSampler.
|
virtual |
Referenced by RooStats::HypoTestCalculatorGeneric::GetHypoTest().
|
virtual |
Reimplemented in RooStats::ToyMCImportanceSampler.
|
inlinevirtual |
Definition at line 162 of file ToyMCSampler.h.
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Definition at line 166 of file ToyMCSampler.h.
Referenced by GetTestStatistic().
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Definition at line 169 of file ToyMCSampler.h.
Definition at line 227 of file ToyMCSampler.h.
Implements RooStats::TestStatSampler.
Definition at line 211 of file ToyMCSampler.h.
Definition at line 226 of file ToyMCSampler.h.
Definition at line 237 of file ToyMCSampler.h.
|
inline |
Definition at line 233 of file ToyMCSampler.h.
|
inline |
Definition at line 235 of file ToyMCSampler.h.
Implements RooStats::TestStatSampler.
Definition at line 205 of file ToyMCSampler.h.
Referenced by RooStats::FrequentistCalculator::PreAltHook(), RooStats::FrequentistCalculator::PreNullHook(), and RooStats::HypoTestInverter::RebuildDistributions().
Definition at line 244 of file ToyMCSampler.h.
Definition at line 177 of file ToyMCSampler.h.
Referenced by RooStats::FeldmanCousins::GetInterval(), and RooStats::HypoTestInverter::RebuildDistributions().
Definition at line 176 of file ToyMCSampler.h.
Referenced by RooStats::FrequentistCalculator::PreAltHook(), RooStats::HybridCalculator::PreAltHook(), RooStats::FrequentistCalculator::PreNullHook(), and RooStats::HybridCalculator::PreNullHook().
Implements RooStats::TestStatSampler.
Definition at line 201 of file ToyMCSampler.h.
Referenced by RooStats::HypoTestInverter::RebuildDistributions().
Implements RooStats::TestStatSampler.
Definition at line 203 of file ToyMCSampler.h.
Referenced by RooStats::FeldmanCousins::GetInterval(), and RooStats::HypoTestInverter::RebuildDistributions().
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Reimplemented in RooStats::ToyMCImportanceSampler.
Definition at line 185 of file ToyMCSampler.h.
Referenced by RooStats::HypoTestInverter::RebuildDistributions(), and RooStats::ToyMCImportanceSampler::SetParametersForTestStat().
Implements RooStats::TestStatSampler.
Reimplemented in RooStats::ToyMCImportanceSampler.
Definition at line 190 of file ToyMCSampler.h.
Referenced by RooStats::HypoTestInverter::RebuildDistributions(), and RooStats::ToyMCImportanceSampler::SetPdf().
Implements RooStats::TestStatSampler.
Definition at line 193 of file ToyMCSampler.h.
|
inline |
Definition at line 263 of file ToyMCSampler.h.
|
inline |
Definition at line 265 of file ToyMCSampler.h.
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Definition at line 240 of file ToyMCSampler.h.
Implements RooStats::TestStatSampler.
Definition at line 209 of file ToyMCSampler.h.
|
inlinevirtual |
Definition at line 214 of file ToyMCSampler.h.
|
inlinevirtual |
Implements RooStats::TestStatSampler.
Definition at line 224 of file ToyMCSampler.h.
Referenced by SetTestStatistic().
|
inline |
Definition at line 256 of file ToyMCSampler.h.
Referenced by RooStats::FrequentistCalculator::PreAltHook(), RooStats::HybridCalculator::PreAltHook(), RooStats::FrequentistCalculator::PreNullHook(), and RooStats::HybridCalculator::PreNullHook().
Definition at line 246 of file ToyMCSampler.h.
Referenced by RooStats::FrequentistCalculator::PreAltHook(), RooStats::HybridCalculator::PreAltHook(), RooStats::FrequentistCalculator::PreNullHook(), and RooStats::HybridCalculator::PreNullHook().
Definition at line 251 of file ToyMCSampler.h.
Referenced by RooStats::FrequentistCalculator::PreAltHook(), RooStats::HybridCalculator::PreAltHook(), RooStats::FrequentistCalculator::PreNullHook(), and RooStats::HybridCalculator::PreNullHook().
Definition at line 109 of file ToyMCSampler.h.
|
mutableprotected |
Definition at line 314 of file ToyMCSampler.h.
|
mutableprotected |
Definition at line 318 of file ToyMCSampler.h.
|
mutableprotected |
GenSpec #1.
Definition at line 319 of file ToyMCSampler.h.
|
mutableprotected |
GenSpec #2.
Definition at line 320 of file ToyMCSampler.h.
|
mutableprotected |
GenSpec #3.
Definition at line 321 of file ToyMCSampler.h.
|
mutableprotected |
Definition at line 317 of file ToyMCSampler.h.
|
mutableprotected |
Definition at line 316 of file ToyMCSampler.h.
|
mutableprotected |
Definition at line 315 of file ToyMCSampler.h.
|
protected |
Definition at line 305 of file ToyMCSampler.h.
Referenced by SetToysBothTails(), SetToysLeftTail(), and SetToysRightTail().
|
protected |
Definition at line 304 of file ToyMCSampler.h.
Referenced by SetToysBothTails(), SetToysLeftTail(), and SetToysRightTail().
|
protected |
Definition at line 291 of file ToyMCSampler.h.
Referenced by GenerateToyData(), SetAsimovNuisancePar(), and SetExpectedNuisancePar().
|
staticprotected |
GenSpec #4.
Definition at line 323 of file ToyMCSampler.h.
|
protected |
Definition at line 294 of file ToyMCSampler.h.
Referenced by SetGenerateAutoBinned().
|
protected |
Definition at line 292 of file ToyMCSampler.h.
Referenced by SetGenerateBinned().
|
protected |
Definition at line 293 of file ToyMCSampler.h.
Referenced by SetGenerateBinnedTag().
|
protected |
Definition at line 287 of file ToyMCSampler.h.
Referenced by SetGlobalObservables().
|
protected |
Definition at line 302 of file ToyMCSampler.h.
Referenced by SetMaxToys().
|
protected |
Definition at line 289 of file ToyMCSampler.h.
Referenced by SetNEventsPerToy().
|
protected |
Definition at line 288 of file ToyMCSampler.h.
Referenced by GetNToys(), and SetNToys().
|
mutableprotected |
Definition at line 311 of file ToyMCSampler.h.
Referenced by SetPriorNuisance().
|
protected |
Definition at line 285 of file ToyMCSampler.h.
Referenced by SetNuisanceParameters().
|
protected |
Definition at line 286 of file ToyMCSampler.h.
Referenced by SetObservables().
|
protected |
Definition at line 280 of file ToyMCSampler.h.
Referenced by RooStats::ToyMCImportanceSampler::AddNullDensity(), and SetParametersForTestStat().
|
protected |
Definition at line 279 of file ToyMCSampler.h.
Referenced by RooStats::ToyMCImportanceSampler::AddImportanceDensity(), GenerateToyData(), and SetPdf().
|
protected |
Definition at line 284 of file ToyMCSampler.h.
Referenced by SetPriorNuisance().
|
protected |
Definition at line 309 of file ToyMCSampler.h.
Referenced by SetProofConfig().
|
protected |
Definition at line 307 of file ToyMCSampler.h.
Referenced by SetProtoData().
|
protected |
Definition at line 283 of file ToyMCSampler.h.
Referenced by GetSamplingDistName(), and SetSamplingDistName().
|
protected |
Definition at line 290 of file ToyMCSampler.h.
Referenced by ConfidenceLevel(), SetConfidenceLevel(), and SetTestSize().
|
protected |
Definition at line 281 of file ToyMCSampler.h.
Referenced by AddTestStatistic(), EvaluateTestStatistic(), GetTestStatistic(), and SetTestStatistic().
|
protected |
Definition at line 299 of file ToyMCSampler.h.
Referenced by SetToysBothTails(), SetToysLeftTail(), and SetToysRightTail().
|
protected |
Definition at line 324 of file ToyMCSampler.h.
Referenced by SetUseMultiGen().