#include <GeneratorState.hh>
Public Member Functions | |
GeneratorState () | |
template<typename T > | |
const GeneratorState & | setParam (const string &name, const T &value) |
const GeneratorState & | setParam (const string &name, const string &value) |
const GeneratorState & | addSeed (const int &seed) |
const vector< int > & | getSeeds () const |
const bool | setCrossSection (const double xs) |
const double | getCrossSection () const |
const int | getNEvents () const |
const GeneratorState & | addEvent () |
const GeneratorState & | setBeams (const Beam beam1, const Beam beam2) |
const void | addPDF (PDF pdf) |
const GeneratorState & | setName (const string &name) |
const void | setVersion (const string &ver) |
const string | version () const |
const string & | name () const |
const vector< Beam > & | getBeams () const |
const PDF & | getPDF (PdgCode pid) const |
Private Attributes | |
vector< Beam > | _beams |
int | _nEvents |
double | _luminosity |
double | _crossSection |
string | _genName |
string | _genVersion |
map< PdgCode, PDF > | _pDFs |
vector< int > | _seeds |
map< string, string > | _stringParams |
Definition at line 25 of file GeneratorState.hh.
GeneratorState | ( | ) | [inline] |
Definition at line 28 of file GeneratorState.hh.
References GeneratorState::_crossSection, and GeneratorState::_nEvents.
00028 { 00029 _nEvents = 0; 00030 _crossSection = 0.0; 00031 }
const GeneratorState& addEvent | ( | ) | [inline] |
Definition at line 76 of file GeneratorState.hh.
References GeneratorState::_nEvents.
Referenced by Generator::makeEvent().
00076 { 00077 ++_nEvents; 00078 return *this; 00079 }
const void addPDF | ( | ) | [inline] |
Definition at line 91 of file GeneratorState.hh.
References GeneratorState::_pDFs, and PDF::particleId.
Referenced by Generator::getState().
00091 { 00092 _pDFs[pdf.particleId] = pdf; 00093 }
const GeneratorState& addSeed | ( | const int & | seed | ) | [inline] |
Definition at line 48 of file GeneratorState.hh.
References GeneratorState::_seeds.
Referenced by Generator::setSeed().
00048 { 00049 _seeds.push_back(seed); 00050 return *this; 00051 }
const vector<Beam>& getBeams | ( | ) | const [inline] |
Definition at line 117 of file GeneratorState.hh.
References GeneratorState::_beams.
Referenced by Generator::getState(), and AGILe::operator<<().
00117 { 00118 return _beams; 00119 }
const double getCrossSection | ( | ) | const [inline] |
Definition at line 66 of file GeneratorState.hh.
References GeneratorState::_crossSection.
Referenced by AGILe::operator<<().
00066 { 00067 return _crossSection; 00068 }
const int getNEvents | ( | ) | const [inline] |
Definition at line 71 of file GeneratorState.hh.
References GeneratorState::_nEvents.
Referenced by AGILe::operator<<().
00071 { 00072 return _nEvents; 00073 }
Definition at line 122 of file GeneratorState.hh.
References GeneratorState::_pDFs.
Referenced by AGILe::operator<<().
const vector<int>& getSeeds | ( | ) | const [inline] |
Definition at line 54 of file GeneratorState.hh.
References GeneratorState::_seeds.
Referenced by AGILe::operator<<().
00054 { 00055 return _seeds; 00056 }
const string& name | ( | ) | const [inline] |
Definition at line 112 of file GeneratorState.hh.
References GeneratorState::_genName.
Referenced by AGILe::operator<<().
00112 { 00113 return _genName; 00114 }
const GeneratorState& setBeams | ( | const Beam | beam1, | |
const Beam | beam2 | |||
) | [inline] |
Definition at line 82 of file GeneratorState.hh.
References GeneratorState::_beams.
Referenced by Generator::setInitialState().
const bool setCrossSection | ( | const double | xs | ) | [inline] |
Definition at line 60 of file GeneratorState.hh.
References GeneratorState::_crossSection.
Referenced by Generator::getState().
00060 { 00061 _crossSection = xs; 00062 return true; 00063 }
const GeneratorState& setName | ( | const string & | name | ) | [inline] |
Definition at line 96 of file GeneratorState.hh.
References GeneratorState::_genName.
Referenced by Generator::getState().
const GeneratorState& setParam | ( | const string & | name, | |
const string & | value | |||
) | [inline] |
Definition at line 42 of file GeneratorState.hh.
References GeneratorState::_stringParams.
00042 { 00043 _stringParams[name] = value; 00044 return *this; 00045 }
const GeneratorState& setParam | ( | const string & | name, | |
const T & | value | |||
) | [inline] |
Definition at line 35 of file GeneratorState.hh.
Referenced by Generator::setParam().
const void setVersion | ( | const string & | ver | ) | [inline] |
Definition at line 102 of file GeneratorState.hh.
References GeneratorState::_genVersion.
Referenced by Generator::getState().
00102 { 00103 _genVersion = ver; 00104 }
const string version | ( | ) | const [inline] |
Definition at line 107 of file GeneratorState.hh.
References GeneratorState::_genVersion.
Referenced by AGILe::operator<<().
00107 { 00108 return _genVersion; 00109 }
Definition at line 133 of file GeneratorState.hh.
Referenced by GeneratorState::getBeams(), and GeneratorState::setBeams().
double _crossSection [private] |
Definition at line 137 of file GeneratorState.hh.
Referenced by GeneratorState::GeneratorState(), GeneratorState::getCrossSection(), and GeneratorState::setCrossSection().
string _genName [private] |
Definition at line 139 of file GeneratorState.hh.
Referenced by GeneratorState::name(), and GeneratorState::setName().
string _genVersion [private] |
Definition at line 140 of file GeneratorState.hh.
Referenced by GeneratorState::setVersion(), and GeneratorState::version().
double _luminosity [private] |
Definition at line 136 of file GeneratorState.hh.
int _nEvents [private] |
Definition at line 135 of file GeneratorState.hh.
Referenced by GeneratorState::addEvent(), GeneratorState::GeneratorState(), and GeneratorState::getNEvents().
Definition at line 142 of file GeneratorState.hh.
Referenced by GeneratorState::addPDF(), and GeneratorState::getPDF().
vector<int> _seeds [private] |
Definition at line 144 of file GeneratorState.hh.
Referenced by GeneratorState::addSeed(), and GeneratorState::getSeeds().
map<string, string> _stringParams [private] |
Definition at line 145 of file GeneratorState.hh.
Referenced by GeneratorState::setParam().