A module for generating events based on the ROOT random number generator. More...
Classes | |
| class | GenerateEvent |
| A class for generating events. More... | |
Functions | |
| void | GenerateEvent::addCustomObservableType (const std::string name, boost::function< Observable *() > funct) |
| void | GenerateEvent::createDirectories () |
| void | GenerateEvent::defineParameterDistributions () |
| The parameter distributions as specified in SomeModel.conf is defined here. More... | |
| void | GenerateEvent::generate (int unsigned nIteration_i, int seed=0, bool weight_i=false) |
| The method used to generate events and format output. More... | |
| GenerateEvent::GenerateEvent (ModelFactory &ModelF, ThObsFactory &ThObsF, const std::string &ModelConf_i, const std::string &OutDirName_i, const std::string &JobTag_i) | |
| Constructor. More... | |
| void | GenerateEvent::generateRandomEvent (int iterationNo) |
| This member generates random numbers for the parameters being varied in the model. The first set is always the central value of the parameter. More... | |
| void | GenerateEvent::initModel () |
| void | GenerateEvent::setDParsFromParameters (const std::vector< double > ¶meters, std::map< std::string, double > &DPars_i) |
| virtual | GenerateEvent::~GenerateEvent () |
| The default destructor. More... | |
Variables | |
| double ** | GenerateEvent::buff |
| int ** | GenerateEvent::buff_int |
| double ** | GenerateEvent::buff_w |
| int | GenerateEvent::buffersize |
| std::vector< CorrelatedGaussianObservables > | GenerateEvent::CGO |
| vector for the Correlated Gaussian Observables defined in SomeModel.conf. More... | |
| std::string | GenerateEvent::CGODirName |
| String for the name of the Correlated Gaussian Observables output directory. More... | |
| std::map< std::string, boost::shared_ptr< std::ofstream > > | GenerateEvent::CGOOut |
| Map of output stream for corellated Gaussian observables. More... | |
| std::vector< CorrelatedGaussianParameters > | GenerateEvent::CGP |
| vector for the Correlated Gaussian Parameters defined in SomeModel.conf. More... | |
| std::map< std::string, TF1 * > | GenerateEvent::DDist |
| Map of parameter distributions. More... | |
| std::map< std::string, double > | GenerateEvent::DPars |
| Map of parameters to be passed to Model(). More... | |
| std::string | GenerateEvent::JobTag |
| String for the optional JobTag argument to be passes to the executable. More... | |
| StandardModel * | GenerateEvent::Mod |
| Name of the model as defined in SomeModel.conf. More... | |
| std::string | GenerateEvent::ModelConf |
| String for the name of the SomeModel.conf file. More... | |
| std::string | GenerateEvent::ModelName |
| std::vector< ModelParameter > | GenerateEvent::ModPars |
| Vector for the model parameters defined in SomeModel.conf. More... | |
| std::vector< ModelParameter > | GenerateEvent::ModParsVar |
| Vector for the model parameters varied in SomeModel.conf. More... | |
| InputParser | GenerateEvent::myInputParser |
| An oject of the InputParser() class. More... | |
| int | GenerateEvent::nameLen |
| int | GenerateEvent::nIteration |
| boost::ptr_vector< Observable > | GenerateEvent::Obs |
| Vector for the observables defined in SomeModel.conf. More... | |
| std::vector< Observable2D > | GenerateEvent::Obs2D |
| Vector for the Observables2D defined in SomeModel.conf. More... | |
| std::string | GenerateEvent::ObsDirName |
| String for the name of the observables output directory. More... | |
| std::map< std::string, boost::shared_ptr< std::ofstream > > | GenerateEvent::ObsOut |
| Map of output stream for observables. More... | |
| std::string | GenerateEvent::OldOutDirName |
| String for the name of the backup output directory. More... | |
| std::string | GenerateEvent::OutDirName |
| String for the name of the output directory. More... | |
| bool | GenerateEvent::outputTerm |
| Flag to specify output stream storage. More... | |
| std::string | GenerateEvent::ParsDirName |
| String for the name of the parameters output directory. More... | |
| std::map< std::string, boost::shared_ptr< std::ofstream > > | GenerateEvent::ParsOut |
| Map of output stream for parameters. More... | |
| int | GenerateEvent::positionID |
| char | GenerateEvent::processorName [MPI_MAX_PROCESSOR_NAME] |
| int | GenerateEvent::procnum |
| int | GenerateEvent::rank |
| double * | GenerateEvent::sendbuff |
| int * | GenerateEvent::sendbuff_int |
| double * | GenerateEvent::sendbuff_w |
| std::string | GenerateEvent::SMDebugDirName |
| String for the name of the observables output directory. More... | |
| std::ofstream | GenerateEvent::summary |
| std::string | GenerateEvent::SUSYDebugDirName |
| String for the name of the Correlated Gaussian Observables output directory. More... | |
| bool | GenerateEvent::weight |
A module for generating events based on the ROOT random number generator.
This module is for using the implementations of the observables without running a Markov Chain Monte Carlo. It allows generation of events based on the ROOT random number generator.
| void GenerateEvent::addCustomObservableType | ( | const std::string | name, |
| boost::function< Observable *() > | funct | ||
| ) |
Definition at line 505 of file GenerateEvent.cpp.
|
private |
Definition at line 270 of file GenerateEvent.cpp.
|
private |
The parameter distributions as specified in SomeModel.conf is defined here.
The parameters in the SomeModel.conf either have a flat error or a Gaussian error and might even have both. This member defines the distributions of the parameters using the TF1 class in ROOT.
Definition at line 391 of file GenerateEvent.cpp.
| void GenerateEvent::generate | ( | int unsigned | nIteration_i, |
| int | seed = 0, |
||
| bool | weight_i = false |
||
| ) |
The method used to generate events and format output.
This member creates all out directories that might be needed in case the output is stored on disk. Output on disk is generated as follows:
| [in] | rank | the rank of the process for MPI implementations (0 for serial implementation) |
| [in] | nIteration | number of events generated |
| [in] | seed | seed for the random number generator (default = 0) |
Definition at line 52 of file GenerateEvent.cpp.
| GenerateEvent::GenerateEvent | ( | ModelFactory & | ModelF, |
| ThObsFactory & | ThObsF, | ||
| const std::string & | ModelConf_i, | ||
| const std::string & | OutDirName_i, | ||
| const std::string & | JobTag_i | ||
| ) |
Constructor.
The default constructor sets the names of the configuration file and the names of the specific output directory along with a job ID if it is specified as an argument to the executable. Possible arguments to the executable are:
| [in] | ModelConf_i | the name of the input configuration file for the model name, the model parameters and observables to be calculated. |
| [in] | OutDirName_i | the name of the root output directory to be given |
| [in] | JobTag_i | optional job tag that might be specified |
| [in] | noMC_i | the noMC specification given to the executable= |
Definition at line 13 of file GenerateEvent.cpp.
|
private |
This member generates random numbers for the parameters being varied in the model. The first set is always the central value of the parameter.
| [in] | iterationNo | the iteration number |
Definition at line 433 of file GenerateEvent.cpp.
|
private |
Definition at line 329 of file GenerateEvent.cpp.
|
private |
Definition at line 469 of file GenerateEvent.cpp.
|
virtual |
The default destructor.
Definition at line 45 of file GenerateEvent.cpp.
|
private |
Definition at line 150 of file GenerateEvent.h.
|
private |
Definition at line 153 of file GenerateEvent.h.
|
private |
Definition at line 151 of file GenerateEvent.h.
|
private |
Definition at line 147 of file GenerateEvent.h.
|
private |
vector for the Correlated Gaussian Observables defined in SomeModel.conf.
Definition at line 125 of file GenerateEvent.h.
|
private |
String for the name of the Correlated Gaussian Observables output directory.
Definition at line 131 of file GenerateEvent.h.
|
private |
Map of output stream for corellated Gaussian observables.
Definition at line 118 of file GenerateEvent.h.
|
private |
vector for the Correlated Gaussian Parameters defined in SomeModel.conf.
Definition at line 126 of file GenerateEvent.h.
|
private |
Map of parameter distributions.
Definition at line 116 of file GenerateEvent.h.
|
private |
Map of parameters to be passed to Model().
Definition at line 115 of file GenerateEvent.h.
|
private |
String for the optional JobTag argument to be passes to the executable.
Definition at line 135 of file GenerateEvent.h.
|
private |
Name of the model as defined in SomeModel.conf.
Definition at line 120 of file GenerateEvent.h.
|
private |
String for the name of the SomeModel.conf file.
Definition at line 127 of file GenerateEvent.h.
|
private |
Definition at line 154 of file GenerateEvent.h.
|
private |
Vector for the model parameters defined in SomeModel.conf.
Definition at line 121 of file GenerateEvent.h.
|
private |
Vector for the model parameters varied in SomeModel.conf.
Definition at line 122 of file GenerateEvent.h.
|
private |
An oject of the InputParser() class.
Definition at line 114 of file GenerateEvent.h.
|
private |
Definition at line 141 of file GenerateEvent.h.
|
private |
Definition at line 145 of file GenerateEvent.h.
|
private |
Vector for the observables defined in SomeModel.conf.
Definition at line 123 of file GenerateEvent.h.
|
private |
Vector for the Observables2D defined in SomeModel.conf.
Definition at line 124 of file GenerateEvent.h.
|
private |
String for the name of the observables output directory.
Definition at line 130 of file GenerateEvent.h.
|
private |
Map of output stream for observables.
Definition at line 117 of file GenerateEvent.h.
|
private |
String for the name of the backup output directory.
Definition at line 129 of file GenerateEvent.h.
|
private |
String for the name of the output directory.
Definition at line 128 of file GenerateEvent.h.
|
private |
Flag to specify output stream storage.
Definition at line 137 of file GenerateEvent.h.
|
private |
String for the name of the parameters output directory.
Definition at line 134 of file GenerateEvent.h.
|
private |
Map of output stream for parameters.
Definition at line 119 of file GenerateEvent.h.
|
private |
Definition at line 146 of file GenerateEvent.h.
|
private |
Definition at line 142 of file GenerateEvent.h.
|
private |
Definition at line 139 of file GenerateEvent.h.
|
private |
Definition at line 138 of file GenerateEvent.h.
|
private |
Definition at line 148 of file GenerateEvent.h.
|
private |
Definition at line 152 of file GenerateEvent.h.
|
private |
Definition at line 149 of file GenerateEvent.h.
|
private |
String for the name of the observables output directory.
Definition at line 132 of file GenerateEvent.h.
|
private |
Definition at line 144 of file GenerateEvent.h.
|
private |
String for the name of the Correlated Gaussian Observables output directory.
Definition at line 133 of file GenerateEvent.h.
|
private |
Definition at line 155 of file GenerateEvent.h.