#include <Pythia6Service.h>
Public Member Functions | |
void | closePYUPDA () |
void | closeSLHA () |
void | enter () override |
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 () override | |
Public Member Functions inherited from gen::FortranInstance | |
template<typename T > | |
T | call (T(&fn)()) |
template<typename T , typename A > | |
T | call (T(&fn)(A), A a) |
template<typename T , typename A1 , typename A2 > | |
T | call (T(&fn)(A1, A2), A1 a1, A2 a2) |
void | call (void(&fn)()) |
template<typename A > | |
void | call (void(&fn)(A), A a) |
template<typename A1 , typename A2 > | |
void | call (void(&fn)(A1, A2), A1 a1, A2 a2) |
FortranInstance () | |
virtual void | leave () |
virtual void | upEvnt () |
virtual void | upInit () |
virtual bool | upVeto () |
virtual | ~FortranInstance () noexcept(false) |
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 = nullptr |
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 24 of file Pythia6Service.h.
Pythia6Service::Pythia6Service | ( | ) |
Definition at line 73 of file Pythia6Service.cc.
Pythia6Service::Pythia6Service | ( | edm::ParameterSet const & | ps | ) |
Definition at line 75 of file Pythia6Service.cc.
References Exception, fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, fPythia6Owner, edm::ParameterSet::getParameter(), mps_splice::line, and groupFilesInBlocks::lines.
|
override |
Definition at line 131 of file Pythia6Service.cc.
References fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, and fPythia6Owner.
void Pythia6Service::closePYUPDA | ( | ) |
Definition at line 233 of file Pythia6Service.cc.
References fiocls_(), and fUnitPYUPDA.
void Pythia6Service::closeSLHA | ( | ) |
Definition at line 227 of file Pythia6Service.cc.
References fiocls_(), and fUnitSLHA.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons(), gen::Cascade2Hadronizer::initializeForInternalPartons(), and gen::Pythia6Hadronizer::initializeForInternalPartons().
|
overridevirtual |
Reimplemented from gen::FortranInstance.
Definition at line 141 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 211 of file Pythia6Service.cc.
References call_pyupda(), gather_cfg::cout, FrontierConditions_GlobalTag_cff::file, fioopn_(), fioopnw_(), and fUnitPYUPDA.
Referenced by setPYUPDAParams().
void Pythia6Service::openSLHA | ( | const char * | file | ) |
Definition at line 198 of file Pythia6Service.cc.
References gen::call_pygive(), FrontierConditions_GlobalTag_cff::file, fioopn_(), and fUnitSLHA.
Referenced by setSLHAFromHeader(), and setSLHAParams().
|
inline |
Definition at line 45 of file Pythia6Service.h.
References fRandomEngine.
Referenced by gen::Pythia6Gun::produce().
void Pythia6Service::setCSAParams | ( | ) |
Definition at line 168 of file Pythia6Service.cc.
References visDQMUpload::buf, fParamCSA, mps_fire::i, reco_skim_cfg_mod::maxSize, 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 157 of file Pythia6Service.cc.
References gen::call_pygive(), and fParamGeneral.
Referenced by gen::Pythia6Gun::beginLuminosityBlock(), gen::Cascade2Hadronizer::initializeForInternalPartons(), gen::Cascade2Hadronizer::readSettings(), gen::PyquenHadronizer::readSettings(), gen::ExhumeHadronizer::readSettings(), gen::Pythia6Hadronizer::readSettings(), gen::HydjetHadronizer::readSettings(), and gen::Hydjet2Hadronizer::readSettings().
void Pythia6Service::setPYUPDAParams | ( | bool | afterPyinit | ) |
Definition at line 276 of file Pythia6Service.cc.
References mps_fire::end, DeadROC_duringRun::f1, FrontierConditions_GlobalTag_cff::file, fParamPYUPDA, openPYUPDA(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons(), gen::Cascade2Hadronizer::initializeForInternalPartons(), and gen::Pythia6Hadronizer::initializeForInternalPartons().
|
inline |
Definition at line 46 of file Pythia6Service.h.
References fRandomEngine, and gen::v.
Referenced by gen::Cascade2Hadronizer::doSetRandomEngine(), gen::PyquenHadronizer::doSetRandomEngine(), gen::ExhumeHadronizer::doSetRandomEngine(), gen::HydjetHadronizer::doSetRandomEngine(), gen::Pythia6Hadronizer::doSetRandomEngine(), and gen::Hydjet2Hadronizer::doSetRandomEngine().
void Pythia6Service::setSLHAFromHeader | ( | const std::vector< std::string > & | lines | ) |
Definition at line 324 of file Pythia6Service.cc.
References groupFilesInBlocks::block, gather_cfg::blocks, call_pyslha(), FrontierConditions_GlobalTag_cff::file, alignmentValidation::fname, createfilelist::int, mps_splice::line, groupFilesInBlocks::lines, ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, openSLHA(), MillePedeFileConverter_cfg::out, gen::pydat1_, MatrixUtil::remove(), submitPVValidationJobs::split(), mathSSE::sqrt(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, HcalDetIdTransform::transform(), pileupReCalc_HLTpaths::trunc, and relativeConstraints::value.
Referenced by gen::Pythia6Hadronizer::initializeForExternalPartons().
void Pythia6Service::setSLHAParams | ( | ) |
Definition at line 239 of file Pythia6Service.cc.
References mps_fire::end, DeadROC_duringRun::f1, FrontierConditions_GlobalTag_cff::file, fParamSLHA, openSLHA(), 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 51 of file Pythia6Service.h.
|
private |
Definition at line 56 of file Pythia6Service.h.
Referenced by Pythia6Service(), setCSAParams(), and ~Pythia6Service().
|
private |
Definition at line 55 of file Pythia6Service.h.
Referenced by Pythia6Service(), setGeneralParams(), and ~Pythia6Service().
|
private |
Definition at line 58 of file Pythia6Service.h.
Referenced by Pythia6Service(), setPYUPDAParams(), and ~Pythia6Service().
|
private |
Definition at line 57 of file Pythia6Service.h.
Referenced by Pythia6Service(), setSLHAParams(), and ~Pythia6Service().
|
staticprivate |
Definition at line 62 of file Pythia6Service.h.
Referenced by enter(), Pythia6Service(), and ~Pythia6Service().
|
private |
Definition at line 53 of file Pythia6Service.h.
Referenced by randomEngine(), and setRandomEngine().
|
private |
Definition at line 60 of file Pythia6Service.h.
Referenced by closePYUPDA(), and openPYUPDA().
|
private |
Definition at line 59 of file Pythia6Service.h.
Referenced by closeSLHA(), and openSLHA().