#include <FHerwigJimmy.hh>
Public Types | |
enum | Result { SUCCESS = 1, FAILURE = 0 } |
Really just syntactic sugar for bool returns from setParam. More... | |
Public Member Functions | |
FHerwigJimmy () | |
Standard constructor. | |
~FHerwigJimmy () | |
Destructor. | |
void | makeEvent (HepMC::GenEvent &evt) |
Run the generator for one event. | |
bool | setParam (const string &name, const string &value) |
Pass a parameter to the generator. | |
virtual const string | getName () const |
Generator name. | |
void | finalize () |
Tidy up after ourselves. | |
virtual void | setGenSpecificInitialState (PdgCode p1=PROTON, double e1=7000.0, PdgCode p2=PROTON, double e2=7000.0) |
Set up initial state from supplied params. | |
virtual void | setSeed (const int value) |
Set the random number generator seed. | |
virtual bool | setParam (const std::string &name, const int &value) |
Pass an int-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const unsigned int &value) |
Pass an int-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const long &value) |
Pass an int-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const unsigned long &value) |
Pass an int-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const double &value) |
Pass a double/float-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const float &value) |
Pass a double/float-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const bool &value) |
Pass a bool-valued parameter to the generator. | |
virtual bool | setParam (const std::string &name, const std::string &value) |
Pass a string-valued parameter to the generator. | |
string | getPDFSet (PdgCode pid) |
int | getPDFMember (PdgCode pid) |
Get the PDF id number for a given particle. | |
string | getPDFScheme (PdgCode pid) const |
Get the PDF scheme used by the generator (LHAPDF or other). | |
virtual const double | getCrossSection () |
Return the generated cross section in pb. | |
void | setInitialState (int p1=PROTON, double e1=7000.0, int p2=PROTON, double e2=7000.0) |
Define initial state. | |
virtual const GeneratorState & | getState () |
Get a generator state object. | |
virtual void | setState (const GeneratorState &state) |
Setup the generator from a generator state object. | |
virtual void | setVersion (const std::string &version) |
Set the generator version. | |
virtual const std::string | getVersion () |
Get the generator version. This implementation is used as a last resort to determine the generator version. Ideally a specific generator will know its own version and overwrite this. Some generators (e.g. FHerwig) don't know this. | |
Protected Member Functions | |
void | initialize () |
Set up default params etc. | |
virtual void | fillEvent (HepMC::GenEvent &evt) |
Fill a HepMC event. | |
Log & | getLog () const |
Get named logger. | |
virtual void | clearEvent (HepMC::GenEvent &evt) |
Clear the supplied event. | |
Protected Attributes | |
bool | _doHadronise |
Flag to determine if the hadronisation process will be run. | |
bool | _unitWeight |
Flag to determine if weighted or unweighted events are to be generated. | |
bool | _iprocset |
Flag to determine if the process code has been set. | |
double | _crossSection |
bool | _initialstateset |
Flag for detecting whether the setInitialState method has run. | |
bool | _initialized |
Flag for detecting whether the initialization method has run. | |
map< PdgCode, std::string > | _particleNames |
Collection of translated names for particles. | |
string | _myName |
Generator name. |
Abstract base class for the Fortran-based Herwig generator series
Definition at line 14 of file FHerwigJimmy.hh.
enum Result [inherited] |
Really just syntactic sugar for bool returns from setParam.
Definition at line 37 of file Generator.hh.
FHerwigJimmy | ( | ) |
Standard constructor.
Definition at line 12 of file FHerwigJimmy.cc.
References Generator::_myName, FC_JIMMIN, and FC_JMPARM.
~FHerwigJimmy | ( | ) | [inline] |
virtual void clearEvent | ( | HepMC::GenEvent & | evt | ) | [inline, protected, virtual, inherited] |
Clear the supplied event.
Definition at line 275 of file Generator.hh.
Referenced by Generator::makeEvent(), FHerwigJimmy::makeEvent(), and AlpGenFHerwigJimmy::makeEvent().
void fillEvent | ( | HepMC::GenEvent & | evt | ) | [protected, virtual, inherited] |
Fill a HepMC event.
Definition at line 564 of file FHerwig.cc.
References FHerwig::_nevt, FHerwig::_unitWeight, FC_HWEVNT, AGILe::fixHepMCUnitsFromGeVmm(), FHerwig::getCrossSection(), MSG_DEBUG, p, and xsec.
Referenced by FHerwigJimmy::makeEvent(), FHerwig::makeEvent(), AlpGenFHerwigJimmy::makeEvent(), and AlpGenFHerwig::makeEvent().
00564 { 00565 HepMC::IO_HERWIG hepevt; 00566 hepevt.fill_next_event(&evt); 00567 fixHepMCUnitsFromGeVmm(evt); 00568 evt.set_event_number(_nevt); 00569 00570 // Set beam particle status = 4 00571 if (evt.valid_beam_particles()) { 00572 evt.beam_particles().first->set_status(4); 00573 evt.beam_particles().second->set_status(4); 00574 } 00575 00576 // Rewrite status codes to match HepMC standard (2 -> 3, 195-199 -> 2) 00577 for (HepMC::GenEvent::particle_const_iterator p = evt.particles_begin(); p != evt.particles_end(); ++p) { 00578 if ((*p)->status() == 2) (*p)->set_status(3); 00579 if ((*p)->status() >= 195 && (*p)->status() <= 199) (*p)->set_status(2); 00580 } 00581 00582 //IO_HERWIG::fillEvent does not fill the weight 00583 evt.weights().clear(); 00584 if(FC_HWEVNT.NOWGT == 0 || !_unitWeight){ 00585 evt.weights().push_back(FC_HWEVNT.EVWGT); 00586 }else{ 00587 evt.weights().push_back(1.0); 00588 } 00589 00590 // Cross-section 00591 #ifdef HEPMC_HAS_CROSS_SECTION 00592 HepMC::GenCrossSection xsec; 00593 const double xsecval = getCrossSection(); 00594 const double xsecerr = getCrossSection() / std::sqrt(_nevt); 00595 MSG_DEBUG("Writing cross-section = " << xsecval << " +- " << xsecerr); 00596 xsec.set_cross_section(xsecval, xsecerr); 00597 evt.set_cross_section(xsec); 00598 #endif 00599 }
void finalize | ( | ) | [virtual] |
Tidy up after ourselves.
Tidy up, print out run stats, etc.
Reimplemented from FHerwig.
Definition at line 136 of file FHerwigJimmy.cc.
References FC_JMEFIN, and FC_JMPARM.
00136 { 00137 FHerwig::finalize(); 00138 if (FC_JMPARM.MSFLAG == 1) { 00139 FC_JMEFIN(); 00140 } 00141 }
const double getCrossSection | ( | ) | [virtual, inherited] |
Return the generated cross section in pb.
Reimplemented from Generator.
Definition at line 648 of file FHerwig.cc.
References Generator::_crossSection, and FC_HWEVNT.
Referenced by FHerwig::fillEvent().
00648 { 00649 _crossSection = 1000.0 * FC_HWEVNT.WGTSUM / ((float)FC_HWEVNT.NWGTS); 00650 return _crossSection; 00651 }
Log& getLog | ( | ) | const [inline, protected, inherited] |
Get named logger.
Definition at line 257 of file Generator.hh.
References Generator::getName().
Referenced by Rapgap::fillEvent(), Phojet::fillEvent(), Cascade::fillEvent(), Ariadne::fillEvent(), Rapgap::finalize(), Phojet::finalize(), Cascade::finalize(), Ariadne::finalize(), Rapgap::initialize(), Cascade::initialize(), Cascade::makeEvent(), Rapgap::setGenSpecificInitialState(), Phojet::setGenSpecificInitialState(), Cascade::setGenSpecificInitialState(), Ariadne::setGenSpecificInitialState(), Rapgap::setParam(), Cascade::setParam(), and AlpGen::setParam().
00257 { 00258 return Log::getLog("AGILe." + getName()); 00259 }
virtual const string getName | ( | ) | const [inline, virtual] |
Generator name.
Reimplemented from Generator.
Definition at line 32 of file FHerwigJimmy.hh.
Referenced by FHerwigJimmy::setParam().
int getPDFMember | ( | PdgCode | pid | ) | [virtual, inherited] |
Get the PDF id number for a given particle.
Reimplemented from Generator.
Definition at line 633 of file FHerwig.cc.
References FHerwig::_beamNumber(), and FC_HWPRAM.
00633 { 00634 const int beamNum = _beamNumber(pid); 00635 if (beamNum < 0) { 00636 throw runtime_error("PDFMember unknown for PDG code "+ pid); 00637 } 00638 const int member = FC_HWPRAM.MODPDF[beamNum]; 00639 return member; 00640 }
string getPDFScheme | ( | PdgCode | pid | ) | const [virtual, inherited] |
Get the PDF scheme used by the generator (LHAPDF or other).
Reimplemented from Generator.
Definition at line 643 of file FHerwig.cc.
string getPDFSet | ( | PdgCode | pid | ) | [virtual, inherited] |
Get the PDF set used by the generator, e.g. HWLHAPDF (for herwig) or one of the default sets.
Reimplemented from Generator.
Definition at line 620 of file FHerwig.cc.
References FHerwig::_beamNumber(), and FC_HWPRCH.
00620 { 00621 const int beamNum = _beamNumber(pid); 00622 if (beamNum < 0) { 00623 throw runtime_error("PDFSet unknown for PDG code " + pid); 00624 } 00625 string autString = ""; 00626 for (size_t ii = 0; ii != AUTPDF_LENGTH; ++ii) { 00627 autString += FC_HWPRCH.AUTPDF[beamNum][ii]; 00628 } 00629 return autString; 00630 }
virtual const GeneratorState& getState | ( | ) | [inline, virtual, inherited] |
Get a generator state object.
Definition at line 72 of file Generator.hh.
References Generator::_myState, GeneratorState::addPDF(), GeneratorState::getBeams(), Generator::getCrossSection(), Generator::getName(), Generator::getPDFMember(), Generator::getPDFScheme(), Generator::getPDFSet(), Generator::getVersion(), PDF::member, Beam::name, PDF::particleId, PDF::scheme, PDF::set, GeneratorState::setCrossSection(), GeneratorState::setName(), and GeneratorState::setVersion().
00072 { 00073 string myName = getName(); 00074 _myState.setName(myName); 00075 _myState.setVersion(getVersion()); 00076 _myState.setCrossSection(getCrossSection()); 00077 PDF pdf; 00078 foreach (Beam b, _myState.getBeams()) { 00079 pdf.particleId = b.name; 00080 pdf.set = getPDFSet(b.name); 00081 pdf.member = getPDFMember(b.name); 00082 pdf.scheme = getPDFScheme(b.name); 00083 _myState.addPDF(pdf); 00084 } 00085 return _myState; 00086 }
virtual const std::string getVersion | ( | ) | [inline, virtual, inherited] |
Get the generator version. This implementation is used as a last resort to determine the generator version. Ideally a specific generator will know its own version and overwrite this. Some generators (e.g. FHerwig) don't know this.
Reimplemented in Ariadne, FPythia, and Phojet.
Definition at line 112 of file Generator.hh.
References Generator::_myVersion, Generator::_versionSet, and MSG_ERROR.
Referenced by Generator::getState().
00112 { 00113 if (!_versionSet) { 00115 MSG_ERROR("You asked the generator " //<< getName() 00116 << " what version it is, but it doesn't know!\n" 00117 << "You should set the version with a call to setVersion(string)"); 00118 throw runtime_error("Version unknown for generator"); 00119 } 00120 return _myVersion; 00121 }
void initialize | ( | ) | [protected, virtual] |
Set up default params etc.
Reimplemented from FHerwig.
Definition at line 23 of file FHerwigJimmy.cc.
References Generator::_initialized, FC_JMINIT, and FC_JMPARM.
00023 { 00024 FHerwig::initialize(); 00025 00026 // Initialise Jimmy. 00027 if (FC_JMPARM.MSFLAG == 1) { 00028 FC_JMINIT(); 00029 } 00030 00031 _initialized = true; 00032 }
void makeEvent | ( | HepMC::GenEvent & | evt | ) | [virtual] |
Run the generator for one event.
Reimplemented from FHerwig.
Reimplemented in AlpGenFHerwigJimmy.
Definition at line 88 of file FHerwigJimmy.cc.
References FHerwig::_doHadronise, Generator::clearEvent(), FC_HWBGEN, FC_HWCDEC, FC_HWCFOR, FC_HWDHAD, FC_HWDHOB, FC_HWDHVY, FC_HWEPRO, FC_HWEVNT, FC_HWMEVT, FC_HWMSCT, FC_HWUFNE, FC_HWUINE, FC_JMPARM, FHerwig::fillEvent(), and MSG_DEBUG.
00088 { 00089 Generator::makeEvent(evt); 00090 while (true) { 00091 int counter(0); 00092 // Repeat the first stages of event generation until multiple 00093 // scattering succeeds (or isn't run at all). 00094 while (true) { 00095 counter += 1; 00096 00097 FC_HWUINE(); // Initialize event 00098 FC_HWEPRO(); // Generate hard subprocess 00099 FC_HWBGEN(); // Generate parton cascade 00100 00101 // Call the multiple scattering routine with the abort flag. 00102 // If abort is returned with value 1 (true), then abandon the 00103 // event. This implementation makes sure that the event generation 00104 // continues if multiple scattering is disabled (MSFLAG != 1) 00105 int abort(0); 00106 if (FC_JMPARM.MSFLAG == 1) FC_HWMSCT(&abort); 00107 // If MS is okay or disabled, escape the loop and 00108 // continue with the decays and hadronisation. 00109 if (abort == 0) { 00110 MSG_DEBUG("Num attempts to make MPI = " << counter); 00111 break; 00112 } 00113 00114 // Check for too many attempts to make MPI scatters 00115 if (counter > 100) { 00116 throw runtime_error("Too many attempts to make MPI in FHerwigJimmy"); 00117 } 00118 } 00119 FC_HWDHOB(); // Do heavy quark decays 00120 if (_doHadronise) { 00121 FC_HWCFOR(); // Do cluster formation 00122 FC_HWCDEC(); // Do cluster decays 00123 FC_HWDHAD(); // Do unstable particle decays 00124 FC_HWDHVY(); // Do heavy flavor decays 00125 FC_HWMEVT(); // Add soft underlying event 00126 } 00127 FC_HWUFNE(); // Finish event 00128 if (FC_HWEVNT.IERROR == 0) break; 00129 } 00130 clearEvent(evt); 00131 fillEvent(evt); 00132 }
void setGenSpecificInitialState | ( | PdgCode | p1 = PROTON , |
|
double | e1 = 7000.0 , |
|||
PdgCode | p2 = PROTON , |
|||
double | e2 = 7000.0 | |||
) | [virtual, inherited] |
Set up initial state from supplied params.
Implements Generator.
Definition at line 56 of file FHerwig.cc.
References Generator::_particleNames, AGILe::ANTIPROTON, FC_HWBMCH, FC_HWPROC, MSG_DEBUG, AGILe::NEUTRON, and AGILe::PROTON.
00056 { 00057 MSG_DEBUG("Setting initial state..."); 00058 // Herwig's initial state particles specification must be 8 chars long 00059 for (size_t i = 0; i < 8; ++i) { 00060 FC_HWBMCH.PART1[i] = _particleNames[ParticleName(p1)].c_str()[i]; 00061 FC_HWBMCH.PART2[i] = _particleNames[ParticleName(p2)].c_str()[i]; 00062 } 00063 // Set momenta / energies 00064 // NB. Beam ordering is significant (segfault if "wrong") for HERA-like initial states 00065 // Subtraction of (very rough!) beam particle masses to get momenta rather than energies 00066 if (p1 == PROTON || p1 == ANTIPROTON || p1 == NEUTRON) e1 = sqrt(e1*e1 - 1.0); 00067 if (p2 == PROTON || p2 == ANTIPROTON || p2 == NEUTRON) e2 = sqrt(e2*e2 - 1.0); 00068 // And set the common block values 00069 FC_HWPROC.PBEAM1 = e1; 00070 FC_HWPROC.PBEAM2 = e2; 00071 }
void setInitialState | ( | int | p1 = PROTON , |
|
double | e1 = 7000.0 , |
|||
int | p2 = PROTON , |
|||
double | e2 = 7000.0 | |||
) | [inline, inherited] |
Define initial state.
Definition at line 54 of file Generator.hh.
References Generator::_initialstateset, Generator::_myState, Beam::energy, Beam::name, Beam::position, GeneratorState::setBeams(), and Generator::setGenSpecificInitialState().
Referenced by Generator::initialize().
00056 { 00057 setGenSpecificInitialState(p1, e1, p2, e2); 00059 _initialstateset = true; 00060 Beam beam1, beam2; 00061 beam1.name = p1; 00062 beam2.name = p2; 00063 beam1.energy = e1; 00064 beam2.energy = e2; 00065 beam1.position = 1; 00066 beam2.position = 2; 00067 _myState.setBeams(beam1, beam2); 00068 }
virtual bool setParam | ( | const std::string & | name, | |
const std::string & | value | |||
) | [inline, virtual, inherited] |
Pass a string-valued parameter to the generator.
Definition at line 224 of file Generator.hh.
References Generator::_initialized, Generator::_myState, MSG_ERROR, and GeneratorState::setParam().
00224 { 00225 if (_initialized) { 00226 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00227 throw runtime_error("Tried to set param after generator initialization"); 00228 } 00229 _myState.setParam(name, value); 00230 return true; 00231 }
virtual bool setParam | ( | const std::string & | name, | |
const bool & | value | |||
) | [inline, virtual, inherited] |
Pass a bool-valued parameter to the generator.
Definition at line 214 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, Generator::setParam(), and AGILe::toString().
00214 { 00215 if (_initialized) { 00216 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00217 throw runtime_error("Tried to set param after generator initialization"); 00218 } 00219 return setParam(name, toString(value)); 00220 }
virtual bool setParam | ( | const std::string & | name, | |
const float & | value | |||
) | [inline, virtual, inherited] |
Pass a double/float-valued parameter to the generator.
Definition at line 204 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, Generator::setParam(), and AGILe::toString().
00204 { 00205 if (_initialized) { 00206 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00207 throw runtime_error("Tried to set param after generator initialization"); 00208 } 00209 return setParam(name, toString(value)); 00210 }
virtual bool setParam | ( | const std::string & | name, | |
const double & | value | |||
) | [inline, virtual, inherited] |
Pass a double/float-valued parameter to the generator.
Definition at line 194 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, Generator::setParam(), and AGILe::toString().
00194 { 00195 if (_initialized) { 00196 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00197 throw runtime_error("Tried to set param after generator initialization."); 00198 } 00199 return setParam(name, toString(value)); 00200 }
virtual bool setParam | ( | const std::string & | name, | |
const unsigned long & | value | |||
) | [inline, virtual, inherited] |
Pass an int-valued parameter to the generator.
Definition at line 184 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, Generator::setParam(), and AGILe::toString().
00184 { 00185 if (_initialized) { 00186 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00187 throw runtime_error("Tried to set param after generator initialization"); 00188 } 00189 return setParam(name, toString(value)); 00190 }
virtual bool setParam | ( | const std::string & | name, | |
const long & | value | |||
) | [inline, virtual, inherited] |
Pass an int-valued parameter to the generator.
Definition at line 174 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, Generator::setParam(), and AGILe::toString().
00174 { 00175 if (_initialized) { 00176 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00177 throw runtime_error("Tried to set param after generator initialization"); 00178 } 00179 return setParam(name, toString(value)); 00180 }
virtual bool setParam | ( | const std::string & | name, | |
const unsigned int & | value | |||
) | [inline, virtual, inherited] |
Pass an int-valued parameter to the generator.
Definition at line 164 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, Generator::setParam(), and AGILe::toString().
00164 { 00165 if (_initialized) { 00166 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00167 throw runtime_error("Tried to set param after generator initialization"); 00168 } 00169 return setParam(name, toString(value)); 00170 }
virtual bool setParam | ( | const std::string & | name, | |
const int & | value | |||
) | [inline, virtual, inherited] |
Pass an int-valued parameter to the generator.
Definition at line 154 of file Generator.hh.
References Generator::_initialized, MSG_ERROR, and AGILe::toString().
Referenced by Generator::setParam().
00154 { 00155 if (_initialized) { 00156 MSG_ERROR("Can't set parameter " << name << ": generator has already been initialized"); 00157 throw runtime_error("Tried to set param after generator initialization"); 00158 } 00159 return setParam(name, toString(value)); 00160 }
bool setParam | ( | const string & | name, | |
const string & | value | |||
) | [virtual] |
Pass a parameter to the generator.
Reimplemented from FHerwig.
Reimplemented in AlpGenFHerwigJimmy, and CharybdisFHerwigJimmy.
Definition at line 36 of file FHerwigJimmy.cc.
References AGILe::asDouble(), AGILe::asInt(), Generator::FAILURE, FC_JMPARM, FHerwigJimmy::getName(), MSG_ERROR, MSG_INFO, FHerwig::setParam(), and Generator::SUCCESS.
00036 { 00037 Generator::setParam(name, value); 00038 00039 // Integers. 00040 if (name == "JMUEO") { 00041 MSG_INFO("Setting JMUEO = " << asInt(value)); 00042 FC_JMPARM.JMUEO = asInt(value); 00043 } else if (name == "JMBUG") { 00044 MSG_INFO("Setting JMBUG = " << asInt(value)); 00045 FC_JMPARM.JMBUG = asInt(value); 00046 } else if (name == "MSFLAG") { 00047 MSG_INFO("Setting MSFLAG = " << asInt(value)); 00048 FC_JMPARM.MSFLAG = asInt(value); 00049 } 00050 00051 // Doubles. 00052 else if (name == "PTJIM") { 00053 MSG_INFO("Setting minimum PT for secondary scatters (PTJIM) = " << asDouble(value)); 00054 FC_JMPARM.PTJIM = asDouble(value); 00055 } else if (name == "PHAD") { 00056 MSG_INFO("Setting hadronic photon inverse probability (PHAD) = " << asDouble(value)); 00057 FC_JMPARM.PHAD = asDouble(value); 00058 } else if (name == "PRRAD") { 00059 MSG_INFO("Setting 1/(Proton radius)2 (PRRAD) = " << asDouble(value)); 00060 FC_JMPARM.JMRAD[72] = asDouble(value); 00061 FC_JMPARM.JMRAD[74] = asDouble(value); 00062 FC_JMPARM.JMRAD[90] = asDouble(value); 00063 FC_JMPARM.JMRAD[92] = asDouble(value); 00064 } else if (name == "PHRAD") { 00065 MSG_INFO("Setting 1/(Photon radius)2 (PRRAD) = " << asDouble(value)); 00066 FC_JMPARM.JMRAD[58] = asDouble(value); 00067 FC_JMPARM.JMRAD[120] = asDouble(value); 00068 FC_JMPARM.JMRAD[126] = asDouble(value); 00069 } 00070 00071 // Boolean (as int). 00072 else if (name == "ANOMOFF") { 00073 MSG_INFO("Setting MI in anomalous photon events (ANOMOFF) = " << asInt(value)); 00074 FC_JMPARM.ANOMOFF = asInt(value); 00075 } 00076 00077 // Fall back to FHerwig. 00078 else if (FHerwig::setParam(name, value) != SUCCESS) { 00079 MSG_ERROR(getName() << " doesn't have a parameter called " << name); 00080 return FAILURE; 00081 } 00082 return SUCCESS; 00083 }
void setSeed | ( | const int | value | ) | [virtual, inherited] |
Set the random number generator seed.
Reimplemented from Generator.
Definition at line 111 of file FHerwig.cc.
References FHerwig::setParam().
00111 { 00112 Generator::setSeed(value); 00113 setParam("SEED", value); 00114 }
virtual void setState | ( | const GeneratorState & | state | ) | [inline, virtual, inherited] |
Setup the generator from a generator state object.
Definition at line 90 of file Generator.hh.
virtual void setVersion | ( | const std::string & | version | ) | [inline, virtual, inherited] |
Set the generator version.
Definition at line 102 of file Generator.hh.
References Generator::_myVersion, and Generator::_versionSet.
Referenced by AGILe::Loader::createGen().
00102 { 00103 _myVersion = version; 00104 _versionSet = true; 00105 }
double _crossSection [protected, inherited] |
Definition at line 282 of file Generator.hh.
Referenced by Rapgap::getCrossSection(), Phojet::getCrossSection(), Generator::getCrossSection(), FPythia::getCrossSection(), FHerwig::getCrossSection(), Cascade::getCrossSection(), and Ariadne::getCrossSection().
bool _doHadronise [protected, inherited] |
Flag to determine if the hadronisation process will be run.
Definition at line 54 of file FHerwig.hh.
Referenced by FHerwig::_processParams(), FHerwigJimmy::makeEvent(), FHerwig::makeEvent(), AlpGenFHerwigJimmy::makeEvent(), and AlpGenFHerwig::makeEvent().
bool _initialized [protected, inherited] |
Flag for detecting whether the initialization method has run.
Definition at line 288 of file Generator.hh.
Referenced by Rapgap::initialize(), Phojet::initialize(), FPythia::initialize(), FHerwigJimmy::initialize(), FHerwig::initialize(), Cascade::initialize(), Ariadne::initialize(), Generator::makeEvent(), Generator::setParam(), and Generator::setSeed().
bool _initialstateset [protected, inherited] |
Flag for detecting whether the setInitialState method has run.
Definition at line 285 of file Generator.hh.
Referenced by Generator::initialize(), and Generator::setInitialState().
bool _iprocset [protected, inherited] |
Flag to determine if the process code has been set.
Definition at line 60 of file FHerwig.hh.
Referenced by AlpGenFHerwig::AlpGenFHerwig(), AlpGenFHerwigJimmy::AlpGenFHerwigJimmy(), FHerwig::initialize(), and FHerwig::setParam().
string _myName [protected, inherited] |
Generator name.
Definition at line 294 of file Generator.hh.
Referenced by AlpGenFHerwig::AlpGenFHerwig(), AlpGenFPythia::AlpGenFPythia(), CharybdisFHerwig::CharybdisFHerwig(), CharybdisFHerwigJimmy::CharybdisFHerwigJimmy(), CharybdisFPythia::CharybdisFPythia(), FHerwig::FHerwig(), FHerwigJimmy::FHerwigJimmy(), FPythia::FPythia(), and Generator::getName().
map<PdgCode, std::string> _particleNames [protected, inherited] |
Collection of translated names for particles.
Definition at line 291 of file Generator.hh.
Referenced by FHerwig::_beamNumber(), Ariadne::Ariadne(), FHerwig::FHerwig(), FPythia::FPythia(), Phojet::Phojet(), Rapgap::Rapgap(), Phojet::setGenSpecificInitialState(), FPythia::setGenSpecificInitialState(), FHerwig::setGenSpecificInitialState(), and Ariadne::setGenSpecificInitialState().
bool _unitWeight [protected, inherited] |
Flag to determine if weighted or unweighted events are to be generated.
Definition at line 57 of file FHerwig.hh.
Referenced by FHerwig::_processParams(), and FHerwig::fillEvent().