#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 78 of file Pythia6Service.cc.
Pythia6Service::Pythia6Service | ( | edm::ParameterSet const & | ps | ) |
Definition at line 83 of file Pythia6Service.cc.
References edm::hlt::Exception, fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, fPythia6Owner, edm::ParameterSet::getParameter(), getDQMSummary::iter, geometryCSVtoXML::line, and groupFilesInBlocks::lines.
Pythia6Service::~Pythia6Service | ( | ) |
Definition at line 160 of file Pythia6Service.cc.
References fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, and fPythia6Owner.
void Pythia6Service::closePYUPDA | ( | ) |
Definition at line 281 of file Pythia6Service.cc.
References fiocls_(), and fUnitPYUPDA.
void Pythia6Service::closeSLHA | ( | ) |
Definition at line 273 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 171 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 254 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 238 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 204 of file Pythia6Service.cc.
References fParamCSA, i, getDQMSummary::iter, 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 188 of file Pythia6Service.cc.
References gen::call_pygive(), fParamGeneral, getDQMSummary::iter, 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(), and gen::Pythia6Hadronizer::readSettings().
void Pythia6Service::setPYUPDAParams | ( | bool | afterPyinit | ) |
Definition at line 331 of file Pythia6Service.cc.
References end, python.connectstrParser::f1, mergeVDriftHistosByStation::file, fParamPYUPDA, edm::FileInPath::fullPath(), getDQMSummary::iter, 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(), and gen::Pythia6Hadronizer::doSetRandomEngine().
void Pythia6Service::setSLHAFromHeader | ( | const std::vector< std::string > & | lines | ) |
Definition at line 382 of file Pythia6Service.cc.
References createPayload::block, gather_cfg::blocks, call_pyslha(), mergeVDriftHistosByStation::file, alignmentValidation::fname, cmsHarvester::index, getDQMSummary::iter, geometryCSVtoXML::line, NULL, openSLHA(), dbtoconf::out, gen::pydat1_, python.multivaluedict::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 290 of file Pythia6Service.cc.
References end, python.connectstrParser::f1, mergeVDriftHistosByStation::file, fParamSLHA, edm::FileInPath::fullPath(), getDQMSummary::iter, 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().