44 coutP(Generation) <<
"initialize" << endl;
47 coutE(InputArguments) <<
"Need an instance of ToyMCSampler to run." << endl;
50 coutI(InputArguments) <<
"Using given ToyMCSampler." << endl;
56 if (worknumber !=
"undef") {
57 iworker =
int( worknumber.
Atof()*10 + 0.1);
60 std::cout <<
"Current global seed is " <<
fRandomSeed << std::endl;
64 for (
int i = 0; i< iworker; ++i)
91 coutP(Generation) <<
"ToyMCStudy::finalize" << endl;
106 coutE(Generation) <<
"ToyMCStudy::merge No detailed output present." << endl;
111 for (
auto * o : static_range_cast<TObject*>(*
detailedData())) {
114 coutW(Generation) <<
"Merging Results problem: not correct type" << endl;
125 coutP(Generation) <<
"Merged data from nworkers # " << i <<
"- merged data size is " << samplingOutput->
numEntries() << std::endl;
128 return samplingOutput;
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
void storeDetailedOutput(Bool_t flag)
RooLinkedList * detailedData()
RooDataSet is a container class to hold unbinned data.
void append(RooDataSet &data)
Add all data points of given data set to this data set.
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
RooDataSet * GetSamplingDistributions()
virtual RooDataSet * GetSamplingDistributionsSingleWorker(RooArgSet ¶mPoint)
This is the main function for serial runs.
ToyMCStudy is an implementation of RooAbsStudy for toy Monte Carlo sampling.
virtual Bool_t finalize(void)
ToyMCSampler * fToyMCSampler
virtual Bool_t initialize(void)
virtual Bool_t execute(void)
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
Random number generator class based on the maximally quidistributed combined Tausworthe generator by ...
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual UInt_t GetSeed() const
Get the random generator seed.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer uniformly distributed on the interval [ 0, imax-1 ].
Double_t Atof() const
Return floating-point value contained in string.
Namespace for the RooStats classes.