#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 &) | |
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 () |
Definition at line 26 of file Pythia6Service.h.
Pythia6Service::Pythia6Service | ( | ) |
Definition at line 80 of file Pythia6Service.cc.
Pythia6Service::Pythia6Service | ( | edm::ParameterSet const & | ps | ) |
Definition at line 85 of file Pythia6Service.cc.
References edm::hlt::Exception, fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, fPythia6Owner, edm::ParameterSet::getParameter(), geometryCSVtoXML::line, and groupFilesInBlocks::lines.
Pythia6Service::~Pythia6Service | ( | ) |
Definition at line 162 of file Pythia6Service.cc.
References fParamCSA, fParamGeneral, fParamPYUPDA, fParamSLHA, and fPythia6Owner.
void Pythia6Service::closePYUPDA | ( | ) |
Definition at line 283 of file Pythia6Service.cc.
References fiocls_(), and fUnitPYUPDA.
void Pythia6Service::closeSLHA | ( | ) |
Definition at line 275 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 173 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 256 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 240 of file Pythia6Service.cc.
References gen::call_pygive(), fioopn_(), and fUnitSLHA.
Referenced by setSLHAFromHeader(), and setSLHAParams().
void Pythia6Service::setCSAParams | ( | ) |
Definition at line 206 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::beginRun(), gen::Cascade2Hadronizer::initializeForInternalPartons(), gen::Cascade2Hadronizer::readSettings(), gen::PyquenHadronizer::readSettings(), and gen::Pythia6Hadronizer::readSettings().
void Pythia6Service::setGeneralParams | ( | ) |
Definition at line 190 of file Pythia6Service.cc.
References gen::call_pygive(), fParamGeneral, and reco::return().
Referenced by ParticleReplacerParticleGun::beginJob(), ParticleReplacerZtautau::beginJob(), gen::Pythia6Gun::beginRun(), GenMuonRadiationAlgorithm::compFSR(), gen::Cascade2Hadronizer::initializeForInternalPartons(), gen::Cascade2Hadronizer::readSettings(), gen::PyquenHadronizer::readSettings(), gen::HydjetHadronizer::readSettings(), gen::Pythia6Hadronizer::readSettings(), and gen::ExhumeHadronizer::readSettings().
void Pythia6Service::setPYUPDAParams | ( | bool | afterPyinit | ) |
Definition at line 333 of file Pythia6Service.cc.
References end, python.connectstrParser::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.
void Pythia6Service::setSLHAFromHeader | ( | const std::vector< std::string > & | lines | ) |
Definition at line 384 of file Pythia6Service.cc.
References createPayload::block, gather_cfg::blocks, call_pyslha(), mergeVDriftHistosByStation::file, alignmentValidation::fname, getHLTprescales::index, geometryCSVtoXML::line, NULL, openSLHA(), dbtoconf::out, gen::pydat1_, python.multivaluedict::remove(), reco::return(), split, mathSSE::sqrt(), 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 292 of file Pythia6Service.cc.
References end, python.connectstrParser::f1, mergeVDriftHistosByStation::file, fParamSLHA, edm::FileInPath::fullPath(), openSLHA(), dqm_diff::start, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by gen::Pythia6Gun::beginRun(), 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_(), 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().