Public Member Functions | |
const char * | classname () const |
bool | decay () |
bool | declareSpecialSettings (const std::vector< std::string > &) |
bool | declareStableParticles (const std::vector< int > &pdgIds) |
void | finalizeEvent () |
bool | generatePartonsAndHadronize () |
bool | hadronize () |
Herwig6Hadronizer (const edm::ParameterSet ¶ms) | |
bool | initialize (const lhef::HEPRUP *heprup) |
bool | initializeForExternalPartons () |
bool | initializeForInternalPartons () |
bool | readSettings (int) |
bool | residualDecay () |
void | setSLHAFromHeader (const std::vector< std::string > &lines) |
void | statistics () |
~Herwig6Hadronizer () 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 () noexcept(false) |
Public Member Functions inherited from gen::Herwig6Instance | |
bool | callWithTimeout (unsigned int secs, void(*fn)()) |
bool | give (const std::string &line) |
Herwig6Instance () | |
void | openParticleSpecFile (const std::string fileName) |
void | setHerwigRandomEngine (CLHEP::HepRandomEngine *v) |
~Herwig6Instance () override | |
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) |
virtual void | enter () |
FortranInstance () | |
virtual void | leave () |
virtual bool | upVeto () |
virtual | ~FortranInstance () noexcept(false) |
Private Member Functions | |
void | clear () |
void | doSetRandomEngine (CLHEP::HepRandomEngine *v) override |
std::vector< std::string > const & | doSharedResources () const override |
int | pythiaStatusCode (const HepMC::GenParticle *p) const |
void | pythiaStatusCodes () |
void | upEvnt () override |
void | upInit () override |
Private Attributes | |
double | comEnergy |
HepMC::IO_HERWIG | conv |
bool | doMatching |
bool | doMPInteraction |
bool | emulatePythiaStatusCodes |
bool | externalPartons |
bool | fConvertToPDG |
int | hepmcVerbosity |
int | herwigVerbosity |
bool | inclusiveMatching |
double | matchingScale |
int | maxEventsToPrint |
bool | needClear |
int | nMatch |
int | numTrials |
gen::ParameterCollector | parameters |
std::string | particleSpecFileName |
bool | printCards |
bool | readMCatNLOfile |
bool | readParticleSpecFile |
bool | useJimmy |
Static Private Attributes | |
static const std::vector < std::string > | theSharedResources |
Additional Inherited Members | |
Static Public Member Functions inherited from gen::FortranInstance | |
template<typename T > | |
static T * | getInstance () |
Static Public Attributes inherited from gen::FortranInstance | |
static const std::string | kFortranInstance = "FortranInstance" |
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 () |
Protected Member Functions inherited from gen::Herwig6Instance | |
virtual bool | hwwarn (const std::string &fn, int code) |
Protected Attributes inherited from gen::BaseHadronizer | |
std::string | lheFile_ |
int | randomIndex_ |
Definition at line 83 of file Herwig6Hadronizer.cc.
Herwig6Hadronizer::Herwig6Hadronizer | ( | const edm::ParameterSet & | params | ) |
Definition at line 163 of file Herwig6Hadronizer.cc.
References edm::ParameterSet::exists(), fConvertToPDG, and edm::ParameterSet::getParameter().
|
override |
|
inline |
Definition at line 110 of file Herwig6Hadronizer.cc.
|
private |
Definition at line 196 of file Herwig6Hadronizer.cc.
References gen::FortranInstance::call(), jmefin, needClear, and useJimmy.
Referenced by initialize(), readSettings(), and ~Herwig6Hadronizer().
bool Herwig6Hadronizer::decay | ( | ) |
Definition at line 824 of file Herwig6Hadronizer.cc.
bool Herwig6Hadronizer::declareSpecialSettings | ( | const std::vector< std::string > & | ) |
Definition at line 612 of file Herwig6Hadronizer.cc.
bool Herwig6Hadronizer::declareStableParticles | ( | const std::vector< int > & | pdgIds | ) |
Definition at line 584 of file Herwig6Hadronizer.cc.
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 194 of file Herwig6Hadronizer.cc.
References gen::Herwig6Instance::setHerwigRandomEngine().
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 114 of file Herwig6Hadronizer.cc.
References theSharedResources.
void Herwig6Hadronizer::finalizeEvent | ( | ) |
Definition at line 710 of file Herwig6Hadronizer.cc.
References funct::abs(), emulatePythiaStatusCodes, gen::BaseHadronizer::event(), gen::BaseHadronizer::eventInfo(), externalPartons, lhef::LHEEvent::fillEventInfo(), lhef::LHEEvent::fillPdfInfo(), lhef::LHEEvent::fixHepMCEventTimeOrdering(), GenParticle::GenParticle, hwuaem_(), hwualf_(), gen::BaseHadronizer::lheEvent(), gen::BaseHadronizer::lheRunInfo(), SiPixelPI::one, and pythiaStatusCodes().
|
inline |
bool Herwig6Hadronizer::hadronize | ( | ) |
Definition at line 629 of file Herwig6Hadronizer.cc.
References gen::Herwig6Instance::callWithTimeout(), conv, lhef::LHEEvent::count(), doMatching, doMPInteraction, relativeConstraints::error, gen::BaseHadronizer::event(), fConvertToPDG, hwwarn_(), lhef::LHERunInfo::kAccepted, lhef::LHERunInfo::kKilled, lhef::LHERunInfo::kSelected, gen::BaseHadronizer::lheEvent(), gpuVertexFinder::printf(), useJimmy, and wrapper.
Referenced by generatePartonsAndHadronize().
bool Herwig6Hadronizer::initialize | ( | const lhef::HEPRUP * | heprup | ) |
Definition at line 413 of file Herwig6Hadronizer.cc.
References gen::ParameterCollector::begin(), gen::FortranInstance::call(), clear(), comEnergy, edm::errors::Configuration, doMPInteraction, alignCSCRings::e, lhef::HEPRUP::EBMUP, gen::ParameterCollector::end(), Exception, externalPartons, lhef::LHERunInfo::findHeader(), gen::Herwig6Instance::give(), hepmcVerbosity, herwigVerbosity, hwdspn, hwprch, mps_fire::i, lhef::HEPRUP::IDBMUP, info(), jimmin, jminit, jmparm, gen::BaseHadronizer::lheRunInfo(), geometryCSVtoXML::line, maxEventsToPrint, needClear, gen::Herwig6Instance::openParticleSpecFile(), parameters, particleSpecFileName, lhef::LHERunInfo::pdfSetTranslation(), printCards, gpuVertexFinder::printf(), readParticleSpecFile, setSLHAFromHeader(), and useJimmy.
|
inline |
Definition at line 97 of file Herwig6Hadronizer.cc.
References initializeForInternalPartons().
bool Herwig6Hadronizer::initializeForInternalPartons | ( | ) |
Definition at line 397 of file Herwig6Hadronizer.cc.
References gen::FortranInstance::call(), jimmin, jminit, and useJimmy.
Referenced by initializeForExternalPartons().
|
private |
Definition at line 911 of file Herwig6Hadronizer.cc.
References externalPartons, GenParticle::GenParticle, submitPVResolutionJobs::q, and mps_update::status.
Referenced by pythiaStatusCodes().
|
private |
Definition at line 989 of file Herwig6Hadronizer.cc.
References gen::BaseHadronizer::event(), and pythiaStatusCode().
Referenced by finalizeEvent().
bool Herwig6Hadronizer::readSettings | ( | int | key | ) |
Definition at line 246 of file Herwig6Hadronizer.cc.
References gen::ParameterCollector::begin(), gen::FortranInstance::call(), clear(), comEnergy, edm::errors::Configuration, doMatching, doMPInteraction, alignCSCRings::e, lhef::HEPRUP::EBMUP, gen::ParameterCollector::end(), Exception, externalPartons, lhef::LHERunInfo::findHeader(), lhef::LHERunInfo::getHEPRUP(), gen::Herwig6Instance::give(), hepmcVerbosity, herwigVerbosity, hwdspn, hwmatchpram, hwprch, mps_fire::i, lhef::HEPRUP::IDBMUP, inclusiveMatching, info(), jmparm, gen::BaseHadronizer::lheRunInfo(), geometryCSVtoXML::line, matchingScale, maxEventsToPrint, needClear, nMatch, gen::Herwig6Instance::openParticleSpecFile(), parameters, particleSpecFileName, lhef::LHERunInfo::pdfSetTranslation(), printCards, gpuVertexFinder::printf(), readParticleSpecFile, setSLHAFromHeader(), and useJimmy.
bool Herwig6Hadronizer::residualDecay | ( | ) |
Definition at line 870 of file Herwig6Hadronizer.cc.
void Herwig6Hadronizer::setSLHAFromHeader | ( | const std::vector< std::string > & | lines | ) |
Definition at line 208 of file Herwig6Hadronizer.cc.
References createPayload::block, gather_cfg::blocks, geometryCSVtoXML::line, submitPVValidationJobs::split(), AlCaHLTBitMon_QueryRunRegistry::string, and HcalDetIdTransform::transform().
Referenced by initialize(), and readSettings().
void Herwig6Hadronizer::statistics | ( | ) |
Definition at line 614 of file Herwig6Hadronizer.cc.
References gen::BaseHadronizer::runInfo(), and GenRunInfoProduct::setInternalXSec().
|
overrideprivatevirtual |
Reimplemented from gen::FortranInstance.
Definition at line 895 of file Herwig6Hadronizer.cc.
References SplitLinear::begin, edm::errors::Configuration, lhef::CommonBlocks::fillHEPEUP(), lhef::LHEEvent::getComments(), gen::Herwig6Instance::give(), gen::BaseHadronizer::lheEvent(), readMCatNLOfile, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprivatevirtual |
Reimplemented from gen::FortranInstance.
Definition at line 872 of file Herwig6Hadronizer.cc.
References edm::errors::Configuration, lhef::CommonBlocks::fillHEPRUP(), lhef::LHERunInfo::getHeaders(), gen::Herwig6Instance::give(), getRunAppsInfo::headers, heprup_, gen::BaseHadronizer::lheRunInfo(), HEPRUP_::pdfgup, HEPRUP_::pdfsup, readMCatNLOfile, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 136 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 126 of file Herwig6Hadronizer.cc.
Referenced by hadronize().
|
private |
Definition at line 141 of file Herwig6Hadronizer.cc.
Referenced by hadronize(), and readSettings().
|
private |
Definition at line 138 of file Herwig6Hadronizer.cc.
Referenced by hadronize(), initialize(), and readSettings().
|
private |
Definition at line 135 of file Herwig6Hadronizer.cc.
Referenced by finalizeEvent().
|
private |
Definition at line 128 of file Herwig6Hadronizer.cc.
Referenced by finalizeEvent(), initialize(), pythiaStatusCode(), and readSettings().
|
private |
Definition at line 140 of file Herwig6Hadronizer.cc.
Referenced by hadronize(), and Herwig6Hadronizer().
|
private |
Definition at line 132 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 131 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 142 of file Herwig6Hadronizer.cc.
Referenced by readSettings().
|
private |
Definition at line 144 of file Herwig6Hadronizer.cc.
Referenced by readSettings().
|
private |
Definition at line 133 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 127 of file Herwig6Hadronizer.cc.
Referenced by clear(), initialize(), and readSettings().
|
private |
Definition at line 143 of file Herwig6Hadronizer.cc.
Referenced by readSettings().
|
private |
Definition at line 139 of file Herwig6Hadronizer.cc.
|
private |
Definition at line 130 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 149 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 134 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 146 of file Herwig6Hadronizer.cc.
|
private |
Definition at line 150 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
staticprivate |
Definition at line 124 of file Herwig6Hadronizer.cc.
Referenced by doSharedResources().
|
private |
Definition at line 137 of file Herwig6Hadronizer.cc.
Referenced by clear(), hadronize(), initialize(), initializeForInternalPartons(), and readSettings().