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 ()(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 85 of file Herwig6Hadronizer.cc.
Herwig6Hadronizer::Herwig6Hadronizer | ( | const edm::ParameterSet & | params | ) |
Definition at line 169 of file Herwig6Hadronizer.cc.
References edm::ParameterSet::exists(), fConvertToPDG, and edm::ParameterSet::getParameter().
|
override |
Definition at line 199 of file Herwig6Hadronizer.cc.
References clear().
|
inline |
Definition at line 114 of file Herwig6Hadronizer.cc.
References findQualityFiles::v.
|
private |
Definition at line 209 of file Herwig6Hadronizer.cc.
References gen::FortranInstance::call(), jmefin, needClear, and useJimmy.
Referenced by initialize(), readSettings(), and ~Herwig6Hadronizer().
bool Herwig6Hadronizer::decay | ( | ) |
Definition at line 871 of file Herwig6Hadronizer.cc.
bool Herwig6Hadronizer::declareSpecialSettings | ( | const std::vector< std::string > & | ) |
Definition at line 664 of file Herwig6Hadronizer.cc.
bool Herwig6Hadronizer::declareStableParticles | ( | const std::vector< int > & | pdgIds | ) |
Definition at line 634 of file Herwig6Hadronizer.cc.
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 204 of file Herwig6Hadronizer.cc.
References gen::Herwig6Instance::setHerwigRandomEngine().
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 119 of file Herwig6Hadronizer.cc.
References hitfit::clear(), GenParticle::GenParticle, and AlCaHLTBitMon_ParallelJobs::p.
void Herwig6Hadronizer::finalizeEvent | ( | ) |
Definition at line 765 of file Herwig6Hadronizer.cc.
References funct::abs(), SiPixelPhase1TrackClustersV_cfi::e3, 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(), pythiaStatusCodes(), globals_cff::x1, and globals_cff::x2.
|
inline |
bool Herwig6Hadronizer::hadronize | ( | ) |
Definition at line 685 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(), useJimmy, and wrapper.
bool Herwig6Hadronizer::initialize | ( | const lhef::HEPRUP * | heprup | ) |
Definition at line 454 of file Herwig6Hadronizer.cc.
References gen::FortranInstance::call(), clear(), comEnergy, edm::errors::Configuration, doMPInteraction, MillePedeFileConverter_cfg::e, lhef::HEPRUP::EBMUP, 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(), mps_splice::line, maxEventsToPrint, needClear, gen::Herwig6Instance::openParticleSpecFile(), particleSpecFileName, lhef::LHERunInfo::pdfSetTranslation(), printCards, readParticleSpecFile, setSLHAFromHeader(), and useJimmy.
|
inline |
Definition at line 100 of file Herwig6Hadronizer.cc.
References myMessageLogger_cff::statistics.
bool Herwig6Hadronizer::initializeForInternalPartons | ( | ) |
Definition at line 435 of file Herwig6Hadronizer.cc.
References gen::FortranInstance::call(), jimmin, jminit, and useJimmy.
|
private |
Definition at line 966 of file Herwig6Hadronizer.cc.
References externalPartons, GenParticle::GenParticle, lumiQueryAPI::q, mps_update::status, and extraflags_cff::vtx.
Referenced by pythiaStatusCodes().
|
private |
Definition at line 1052 of file Herwig6Hadronizer.cc.
References gen::BaseHadronizer::event(), and pythiaStatusCode().
Referenced by finalizeEvent().
bool Herwig6Hadronizer::readSettings | ( | int | key | ) |
Definition at line 268 of file Herwig6Hadronizer.cc.
References gen::FortranInstance::call(), clear(), comEnergy, edm::errors::Configuration, doMatching, doMPInteraction, MillePedeFileConverter_cfg::e, lhef::HEPRUP::EBMUP, 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(), mps_splice::line, matchingScale, maxEventsToPrint, needClear, nMatch, nullptr, gen::Herwig6Instance::openParticleSpecFile(), particleSpecFileName, lhef::LHERunInfo::pdfSetTranslation(), printCards, readParticleSpecFile, setSLHAFromHeader(), and useJimmy.
bool Herwig6Hadronizer::residualDecay | ( | ) |
Definition at line 918 of file Herwig6Hadronizer.cc.
void Herwig6Hadronizer::setSLHAFromHeader | ( | const std::vector< std::string > & | lines | ) |
Definition at line 222 of file Herwig6Hadronizer.cc.
References groupFilesInBlocks::block, gather_cfg::blocks, createfilelist::int, mps_splice::line, split, AlCaHLTBitMon_QueryRunRegistry::string, and create_public_lumi_plots::transform.
Referenced by initialize(), and readSettings().
void Herwig6Hadronizer::statistics | ( | ) |
Definition at line 669 of file Herwig6Hadronizer.cc.
References gen::BaseHadronizer::runInfo(), and GenRunInfoProduct::setInternalXSec().
|
overrideprivatevirtual |
Reimplemented from gen::FortranInstance.
Definition at line 948 of file Herwig6Hadronizer.cc.
References 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 923 of file Herwig6Hadronizer.cc.
References edm::errors::Configuration, lhef::CommonBlocks::fillHEPRUP(), lhef::LHERunInfo::getHeaders(), gen::Herwig6Instance::give(), heprup_, gen::BaseHadronizer::lheRunInfo(), HEPRUP_::pdfgup, HEPRUP_::pdfsup, readMCatNLOfile, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 141 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 131 of file Herwig6Hadronizer.cc.
Referenced by hadronize().
|
private |
Definition at line 146 of file Herwig6Hadronizer.cc.
Referenced by hadronize(), and readSettings().
|
private |
Definition at line 143 of file Herwig6Hadronizer.cc.
Referenced by hadronize(), initialize(), and readSettings().
|
private |
Definition at line 140 of file Herwig6Hadronizer.cc.
Referenced by finalizeEvent().
|
private |
Definition at line 133 of file Herwig6Hadronizer.cc.
Referenced by finalizeEvent(), initialize(), pythiaStatusCode(), and readSettings().
|
private |
Definition at line 145 of file Herwig6Hadronizer.cc.
Referenced by hadronize(), and Herwig6Hadronizer().
|
private |
Definition at line 137 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 136 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 147 of file Herwig6Hadronizer.cc.
Referenced by readSettings().
|
private |
Definition at line 149 of file Herwig6Hadronizer.cc.
Referenced by readSettings().
|
private |
Definition at line 138 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 132 of file Herwig6Hadronizer.cc.
Referenced by clear(), initialize(), and readSettings().
|
private |
Definition at line 148 of file Herwig6Hadronizer.cc.
Referenced by readSettings().
|
private |
Definition at line 144 of file Herwig6Hadronizer.cc.
|
private |
Definition at line 135 of file Herwig6Hadronizer.cc.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().
|
private |
Definition at line 154 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 139 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
private |
Definition at line 151 of file Herwig6Hadronizer.cc.
|
private |
Definition at line 155 of file Herwig6Hadronizer.cc.
Referenced by initialize(), and readSettings().
|
staticprivate |
Definition at line 129 of file Herwig6Hadronizer.cc.
|
private |
Definition at line 142 of file Herwig6Hadronizer.cc.
Referenced by clear(), hadronize(), initialize(), initializeForInternalPartons(), and readSettings().