#include <BaseHadronizer.h>
Public Member Functions | |
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< HepMC3::GenEvent > | getGenEvent3 () |
std::unique_ptr< GenEventInfoProduct > | getGenEventInfo () |
std::unique_ptr< GenEventInfoProduct3 > | getGenEventInfo3 () |
virtual std::unique_ptr< GenLumiInfoHeader > | getGenLumiInfoHeader () const |
GenRunInfoProduct & | getGenRunInfo () |
std::unique_ptr< lhef::LHEEvent > | getLHEEvent () |
const std::shared_ptr< lhef::LHERunInfo > & | getLHERunInfo () const |
unsigned int | getVHepMC () |
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 | resetEvent3 (std::unique_ptr< HepMC3::GenEvent > event3) |
void | resetEventInfo (std::unique_ptr< GenEventInfoProduct > eventInfo) |
void | resetEventInfo3 (std::unique_ptr< GenEventInfoProduct3 > 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 () noexcept(false) |
Protected Member Functions | |
std::unique_ptr< HepMC::GenEvent > & | event () |
std::unique_ptr< HepMC3::GenEvent > & | event3 () |
std::unique_ptr< GenEventInfoProduct > & | eventInfo () |
std::unique_ptr< GenEventInfoProduct3 > & | eventInfo3 () |
lhef::LHEEvent * | lheEvent () |
lhef::LHERunInfo * | lheRunInfo () |
GenRunInfoProduct & | runInfo () |
Protected Attributes | |
unsigned int | ivhepmc = 2 |
std::string | lheFile_ |
int | randomIndex_ |
Private Member Functions | |
virtual void | doSetRandomEngine (CLHEP::HepRandomEngine *v) |
virtual std::vector< std::string > const & | doSharedResources () const |
Private Attributes | |
edm::Event * | edmEvent_ |
std::unique_ptr< HepMC3::GenEvent > | genEvent3_ |
std::unique_ptr< HepMC::GenEvent > | genEvent_ |
std::unique_ptr< GenEventInfoProduct3 > | genEventInfo3_ |
std::unique_ptr< GenEventInfoProduct > | genEventInfo_ |
GenRunInfoProduct | genRunInfo_ |
std::vector< std::string > | gridpackPaths_ |
std::unique_ptr< lhef::LHEEvent > | lheEvent_ |
std::shared_ptr< lhef::LHERunInfo > | lheRunInfo_ |
std::vector< std::string > | randomInitConfigDescriptions_ |
std::vector< double > | randomInitWeights_ |
Static Private Attributes | |
static const std::vector< std::string > | theSharedResources |
Definition at line 48 of file BaseHadronizer.h.
gen::BaseHadronizer::BaseHadronizer | ( | edm::ParameterSet const & | ps | ) |
Definition at line 12 of file BaseHadronizer.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), gridpackPaths_, randomInitConfigDescriptions_, randomInitWeights_, runInfo(), GenRunInfoProduct::setExternalXSecLO(), GenRunInfoProduct::setExternalXSecNLO(), GenRunInfoProduct::setFilterEfficiency(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlinevirtualnoexcept |
Definition at line 51 of file BaseHadronizer.h.
void gen::BaseHadronizer::cleanLHE | ( | ) |
|
inlineprivatevirtual |
Reimplemented in gen::ReggeGribovPartonMCHadronizer, Pythia8Hadronizer, Pythia8HepMC3Hadronizer, gen::Pythia6Hadronizer, gen::Hydjet2Hadronizer, Herwig7Hadronizer, gen::HydjetHadronizer, gen::ExhumeHadronizer, SherpaHadronizer, gen::PyquenHadronizer, gen::AMPTHadronizer, and gen::HijingHadronizer.
Definition at line 106 of file BaseHadronizer.h.
Referenced by setRandomEngine().
|
inlineprivatevirtual |
Reimplemented in Pythia8Hadronizer, Pythia8HepMC3Hadronizer, gen::Hydjet2Hadronizer, gen::Pythia6Hadronizer, gen::HydjetHadronizer, gen::ExhumeHadronizer, gen::PyquenHadronizer, gen::HijingHadronizer, and gen::CepGenEventGenerator.
Definition at line 108 of file BaseHadronizer.h.
References theSharedResources.
Referenced by sharedResources().
|
inlineprotected |
Definition at line 94 of file BaseHadronizer.h.
References genEvent_.
Referenced by gen::Py8GunBase::finalizeEvent(), gen::ExhumeHadronizer::finalizeEvent(), Herwig7Hadronizer::finalizeEvent(), SherpaHadronizer::finalizeEvent(), gen::Pythia6Hadronizer::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), gen::Py8PtAndDxyGun::generatePartonsAndHadronize(), gen::Py8PtExpGun::generatePartonsAndHadronize(), gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8PtotGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), gen::Py8MassGun::generatePartonsAndHadronize(), gen::Py8PtAndLxyGun::generatePartonsAndHadronize(), gen::CepGenEventGenerator::generatePartonsAndHadronize(), gen::HijingHadronizer::generatePartonsAndHadronize(), gen::AMPTHadronizer::generatePartonsAndHadronize(), gen::PyquenHadronizer::generatePartonsAndHadronize(), gen::ExhumeHadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::generatePartonsAndHadronize(), gen::HydjetHadronizer::generatePartonsAndHadronize(), Herwig7Hadronizer::generatePartonsAndHadronize(), gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), Pythia8HepMC3Hadronizer::generatePartonsAndHadronize(), Pythia8Hadronizer::generatePartonsAndHadronize(), gen::ReggeGribovPartonMCHadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::hadronize(), Herwig7Hadronizer::hadronize(), Pythia8HepMC3Hadronizer::hadronize(), Pythia8Hadronizer::hadronize(), gen::Pythia6Hadronizer::imposeProperTime(), gen::Py8GunBase::residualDecay(), gen::Pythia6Hadronizer::residualDecay(), Pythia8HepMC3Hadronizer::residualDecay(), Pythia8Hadronizer::residualDecay(), and setEDMEvent().
|
inlineprotected |
Definition at line 97 of file BaseHadronizer.h.
References genEvent3_.
Referenced by Pythia8HepMC3Hadronizer::finalizeEvent(), Pythia8HepMC3Hadronizer::generatePartonsAndHadronize(), Pythia8HepMC3Hadronizer::hadronize(), resetEvent3(), and Pythia8HepMC3Hadronizer::residualDecay().
|
inlineprotected |
Definition at line 95 of file BaseHadronizer.h.
References genEventInfo_.
Referenced by Herwig7Hadronizer::finalizeEvent(), gen::Pythia6Hadronizer::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), resetEventInfo(), and resetEventInfo3().
|
inlineprotected |
Definition at line 98 of file BaseHadronizer.h.
References genEventInfo3_.
Referenced by Pythia8HepMC3Hadronizer::finalizeEvent().
void gen::BaseHadronizer::generateLHE | ( | edm::LuminosityBlock const & | lumi, |
CLHEP::HepRandomEngine * | rengine, | ||
unsigned int | ncpu | ||
) |
Definition at line 69 of file BaseHadronizer.cc.
References writedatasetfile::args, relativeConstraints::empty, Exception, edm::pset::Registry::getMapped(), gridpackPath(), edm::pset::Registry::instance(), lheFile_, createIOVlist::nevents, SiStripCommissioningSource_FromRAW_cfg::outfilename, submitPVResolutionJobs::script, DetachedQuadStep_cff::seeds, mps_update::status, and cond::impl::to_string().
|
inline |
Definition at line 75 of file BaseHadronizer.h.
References edmEvent_.
Referenced by gen::PyquenHadronizer::generatePartonsAndHadronize(), gen::HydjetHadronizer::generatePartonsAndHadronize(), and gen::Hydjet2Hadronizer::generatePartonsAndHadronize().
|
inline |
Definition at line 55 of file BaseHadronizer.h.
References genEvent_, and eostools::move().
|
inline |
Definition at line 56 of file BaseHadronizer.h.
References genEvent3_, and eostools::move().
|
inline |
Definition at line 57 of file BaseHadronizer.h.
References genEventInfo_, and eostools::move().
|
inline |
Definition at line 58 of file BaseHadronizer.h.
References genEventInfo3_, and eostools::move().
|
virtual |
Reimplemented in Pythia8Hadronizer, Pythia8HepMC3Hadronizer, Herwig7Hadronizer, and SherpaHadronizer.
Definition at line 40 of file BaseHadronizer.cc.
References genWeightsTable_cfi::genLumiInfoHeader, randomIndex_, and randomInitConfigDescription().
|
inline |
|
inline |
Definition at line 60 of file BaseHadronizer.h.
References lheEvent_, and eostools::move().
|
inline |
Definition at line 68 of file BaseHadronizer.h.
References lheRunInfo_.
|
inline |
|
inline |
Definition at line 84 of file BaseHadronizer.h.
References gridpackPaths_, SiStripPI::max, and randomIndex_.
Referenced by generateLHE().
|
inlineprotected |
Definition at line 100 of file BaseHadronizer.h.
References lheEvent_.
Referenced by gen::Pythia6Hadronizer::finalizeEvent(), Pythia8HepMC3Hadronizer::finalizeEvent(), Pythia8Hadronizer::finalizeEvent(), Pythia8HepMC3Hadronizer::generatePartonsAndHadronize(), Pythia8Hadronizer::generatePartonsAndHadronize(), gen::Pythia6Hadronizer::hadronize(), Herwig7Hadronizer::hadronize(), Pythia8HepMC3Hadronizer::hadronize(), and Pythia8Hadronizer::hadronize().
|
inlineprotected |
Definition at line 101 of file BaseHadronizer.h.
References lheRunInfo_.
Referenced by gen::Pythia6Hadronizer::finalizeEvent(), gen::Pythia6Hadronizer::initializeForExternalPartons(), Pythia8HepMC3Hadronizer::initializeForExternalPartons(), and Pythia8Hadronizer::initializeForExternalPartons().
|
inline |
Definition at line 82 of file BaseHadronizer.h.
References randomIndex_.
Referenced by gen::Py8HMC3InterfaceBase::readSettings(), and gen::Py8InterfaceBase::readSettings().
|
inline |
Definition at line 83 of file BaseHadronizer.h.
References randomIndex_, and randomInitConfigDescriptions_.
Referenced by getGenLumiInfoHeader().
void gen::BaseHadronizer::randomizeIndex | ( | edm::LuminosityBlock const & | lumi, |
CLHEP::HepRandomEngine * | rengine | ||
) |
Definition at line 52 of file BaseHadronizer.cc.
References randomIndex_, randomInitWeights_, and DetachedQuadStep_cff::seeds.
|
inline |
Definition at line 62 of file BaseHadronizer.h.
References genEvent_, and eostools::move().
Referenced by SherpaHadronizer::generatePartonsAndHadronize().
|
inline |
Definition at line 63 of file BaseHadronizer.h.
References event3(), genEvent3_, and eostools::move().
|
inline |
Definition at line 64 of file BaseHadronizer.h.
References eventInfo(), genEventInfo_, and eostools::move().
|
inline |
Definition at line 65 of file BaseHadronizer.h.
References eventInfo(), genEventInfo3_, and eostools::move().
|
inlineprotected |
Definition at line 93 of file BaseHadronizer.h.
References genRunInfo_.
Referenced by BaseHadronizer(), gen::CepGenEventGenerator::initializeForInternalPartons(), setLHERunInfo(), Herwig7Hadronizer::statistics(), gen::Py8GunBase::statistics(), SherpaHadronizer::statistics(), gen::ExhumeHadronizer::statistics(), gen::Pythia6Hadronizer::statistics(), Pythia8HepMC3Hadronizer::statistics(), and Pythia8Hadronizer::statistics().
|
inlinevirtual |
Reimplemented in gen::PyquenHadronizer.
Definition at line 76 of file BaseHadronizer.h.
|
inline |
Definition at line 74 of file BaseHadronizer.h.
References edmEvent_, and event().
|
inline |
Definition at line 71 of file BaseHadronizer.h.
References lheEvent_, and eostools::move().
|
inline |
Definition at line 70 of file BaseHadronizer.h.
References lheRunInfo_, eostools::move(), and runInfo().
|
inline |
Definition at line 78 of file BaseHadronizer.h.
References doSetRandomEngine(), and gen::v.
|
inline |
Definition at line 80 of file BaseHadronizer.h.
References doSharedResources().
|
private |
Definition at line 119 of file BaseHadronizer.h.
Referenced by getEDMEvent(), and setEDMEvent().
|
private |
Definition at line 112 of file BaseHadronizer.h.
Referenced by event3(), getGenEvent3(), and resetEvent3().
|
private |
Definition at line 111 of file BaseHadronizer.h.
Referenced by event(), getGenEvent(), and resetEvent().
|
private |
Definition at line 114 of file BaseHadronizer.h.
Referenced by eventInfo3(), getGenEventInfo3(), and resetEventInfo3().
|
private |
Definition at line 113 of file BaseHadronizer.h.
Referenced by eventInfo(), getGenEventInfo(), and resetEventInfo().
|
private |
Definition at line 110 of file BaseHadronizer.h.
Referenced by getGenRunInfo(), and runInfo().
|
private |
Definition at line 125 of file BaseHadronizer.h.
Referenced by BaseHadronizer(), and gridpackPath().
|
protected |
Definition at line 92 of file BaseHadronizer.h.
Referenced by getVHepMC(), Pythia8Hadronizer::Pythia8Hadronizer(), and Pythia8HepMC3Hadronizer::Pythia8HepMC3Hadronizer().
|
private |
Definition at line 117 of file BaseHadronizer.h.
Referenced by getLHEEvent(), lheEvent(), and setLHEEvent().
|
protected |
Definition at line 103 of file BaseHadronizer.h.
Referenced by cleanLHE(), generateLHE(), Pythia8HepMC3Hadronizer::initializeForInternalPartons(), and Pythia8Hadronizer::initializeForInternalPartons().
|
private |
Definition at line 116 of file BaseHadronizer.h.
Referenced by getLHERunInfo(), lheRunInfo(), and setLHERunInfo().
|
protected |
Definition at line 102 of file BaseHadronizer.h.
Referenced by getGenLumiInfoHeader(), gridpackPath(), randomIndex(), randomInitConfigDescription(), and randomizeIndex().
|
private |
Definition at line 124 of file BaseHadronizer.h.
Referenced by BaseHadronizer(), and randomInitConfigDescription().
|
private |
Definition at line 123 of file BaseHadronizer.h.
Referenced by BaseHadronizer(), and randomizeIndex().
|
staticprivate |
Definition at line 121 of file BaseHadronizer.h.
Referenced by doSharedResources().