#include <BaseHadronizer.h>
Public Member Functions | |
BaseHadronizer (edm::ParameterSet const &ps) | |
void | cleanLHE () |
void | generateLHE (edm::LuminosityBlock const &lumi, CLHEP::HepRandomEngine *rengine) |
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 |
~BaseHadronizer () | |
Protected Member Functions | |
std::auto_ptr< HepMC::GenEvent > & | event () |
std::auto_ptr < GenEventInfoProduct > & | eventInfo () |
lhef::LHEEvent * | lheEvent () |
lhef::LHERunInfo * | lheRunInfo () |
GenRunInfoProduct & | runInfo () |
Protected Attributes | |
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::auto_ptr< HepMC::GenEvent > | genEvent_ |
std::auto_ptr < GenEventInfoProduct > | genEventInfo_ |
GenRunInfoProduct | genRunInfo_ |
std::vector< std::string > | gridpackPaths_ |
std::auto_ptr< lhef::LHEEvent > | lheEvent_ |
boost::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 47 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.
|
inline |
Definition at line 50 of file BaseHadronizer.h.
void gen::BaseHadronizer::cleanLHE | ( | ) |
|
inlineprivatevirtual |
Reimplemented in gen::ReggeGribovPartonMCHadronizer, Herwig6Hadronizer, gen::Hydjet2Hadronizer, Pythia8Hadronizer, gen::Pythia6Hadronizer, gen::ExhumeHadronizer, gen::HydjetHadronizer, SherpaHadronizer, gen::AMPTHadronizer, gen::Cascade2Hadronizer, gen::PyquenHadronizer, ThePEGHadronizer, gen::HijingHadronizer, and gen::PomwigHadronizer.
Definition at line 96 of file BaseHadronizer.h.
Referenced by setRandomEngine().
|
inlineprivatevirtual |
Reimplemented in Herwig6Hadronizer, gen::Hydjet2Hadronizer, Pythia8Hadronizer, gen::Pythia6Hadronizer, gen::ExhumeHadronizer, gen::HydjetHadronizer, gen::Cascade2Hadronizer, gen::PyquenHadronizer, gen::HijingHadronizer, and gen::PomwigHadronizer.
Definition at line 98 of file BaseHadronizer.h.
References theSharedResources.
Referenced by sharedResources().
|
inlineprotected |
Definition at line 86 of file BaseHadronizer.h.
References genEvent_.
Referenced by gen::Py8GunBase::finalizeEvent(), gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), gen::Py8GunBase::residualDecay(), and setEDMEvent().
|
inlineprotected |
Definition at line 87 of file BaseHadronizer.h.
References genEventInfo_.
void gen::BaseHadronizer::generateLHE | ( | edm::LuminosityBlock const & | lumi, |
CLHEP::HepRandomEngine * | rengine | ||
) |
Definition at line 78 of file BaseHadronizer.cc.
References createfilelist::args, constexpr, relativeConstraints::empty, Exception, edm::FileInPath::fullPath(), edm::pset::Registry::getMapped(), gridpackPath(), edm::LuminosityBlockBase::id(), edm::pset::Registry::instance(), lheFile_, edm::LuminosityBlockID::luminosityBlock(), cmsHarvester::nevents, NULL, EcalCondDB::outfilename, sysUtil::pid, edm::LuminosityBlock::processHistory(), edm::ProcessHistory::rbegin(), edm::LuminosityBlockID::run(), and mps_update::status.
|
inline |
|
inline |
Definition at line 54 of file BaseHadronizer.h.
References genEvent_.
|
inline |
Definition at line 55 of file BaseHadronizer.h.
References genEventInfo_.
|
virtual |
Reimplemented in Pythia8Hadronizer.
Definition at line 47 of file BaseHadronizer.cc.
References randomIndex_, randomInitConfigDescription(), GenLumiInfoHeader::setConfigDescription(), and GenLumiInfoHeader::setRandomConfigIndex().
|
inline |
|
inline |
Definition at line 62 of file BaseHadronizer.h.
References lheRunInfo_.
|
inline |
Definition at line 78 of file BaseHadronizer.h.
References gridpackPaths_, bookConverter::max, and randomIndex_.
Referenced by generateLHE().
|
inlineprotected |
Definition at line 89 of file BaseHadronizer.h.
References lheEvent_.
|
inlineprotected |
Definition at line 90 of file BaseHadronizer.h.
References lheRunInfo_.
|
inline |
|
inline |
Definition at line 77 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 61 of file BaseHadronizer.cc.
References edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), randomIndex_, randomInitWeights_, and edm::LuminosityBlockID::run().
|
inline |
Definition at line 58 of file BaseHadronizer.h.
References genEvent_.
|
inline |
Definition at line 59 of file BaseHadronizer.h.
References genEventInfo_.
|
inlineprotected |
Definition at line 85 of file BaseHadronizer.h.
References genRunInfo_.
Referenced by BaseHadronizer(), and gen::Py8GunBase::statistics().
|
inlinevirtual |
Reimplemented in gen::PyquenHadronizer.
Definition at line 70 of file BaseHadronizer.h.
|
inline |
|
inline |
Definition at line 65 of file BaseHadronizer.h.
References lheEvent_.
|
inline |
Definition at line 64 of file BaseHadronizer.h.
References lheRunInfo_.
|
inline |
Definition at line 72 of file BaseHadronizer.h.
References doSetRandomEngine().
|
inline |
Definition at line 74 of file BaseHadronizer.h.
References doSharedResources().
|
private |
Definition at line 107 of file BaseHadronizer.h.
Referenced by getEDMEvent(), and setEDMEvent().
|
private |
Definition at line 101 of file BaseHadronizer.h.
Referenced by event(), getGenEvent(), and resetEvent().
|
private |
Definition at line 102 of file BaseHadronizer.h.
Referenced by eventInfo(), getGenEventInfo(), and resetEventInfo().
|
private |
Definition at line 100 of file BaseHadronizer.h.
Referenced by getGenRunInfo(), and runInfo().
|
private |
Definition at line 113 of file BaseHadronizer.h.
Referenced by BaseHadronizer(), and gridpackPath().
|
private |
Definition at line 105 of file BaseHadronizer.h.
Referenced by lheEvent(), and setLHEEvent().
|
protected |
Definition at line 92 of file BaseHadronizer.h.
Referenced by cleanLHE(), and generateLHE().
|
private |
Definition at line 104 of file BaseHadronizer.h.
Referenced by getLHERunInfo(), lheRunInfo(), and setLHERunInfo().
|
protected |
Definition at line 91 of file BaseHadronizer.h.
Referenced by getGenLumiInfoHeader(), gridpackPath(), randomIndex(), randomInitConfigDescription(), and randomizeIndex().
|
private |
Definition at line 112 of file BaseHadronizer.h.
Referenced by BaseHadronizer(), and randomInitConfigDescription().
|
private |
Definition at line 111 of file BaseHadronizer.h.
Referenced by BaseHadronizer(), and randomizeIndex().
|
staticprivate |
Definition at line 109 of file BaseHadronizer.h.
Referenced by doSharedResources().