#include <PomwigHadronizer.h>
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 () |
bool | initializeForExternalPartons () |
bool | initializeForInternalPartons () |
PomwigHadronizer (const edm::ParameterSet ¶ms) | |
bool | readSettings (int) |
bool | residualDecay () |
void | statistics () |
~PomwigHadronizer () 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 void | upEvnt () |
virtual void | upInit () |
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 |
bool | initializeDPDF () |
Private Attributes | |
double | comEnergy |
HepMC::IO_HERWIG | conv |
int | diffTopology |
bool | doMPInteraction |
bool | doPDGConvert |
int | h1fit |
int | hepmcVerbosity |
int | herwigVerbosity |
int | maxEventsToPrint |
bool | needClear |
int | numTrials |
gen::ParameterCollector | parameters |
bool | printCards |
double | survivalProbability |
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 20 of file PomwigHadronizer.h.
gen::PomwigHadronizer::PomwigHadronizer | ( | const edm::ParameterSet & | params | ) |
Definition at line 91 of file PomwigHadronizer.cc.
References doPDGConvert, edm::ParameterSet::exists(), and edm::ParameterSet::getParameter().
|
override |
|
inline |
Definition at line 39 of file PomwigHadronizer.h.
|
private |
Definition at line 115 of file PomwigHadronizer.cc.
References gen::FortranInstance::call(), jmefin, needClear, and useJimmy.
Referenced by readSettings(), and ~PomwigHadronizer().
bool gen::PomwigHadronizer::decay | ( | ) |
Definition at line 335 of file PomwigHadronizer.cc.
References conv, doPDGConvert, gen::BaseHadronizer::event(), and wrapper.
|
inline |
Definition at line 30 of file PomwigHadronizer.h.
bool gen::PomwigHadronizer::declareStableParticles | ( | const std::vector< int > & | pdgIds | ) |
Definition at line 273 of file PomwigHadronizer.cc.
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 113 of file PomwigHadronizer.cc.
References gen::Herwig6Instance::setHerwigRandomEngine().
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 43 of file PomwigHadronizer.h.
References theSharedResources.
void gen::PomwigHadronizer::finalizeEvent | ( | ) |
Definition at line 327 of file PomwigHadronizer.cc.
References gen::BaseHadronizer::event(), and lhef::LHEEvent::fixHepMCEventTimeOrdering().
bool gen::PomwigHadronizer::generatePartonsAndHadronize | ( | ) |
Definition at line 292 of file PomwigHadronizer.cc.
References gen::Herwig6Instance::callWithTimeout(), doMPInteraction, relativeConstraints::error, gen::BaseHadronizer::event(), gen::hwwarn_(), useJimmy, and wrapper.
bool gen::PomwigHadronizer::hadronize | ( | ) |
Definition at line 290 of file PomwigHadronizer.cc.
|
private |
Definition at line 225 of file PomwigHadronizer.cc.
References printConversionInfo::aux, haddnano::cl, edm::errors::Configuration, diffTopology, Exception, validate-o2o-wbm::f2, h1fit, qcd_1994, qcd_2006, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by initializeForInternalPartons().
bool gen::PomwigHadronizer::initializeForExternalPartons | ( | ) |
Definition at line 127 of file PomwigHadronizer.cc.
bool gen::PomwigHadronizer::initializeForInternalPartons | ( | ) |
Definition at line 212 of file PomwigHadronizer.cc.
References gen::FortranInstance::call(), and initializeDPDF().
bool gen::PomwigHadronizer::readSettings | ( | int | ) |
Definition at line 129 of file PomwigHadronizer.cc.
References gen::ParameterCollector::begin(), gen::FortranInstance::call(), clear(), comEnergy, edm::errors::Configuration, diffTopology, gen::ParameterCollector::end(), Exception, gen::Herwig6Instance::give(), herwigVerbosity, hwdspn, hwprch, mps_fire::i, geometryCSVtoXML::line, maxEventsToPrint, needClear, and parameters.
bool gen::PomwigHadronizer::residualDecay | ( | ) |
Definition at line 365 of file PomwigHadronizer.cc.
void gen::PomwigHadronizer::statistics | ( | ) |
Definition at line 280 of file PomwigHadronizer.cc.
References gen::BaseHadronizer::runInfo(), GenRunInfoProduct::setInternalXSec(), and survivalProbability.
|
private |
Definition at line 58 of file PomwigHadronizer.h.
Referenced by readSettings().
|
private |
Definition at line 69 of file PomwigHadronizer.h.
Referenced by decay().
|
private |
Definition at line 60 of file PomwigHadronizer.h.
Referenced by initializeDPDF(), and readSettings().
|
private |
Definition at line 64 of file PomwigHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 67 of file PomwigHadronizer.h.
Referenced by decay(), and PomwigHadronizer().
|
private |
Definition at line 61 of file PomwigHadronizer.h.
Referenced by initializeDPDF().
|
private |
Definition at line 54 of file PomwigHadronizer.h.
|
private |
Definition at line 53 of file PomwigHadronizer.h.
Referenced by readSettings().
|
private |
Definition at line 55 of file PomwigHadronizer.h.
Referenced by readSettings().
|
private |
Definition at line 50 of file PomwigHadronizer.h.
Referenced by clear(), and readSettings().
|
private |
Definition at line 65 of file PomwigHadronizer.h.
|
private |
Definition at line 52 of file PomwigHadronizer.h.
Referenced by readSettings().
|
private |
Definition at line 56 of file PomwigHadronizer.h.
|
private |
Definition at line 59 of file PomwigHadronizer.h.
Referenced by statistics().
|
staticprivate |
Definition at line 48 of file PomwigHadronizer.h.
Referenced by doSharedResources().
|
private |
Definition at line 63 of file PomwigHadronizer.h.
Referenced by clear(), and generatePartonsAndHadronize().