#include <Py8InterfaceBase.h>
Public Member Functions | |
virtual const char * | classname () const =0 |
bool | decay () |
bool | declareSpecialSettings (const std::vector< std::string > &) |
bool | declareStableParticles (const std::vector< int > &) |
virtual void | finalizeEvent ()=0 |
virtual bool | generatePartonsAndHadronize ()=0 |
virtual bool | initializeForInternalPartons ()=0 |
void | makeTmpSLHA (const std::string &) |
void | p8SetRandomEngine (CLHEP::HepRandomEngine *v) |
Py8InterfaceBase (edm::ParameterSet const &ps) | |
P8RndmEngine & | randomEngine () |
bool | readSettings (int) |
virtual void | statistics () |
~Py8InterfaceBase () override | |
Public Member Functions inherited from gen::BaseHadronizer | |
BaseHadronizer (edm::ParameterSet const &ps) | |
void | cleanLHE () |
void | generateLHE (edm::LuminosityBlock const &lumi, CLHEP::HepRandomEngine *rengine, unsigned int ncpu) |
edm::Event & | getEDMEvent () const |
HepMC::GenEvent * | getGenEvent () |
GenEventInfoProduct * | getGenEventInfo () |
virtual GenLumiInfoHeader * | getGenLumiInfoHeader () const |
GenRunInfoProduct & | getGenRunInfo () |
const boost::shared_ptr< lhef::LHERunInfo > & | getLHERunInfo () const |
const std::string & | gridpackPath () const |
int | randomIndex () const |
const std::string & | randomInitConfigDescription () const |
void | randomizeIndex (edm::LuminosityBlock const &lumi, CLHEP::HepRandomEngine *rengine) |
void | resetEvent (HepMC::GenEvent *event) |
void | resetEventInfo (GenEventInfoProduct *eventInfo) |
virtual bool | select (HepMC::GenEvent *) const |
void | setEDMEvent (edm::Event &event) |
void | setLHEEvent (lhef::LHEEvent *event) |
void | setLHERunInfo (lhef::LHERunInfo *runInfo) |
void | setRandomEngine (CLHEP::HepRandomEngine *v) |
std::vector< std::string > const & | sharedResources () const |
virtual | ~BaseHadronizer ()(false) |
Protected Attributes | |
HepMC::IO_AsciiParticles * | ascii_io |
std::auto_ptr< EvtGenDecays > | evtgenDecays |
std::string | evtgenDecFile |
std::string | evtgenPdlFile |
std::vector< std::string > | evtgenUserFiles |
std::auto_ptr< Pythia8::Pythia > | fDecayer |
std::auto_ptr< Pythia8::Pythia > | fMasterGen |
edm::ParameterSet | fParameters |
unsigned int | maxEventsToPrint |
bool | pythiaHepMCVerbosity |
bool | pythiaHepMCVerbosityParticles |
unsigned int | pythiaPylistVerbosity |
std::string | slhafile_ |
HepMC::Pythia8ToHepMC | toHepMC |
bool | useEvtGen |
Protected Attributes inherited from gen::BaseHadronizer | |
std::string | lheFile_ |
int | randomIndex_ |
Private Attributes | |
P8RndmEngine | p8RndmEngine_ |
Additional Inherited Members | |
Protected Member Functions inherited from gen::BaseHadronizer | |
std::auto_ptr< HepMC::GenEvent > & | event () |
std::auto_ptr< GenEventInfoProduct > & | eventInfo () |
lhef::LHEEvent * | lheEvent () |
lhef::LHERunInfo * | lheRunInfo () |
GenRunInfoProduct & | runInfo () |
Definition at line 25 of file Py8InterfaceBase.h.
gen::Py8InterfaceBase::Py8InterfaceBase | ( | edm::ParameterSet const & | ps | ) |
Definition at line 21 of file Py8InterfaceBase.cc.
References ascii_io, evtgenDecFile, evtgenPdlFile, evtgenUserFiles, edm::ParameterSet::exists(), cmsRelvalreport::exit, fParameters, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, maxEventsToPrint, MillePedeFileConverter_cfg::out, pythiaHepMCVerbosity, pythiaHepMCVerbosityParticles, pythiaPylistVerbosity, AlCaHLTBitMon_QueryRunRegistry::string, and useEvtGen.
|
inlineoverride |
Definition at line 30 of file Py8InterfaceBase.h.
|
pure virtual |
Implemented in Pythia8Hadronizer, gen::Py8EGun, gen::Py8JetGun, and gen::Py8PtGun.
|
inline |
Definition at line 33 of file Py8InterfaceBase.h.
References data-class-funcs::classname, myMessageLogger_cff::statistics, and AlCaHLTBitMon_QueryRunRegistry::string.
bool gen::Py8InterfaceBase::declareSpecialSettings | ( | const std::vector< std::string > & | settings | ) |
Definition at line 231 of file Py8InterfaceBase.cc.
References fDecayer, spr::find(), fMasterGen, and AlCaHLTBitMon_QueryRunRegistry::string.
bool gen::Py8InterfaceBase::declareStableParticles | ( | const std::vector< int > & | pdgIds | ) |
Definition at line 198 of file Py8InterfaceBase.cc.
References fMasterGen, and mps_fire::i.
|
pure virtual |
Implemented in Pythia8Hadronizer, and gen::Py8GunBase.
|
pure virtual |
Implemented in Pythia8Hadronizer, gen::Py8EGun, gen::Py8JetGun, and gen::Py8PtGun.
|
pure virtual |
Implemented in Pythia8Hadronizer, and gen::Py8GunBase.
void gen::Py8InterfaceBase::makeTmpSLHA | ( | const std::string & | slhatable | ) |
Definition at line 186 of file Py8InterfaceBase.cc.
References fMasterGen, slhafile_, and TriggerAnalyzer::write().
Referenced by readSettings().
|
inline |
Definition at line 43 of file Py8InterfaceBase.h.
|
inline |
Definition at line 44 of file Py8InterfaceBase.h.
Referenced by gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), and gen::Py8JetGun::generatePartonsAndHadronize().
bool gen::Py8InterfaceBase::readSettings | ( | int | ) |
Definition at line 84 of file Py8InterfaceBase.cc.
References gen::ParameterCollector::begin(), beamerCreator::create(), gen::ParameterCollector::end(), edm::ParameterSet::exists(), connectstrParser::f1, fDecayer, fMasterGen, fParameters, reco::get(), edm::ParameterSet::getParameter(), geometryCSVtoXML::line, makeTmpSLHA(), p8RndmEngine_, gen::BaseHadronizer::randomIndex(), matplotRender::reader, slhafile_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Reimplemented in Pythia8Hadronizer, and gen::Py8GunBase.
Definition at line 248 of file Py8InterfaceBase.cc.
References fMasterGen.
|
protected |
Definition at line 58 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
protected |
Definition at line 63 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::evtGenDecay(), Pythia8Hadronizer::generatePartonsAndHadronize(), Pythia8Hadronizer::hadronize(), Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), and Pythia8Hadronizer::initializeForInternalPartons().
|
protected |
Definition at line 64 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().
|
protected |
Definition at line 65 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().
|
protected |
Definition at line 66 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().
|
protected |
Definition at line 49 of file Py8InterfaceBase.h.
Referenced by declareSpecialSettings(), Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), readSettings(), gen::Py8GunBase::residualDecay(), and Pythia8Hadronizer::residualDecay().
|
protected |
Definition at line 48 of file Py8InterfaceBase.h.
Referenced by declareSpecialSettings(), declareStableParticles(), gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), Pythia8Hadronizer::generatePartonsAndHadronize(), Pythia8Hadronizer::getGenLumiInfoHeader(), Pythia8Hadronizer::hadronize(), Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), makeTmpSLHA(), Pythia8Hadronizer::Pythia8Hadronizer(), readSettings(), gen::Py8GunBase::residualDecay(), Pythia8Hadronizer::residualDecay(), statistics(), gen::Py8GunBase::statistics(), and Pythia8Hadronizer::statistics().
|
protected |
Definition at line 52 of file Py8InterfaceBase.h.
Referenced by Py8InterfaceBase(), and readSettings().
|
protected |
Definition at line 57 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
private |
Definition at line 72 of file Py8InterfaceBase.h.
Referenced by readSettings().
|
protected |
Definition at line 55 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
protected |
Definition at line 56 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
protected |
Definition at line 54 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), Pythia8Hadronizer::initializeForExternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().
|
protected |
Definition at line 68 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), makeTmpSLHA(), and readSettings().
|
protected |
Definition at line 50 of file Py8InterfaceBase.h.
Referenced by gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), Pythia8Hadronizer::generatePartonsAndHadronize(), Pythia8Hadronizer::hadronize(), gen::Py8GunBase::residualDecay(), and Pythia8Hadronizer::residualDecay().
|
protected |
Definition at line 62 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().