#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 | 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 |
std::unique_ptr< HepMC::GenEvent > | getGenEvent () |
std::unique_ptr< GenEventInfoProduct > | getGenEventInfo () |
virtual std::unique_ptr< GenLumiInfoHeader > | getGenLumiInfoHeader () const |
GenRunInfoProduct & | getGenRunInfo () |
std::unique_ptr< lhef::LHEEvent > | getLHEEvent () |
const std::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 (std::unique_ptr< HepMC::GenEvent > event) |
void | resetEventInfo (std::unique_ptr< GenEventInfoProduct > eventInfo) |
virtual bool | select (HepMC::GenEvent *) const |
void | setEDMEvent (edm::Event &event) |
void | setLHEEvent (std::unique_ptr< lhef::LHEEvent > event) |
void | setLHERunInfo (std::unique_ptr< 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::shared_ptr< EvtGenDecays > | evtgenDecays |
std::string | evtgenDecFile |
std::string | evtgenPdlFile |
std::vector< std::string > | evtgenUserFiles |
std::unique_ptr< Pythia8::Pythia > | fDecayer |
std::unique_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::unique_ptr< HepMC::GenEvent > & | event () |
std::unique_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 17 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, and myMessageLogger_cff::statistics.
bool gen::Py8InterfaceBase::declareSpecialSettings | ( | const std::vector< std::string > & | settings | ) |
Definition at line 207 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 180 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.
|
inline |
Definition at line 42 of file Py8InterfaceBase.h.
|
inline |
Definition at line 43 of file Py8InterfaceBase.h.
Referenced by gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), and gen::Py8JetGun::generatePartonsAndHadronize().
bool gen::Py8InterfaceBase::readSettings | ( | int | ) |
Definition at line 78 of file Py8InterfaceBase.cc.
References gen::ParameterCollector::begin(), gen::ParameterCollector::end(), edm::ParameterSet::exists(), connectstrParser::f1, fDecayer, fMasterGen, fParameters, edm::ParameterSet::getParameter(), mps_splice::line, p8RndmEngine_, gen::BaseHadronizer::randomIndex(), slhafile_, AlCaHLTBitMon_QueryRunRegistry::string, and TriggerAnalyzer::write().
|
virtual |
Reimplemented in Pythia8Hadronizer, and gen::Py8GunBase.
Definition at line 222 of file Py8InterfaceBase.cc.
References fMasterGen.
|
protected |
Definition at line 57 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
protected |
Definition at line 62 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 63 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().
|
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 48 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 47 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(), Pythia8Hadronizer::Pythia8Hadronizer(), readSettings(), gen::Py8GunBase::residualDecay(), Pythia8Hadronizer::residualDecay(), statistics(), gen::Py8GunBase::statistics(), and Pythia8Hadronizer::statistics().
|
protected |
Definition at line 51 of file Py8InterfaceBase.h.
Referenced by Py8InterfaceBase(), and readSettings().
|
protected |
Definition at line 56 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
private |
Definition at line 71 of file Py8InterfaceBase.h.
Referenced by readSettings().
|
protected |
Definition at line 54 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
protected |
Definition at line 55 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), and Py8InterfaceBase().
|
protected |
Definition at line 53 of file Py8InterfaceBase.h.
Referenced by gen::Py8GunBase::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), Pythia8Hadronizer::initializeForExternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().
|
protected |
Definition at line 67 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and readSettings().
|
protected |
Definition at line 49 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 61 of file Py8InterfaceBase.h.
Referenced by Pythia8Hadronizer::initializeForExternalPartons(), gen::Py8GunBase::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), and Py8InterfaceBase().