16 #ifndef ROO_MSG_SERVICE
38 Bool_t ToyMCStudy::initialize(
void) {
51 if (worknumber !=
"undef") {
52 iworker = int( worknumber.
Atof()*10 + 0.1);
55 std::cout <<
"Current global seed is " << fRandomSeed << std::endl;
59 for (
int i = 0; i< iworker; ++i)
75 RooDataSet* sd = fToyMCSampler->GetSamplingDistributionsSingleWorker(fParamPoint);
77 storeDetailedOutput(*sdw);
86 if(fToyMCSampler)
delete fToyMCSampler;
98 coutE(
Generation) <<
"ToyMCStudy::merge No detailed output present." << endl;
105 while((o = iter.
Next())) {
108 coutW(
Generation) <<
"Merging Results problem: not correct type" << endl;
119 coutP(
Generation) <<
"Merged data from nworkers # " << i <<
"- merged data size is " << samplingOutput->
numEntries() << std::endl;
122 return samplingOutput;
Random number generator class based on the maximally quidistributed combined Tausworthe generator by ...
Double_t Atof() const
Return floating-point value contained in string.
RooDataSet * GetSamplingDistributions()
virtual void SetSeed(UInt_t seed=0)
Set the random generator seed.
ToyMCStudy is an implementation of RooAbsStudy for toy Monte Carlo sampling.
virtual UInt_t GetSeed() const
std::map< std::string, std::string >::const_iterator iter
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
ClassImp(RooStats::ToyMCStudy)
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual Int_t numEntries() const
Namespace for the RooStats classes.
void append(RooDataSet &data)
Add all data points of given data set to this data set.
Mother of all ROOT objects.