8 #ifndef GENERATEEVENT_H
9 #define GENERATEEVENT_H
14 #include "CorrelatedGaussianObservables.h"
17 #include "boost/shared_ptr.hpp"
18 #include "boost/make_shared.hpp"
59 const std::string& ModelConf_i,
60 const std::string& OutDirName_i,
61 const std::string& JobTag_i,
87 void generate(
int unsigned nIteration_i,
int seed = 0,
bool weight_i =
false);
112 void setDParsFromParameters(
const std::vector<double>& parameters, std::map<std::string,double>& DPars_i);
115 std::map<std::string, double>
DPars;
117 std::map<std::string, boost::shared_ptr<std::ofstream> >
ObsOut;
118 std::map<std::string, boost::shared_ptr<std::ofstream> >
CGOOut;
119 std::map<std::string, boost::shared_ptr<std::ofstream> >
ParsOut;
123 boost::ptr_vector<Observable>
Obs;
125 std::vector<CorrelatedGaussianObservables>
CGO;
126 std::vector<CorrelatedGaussianParameters>
CGP;
142 char processorName[MPI_MAX_PROCESSOR_NAME];
std::string ObsDirName
String for the name of the observables output directory.
std::map< std::string, double > DPars
Map of parameters to be passed to Model().
bool outputTerm
Flag to specify output stream storage.
std::string ModelConf
String for the name of the SomeModel.conf file.
std::vector< Observable2D > Obs2D
Vector for the Observables2D defined in SomeModel.conf.
A class for the template of models.
void generate(int unsigned nIteration_i, int seed=0, bool weight_i=false)
The method used to generate events and format output.
void 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.
GenerateEvent(ModelFactory &ModelF, ThObsFactory &ThObsF, const std::string &ModelConf_i, const std::string &OutDirName_i, const std::string &JobTag_i, const bool noMC_i)
Constructor.
void defineParameterDistributions()
The parameter distributions as specified in SomeModel.conf is defined here.
std::string CGODirName
String for the name of the Correlated Gaussian Observables output directory.
std::string JobTag
String for the optional JobTag argument to be passes to the executable.
std::vector< CorrelatedGaussianParameters > CGP
vector for the Correlated Gaussian Parameters defined in SomeModel.conf.
A class for generating events.
std::string SUSYDebugDirName
String for the name of the Correlated Gaussian Observables output directory.
InputParser myInputParser
An oject of the InputParser() class.
std::map< std::string, boost::shared_ptr< std::ofstream > > ParsOut
Map of output stream for parameters.
std::vector< ModelParameter > ModPars
Vector for the model parameters defined in SomeModel.conf.
boost::ptr_vector< Observable > Obs
Vector for the observables defined in SomeModel.conf.
std::string OutDirName
String for the name of the output directory.
std::string OldOutDirName
String for the name of the backup output directory.
std::vector< CorrelatedGaussianObservables > CGO
vector for the Correlated Gaussian Observables defined in SomeModel.conf.
void setDParsFromParameters(const std::vector< double > ¶meters, std::map< std::string, double > &DPars_i)
void addCustomObservableType(const std::string name, boost::function< Observable *() > funct)
std::string ParsDirName
String for the name of the parameters output directory.
Model * Mod
Name of the model as defined in SomeModel.conf.
bool noMC
Flag to initiate noMC mode.
std::map< std::string, boost::shared_ptr< std::ofstream > > ObsOut
Map of output stream for observables.
std::vector< ModelParameter > ModParsVar
Vector for the model parameters varied in SomeModel.conf.
std::map< std::string, TF1 * > DDist
Map of parameter distributions.
std::map< std::string, boost::shared_ptr< std::ofstream > > CGOOut
Map of output stream for corellated Gaussian observables.
virtual ~GenerateEvent()
The default destructor.
std::string SMDebugDirName
String for the name of the observables output directory.