#include <Pythia6Service.h>
Public Member Functions | |
void | closePYUPDA () |
void | closeSLHA () |
virtual void | enter () |
void | openPYUPDA (const char *, bool write_file) |
void | openSLHA (const char *) |
Pythia6Service () | |
Pythia6Service (edm::ParameterSet const &) | |
CLHEP::HepRandomEngine * | randomEngine () const |
void | setCSAParams () |
void | setGeneralParams () |
void | setPYUPDAParams (bool afterPyinit) |
void | setRandomEngine (CLHEP::HepRandomEngine *v) |
void | setSLHAFromHeader (const std::vector< std::string > &lines) |
void | setSLHAParams () |
~Pythia6Service () | |
Public Member Functions inherited from gen::FortranInstance | |
void | call (void(&fn)()) |
template<typename T > | |
T | call (T(&fn)()) |
template<typename A > | |
void | call (void(&fn)(A), A a) |
template<typename T , typename A > | |
T | call (T(&fn)(A), A a) |
template<typename A1 , typename A2 > | |
void | call (void(&fn)(A1, A2), A1 a1, A2 a2) |
template<typename T , typename A1 , typename A2 > | |
T | call (T(&fn)(A1, A2), A1 a1, A2 a2) |
FortranInstance () | |
virtual void | leave () |
virtual void | upEvnt () |
virtual void | upInit () |
virtual bool | upVeto () |
virtual | ~FortranInstance () |
Private Attributes | |
bool | fInitialising |
std::vector< std::string > | fParamCSA |
std::vector< std::string > | fParamGeneral |
std::vector< std::string > | fParamPYUPDA |
std::vector< std::string > | fParamSLHA |
CLHEP::HepRandomEngine * | fRandomEngine |
int | fUnitPYUPDA |
int | fUnitSLHA |
Static Private Attributes | |
static Pythia6Service * | fPythia6Owner = 0 |
Friends | |
double | gen::pyr_ (int *) |
Additional Inherited Members | |
Static Public Member Functions inherited from gen::FortranInstance | |
template<typename T > | |
static T * | getInstance () |
Static Public Attributes inherited from gen::FortranInstance | |
static const std::string | kFortranInstance = "FortranInstance" |
Definition at line 25 of file Pythia6Service.h.
Pythia6Service::Pythia6Service | ( | ) |
Definition at line 79 of file Pythia6Service.cc.
Pythia6Service::Pythia6Service | ( | edm::ParameterSet const & | ps | ) |
Definition at line 84 of file Pythia6Service.cc.
References Exception, fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, fPythia6Owner, edm::ParameterSet::getParameter(), geometryCSVtoXML::line, and groupFilesInBlocks::lines.
Pythia6Service::~Pythia6Service | ( | ) |
Definition at line 161 of file Pythia6Service.cc.
References fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, and fPythia6Owner.
void Pythia6Service::closePYUPDA | ( | ) |
Definition at line 282 of file Pythia6Service.cc.
References fiocls_(), and fUnitPYUPDA.
void Pythia6Service::closeSLHA | ( | ) |
Definition at line 274 of file Pythia6Service.cc.
References fiocls_(), and fUnitSLHA.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons(), gen::Cascade2Hadronizer::initializeForInternalPartons(), and gen::Pythia6Hadronizer::initializeForInternalPartons().
|
virtual |
Reimplemented from gen::FortranInstance.
Definition at line 172 of file Pythia6Service.cc.
References gen::call_pygive(), gen::FortranInstance::enter(), and fPythia6Owner.
void Pythia6Service::openPYUPDA | ( | const char * | file, |
bool | write_file | ||
) |
Definition at line 255 of file Pythia6Service.cc.
References call_pyupda(), gather_cfg::cout, fioopn_(), fioopnw_(), and fUnitPYUPDA.
Referenced by setPYUPDAParams().
void Pythia6Service::openSLHA | ( | const char * | file | ) |
Definition at line 239 of file Pythia6Service.cc.
References gen::call_pygive(), fioopn_(), and fUnitSLHA.
Referenced by setSLHAFromHeader(), and setSLHAParams().
|
inline |
Definition at line 47 of file Pythia6Service.h.
References fRandomEngine.
Referenced by gen::Pythia6Gun::produce().
void Pythia6Service::setCSAParams | ( | ) |
Definition at line 205 of file Pythia6Service.cc.
References fParamCSA, i, reco_skim_cfg_mod::maxSize, reco::return(), SETCSAPARBUFSIZE, gen::txgive_(), and gen::txgive_init_().
Referenced by gen::Pythia6Gun::beginLuminosityBlock(), gen::Cascade2Hadronizer::initializeForInternalPartons(), gen::Cascade2Hadronizer::readSettings(), gen::PyquenHadronizer::readSettings(), and gen::Pythia6Hadronizer::readSettings().
void Pythia6Service::setGeneralParams | ( | ) |
Definition at line 189 of file Pythia6Service.cc.
References gen::call_pygive(), fParamGeneral, and reco::return().
Referenced by ParticleReplacerParticleGun::beginJob(), ParticleReplacerZtautau::beginJob(), gen::Pythia6Gun::beginLuminosityBlock(), GenMuonRadiationAlgorithm::compFSR(), gen::Cascade2Hadronizer::initializeForInternalPartons(), gen::Cascade2Hadronizer::readSettings(), gen::PyquenHadronizer::readSettings(), gen::HydjetHadronizer::readSettings(), gen::ExhumeHadronizer::readSettings(), gen::Pythia6Hadronizer::readSettings(), and gen::Hydjet2Hadronizer::readSettings().
void Pythia6Service::setPYUPDAParams | ( | bool | afterPyinit | ) |
Definition at line 332 of file Pythia6Service.cc.
References end, validate-o2o-wbm::f1, mergeVDriftHistosByStation::file, fParamPYUPDA, edm::FileInPath::fullPath(), openPYUPDA(), dqm_diff::start, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons(), gen::Cascade2Hadronizer::initializeForInternalPartons(), and gen::Pythia6Hadronizer::initializeForInternalPartons().
|
inline |
Definition at line 48 of file Pythia6Service.h.
References fRandomEngine, and gen::v.
Referenced by gen::Cascade2Hadronizer::doSetRandomEngine(), gen::PyquenHadronizer::doSetRandomEngine(), gen::HydjetHadronizer::doSetRandomEngine(), gen::ExhumeHadronizer::doSetRandomEngine(), gen::Pythia6Hadronizer::doSetRandomEngine(), and gen::Hydjet2Hadronizer::doSetRandomEngine().
void Pythia6Service::setSLHAFromHeader | ( | const std::vector< std::string > & | lines | ) |
Definition at line 383 of file Pythia6Service.cc.
References createPayload::block, gather_cfg::blocks, call_pyslha(), mergeVDriftHistosByStation::file, alignmentValidation::fname, cmsHarvester::index, geometryCSVtoXML::line, openSLHA(), GenerateHcalLaserBadRunList::out, gen::pydat1_, MatrixUtil::remove(), reco::return(), split, mathSSE::sqrt(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, create_public_lumi_plots::transform, estimatePileup_makeJSON::trunc, and relativeConstraints::value.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons().
void Pythia6Service::setSLHAParams | ( | ) |
Definition at line 291 of file Pythia6Service.cc.
References end, validate-o2o-wbm::f1, mergeVDriftHistosByStation::file, fParamSLHA, edm::FileInPath::fullPath(), openSLHA(), dqm_diff::start, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by gen::Pythia6Gun::beginLuminosityBlock(), gen::Cascade2Hadronizer::initializeForInternalPartons(), gen::Cascade2Hadronizer::readSettings(), and gen::Pythia6Hadronizer::readSettings().
|
friend |
|
private |
Definition at line 53 of file Pythia6Service.h.
|
private |
Definition at line 58 of file Pythia6Service.h.
Referenced by Pythia6Service(), setCSAParams(), and ~Pythia6Service().
|
private |
Definition at line 57 of file Pythia6Service.h.
Referenced by Pythia6Service(), setGeneralParams(), and ~Pythia6Service().
|
private |
Definition at line 60 of file Pythia6Service.h.
Referenced by Pythia6Service(), setPYUPDAParams(), and ~Pythia6Service().
|
private |
Definition at line 59 of file Pythia6Service.h.
Referenced by Pythia6Service(), setSLHAParams(), and ~Pythia6Service().
|
staticprivate |
Definition at line 64 of file Pythia6Service.h.
Referenced by enter(), Pythia6Service(), and ~Pythia6Service().
|
private |
Definition at line 55 of file Pythia6Service.h.
Referenced by gen::pyr_(), randomEngine(), and setRandomEngine().
|
private |
Definition at line 62 of file Pythia6Service.h.
Referenced by closePYUPDA(), and openPYUPDA().
|
private |
Definition at line 61 of file Pythia6Service.h.
Referenced by closeSLHA(), and openSLHA().