#include <Pythia6Hadronizer.h>
Public Member Functions | |
const char * | classname () const |
bool | decay () |
bool | declareSpecialSettings (const std::vector< std::string > &) |
bool | declareStableParticles (const std::vector< int > &) |
void | finalizeEvent () |
bool | generatePartonsAndHadronize () |
bool | hadronize () |
bool | initializeForExternalPartons () |
bool | initializeForInternalPartons () |
Pythia6Hadronizer (edm::ParameterSet const &ps) | |
bool | readSettings (int) |
bool | residualDecay () |
void | statistics () |
~Pythia6Hadronizer () 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< 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) |
Static Public Member Functions | |
static JetMatching * | getJetMatching () |
Private Types | |
enum | { PP, PPbar, ElectronPositron, ElectronProton, PositronProton } |
Private Member Functions | |
void | doSetRandomEngine (CLHEP::HepRandomEngine *v) override |
std::vector< std::string > const & | doSharedResources () const override |
void | fillTmpStorage () |
void | flushTmpStorage () |
void | imposeProperTime () |
Private Attributes | |
double | fBeam1PZ |
double | fBeam2PZ |
double | fCOMEnergy |
bool | fConvertToPDG |
bool | fDisplayPythiaBanner |
bool | fDisplayPythiaCards |
bool | fGluinoHadronsEnabled |
bool | fHepMCVerbosity |
bool | fImposeProperTime |
int | fInitialState |
unsigned int | fMaxEventsToPrint |
Pythia6Service * | fPy6Service |
unsigned int | fPythiaListVerbosity |
bool | fStopHadronsEnabled |
Static Private Attributes | |
static JetMatching * | fJetMatching = nullptr |
static const std::vector< std::string > | theSharedResources |
Additional Inherited Members | |
Protected Member Functions inherited from gen::BaseHadronizer | |
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 inherited from gen::BaseHadronizer | |
unsigned int | ivhepmc = 2 |
std::string | lheFile_ |
int | randomIndex_ |
Definition at line 37 of file Pythia6Hadronizer.h.
|
private |
Enumerator | |
---|---|
PP | |
PPbar | |
ElectronPositron | |
ElectronProton | |
PositronProton |
Definition at line 82 of file Pythia6Hadronizer.h.
gen::Pythia6Hadronizer::Pythia6Hadronizer | ( | edm::ParameterSet const & | ps | ) |
Definition at line 97 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), edm::errors::Configuration, gather_cfg::cout, gen::JetMatching::create(), ElectronPositron, ElectronProton, Exception, edm::ParameterSet::exists(), fBeam1PZ, fBeam2PZ, fConvertToPDG, fDisplayPythiaBanner, fDisplayPythiaCards, fGluinoHadronsEnabled, fImposeProperTime, fInitialState, fJetMatching, flushTmpStorage(), fStopHadronsEnabled, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), PositronProton, PP, and PPbar.
|
override |
Definition at line 215 of file Pythia6Hadronizer.cc.
References fJetMatching, and fPy6Service.
const char * gen::Pythia6Hadronizer::classname | ( | ) | const |
Definition at line 910 of file Pythia6Hadronizer.cc.
bool gen::Pythia6Hadronizer::decay | ( | ) |
Definition at line 509 of file Pythia6Hadronizer.cc.
bool gen::Pythia6Hadronizer::declareSpecialSettings | ( | const std::vector< std::string > & | settings | ) |
Definition at line 796 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), edm::errors::Configuration, Exception, spr::find(), contentValuesFiles::number, gen::pycomp_(), gen::pydat1_, and AlCaHLTBitMon_QueryRunRegistry::string.
bool gen::Pythia6Hadronizer::declareStableParticles | ( | const std::vector< int > & | pdg | ) |
Definition at line 778 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), mps_fire::i, and gen::pycomp_().
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 222 of file Pythia6Hadronizer.cc.
References fPy6Service, gen::Pythia6Service::setRandomEngine(), and gen::v.
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 66 of file Pythia6Hadronizer.h.
References theSharedResources.
|
private |
Definition at line 237 of file Pythia6Hadronizer.cc.
References mps_fire::i, and gen::pyjets_local.
Referenced by generatePartonsAndHadronize(), and hadronize().
void gen::Pythia6Hadronizer::finalizeEvent | ( | ) |
Definition at line 251 of file Pythia6Hadronizer.cc.
References funct::abs(), gen::call_pylist(), gather_cfg::cout, callgraph::cs, gen::BaseHadronizer::event(), gen::BaseHadronizer::eventInfo(), fConvertToPDG, fDisplayPythiaCards, fHepMCVerbosity, lhef::LHEEvent::fillEventInfo(), lhef::LHEEvent::fillPdfInfo(), fImposeProperTime, alignBH_cfg::fixed, fMaxEventsToPrint, fPythiaListVerbosity, imposeProperTime(), gen::BaseHadronizer::lheEvent(), gen::BaseHadronizer::lheRunInfo(), pydat1, pyint1, pypars, and mathSSE::sqrt().
|
private |
Definition at line 224 of file Pythia6Hadronizer.cc.
References mps_fire::i, and gen::pyjets_local.
Referenced by generatePartonsAndHadronize(), hadronize(), and Pythia6Hadronizer().
bool gen::Pythia6Hadronizer::generatePartonsAndHadronize | ( | ) |
Definition at line 396 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), gen::BaseHadronizer::event(), fGluinoHadronsEnabled, fillTmpStorage(), flushTmpStorage(), fPy6Service, fStopHadronsEnabled, gen::FortranCallback::getInstance(), gen::pyglfr_(), pyint1, gen::pystfr_(), pythia6_conv, and gen::FortranCallback::resetIterationsPerEvent().
|
inlinestatic |
Definition at line 53 of file Pythia6Hadronizer.h.
References fJetMatching.
Referenced by gen::Pythia6ServiceWithCallback::upEvnt(), and gen::Pythia6ServiceWithCallback::upVeto().
bool gen::Pythia6Hadronizer::hadronize | ( | ) |
Definition at line 444 of file Pythia6Hadronizer.cc.
References gen::JetMatching::beforeHadronisation(), gen::call_pygive(), lhef::LHEEvent::count(), gen::BaseHadronizer::event(), fGluinoHadronsEnabled, fillTmpStorage(), fJetMatching, flushTmpStorage(), fPy6Service, fStopHadronsEnabled, gen::FortranCallback::getInstance(), hepeup_, lhef::LHERunInfo::kAccepted, lhef::LHERunInfo::kSelected, gen::BaseHadronizer::lheEvent(), HEPEUP_::nup, gen::pyglfr_(), pyint1, pypars, gen::pystfr_(), pythia6_conv, gen::FortranCallback::resetIterationsPerEvent(), gen::JetMatching::resetMatchingStatus(), and gen::FortranCallback::setLHEEvent().
|
private |
Definition at line 832 of file Pythia6Hadronizer.cc.
References funct::abs(), gen::FortranInstance::call(), class-composition::children, gen::BaseHadronizer::event(), fPy6Service, dqm-mbProfile::log, gen::pycomp_(), pydat1, gen::pyr_(), mathSSE::sqrt(), submitPVValidationJobs::t, and x.
Referenced by finalizeEvent().
bool gen::Pythia6Hadronizer::initializeForExternalPartons | ( | ) |
Definition at line 671 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), gen::Pythia6Service::closeSLHA(), fGluinoHadronsEnabled, lhef::LHERunInfo::findHeader(), fJetMatching, fPy6Service, fStopHadronsEnabled, gen::FortranCallback::getInstance(), gen::JetMatching::init(), gen::BaseHadronizer::lheRunInfo(), gen::pyglrhad_(), gen::pystrhad_(), gen::FortranCallback::setLHERunInfo(), gen::Pythia6Service::setPYUPDAParams(), and gen::Pythia6Service::setSLHAFromHeader().
bool gen::Pythia6Hadronizer::initializeForInternalPartons | ( | ) |
Definition at line 720 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), gen::Pythia6Service::closeSLHA(), edm::errors::Configuration, ElectronPositron, ElectronProton, Exception, fBeam1PZ, fBeam2PZ, fCOMEnergy, fGluinoHadronsEnabled, fInitialState, fPy6Service, fStopHadronsEnabled, PositronProton, PP, PPbar, gen::pyglrhad_(), gen::pystrhad_(), and gen::Pythia6Service::setPYUPDAParams().
bool gen::Pythia6Hadronizer::readSettings | ( | int | key | ) |
Definition at line 660 of file Pythia6Hadronizer.cc.
References fPy6Service, submitPVResolutionJobs::key, gen::Pythia6Service::setCSAParams(), gen::Pythia6Service::setGeneralParams(), and gen::Pythia6Service::setSLHAParams().
bool gen::Pythia6Hadronizer::residualDecay | ( | ) |
Definition at line 511 of file Pythia6Hadronizer.cc.
References gen::BaseHadronizer::event(), fPy6Service, GenParticle::GenParticle, mps_fire::i, class-composition::parent, EgammaValidation_cff::pdgid, gen::pycomp_(), gen::pydecy_(), gen::pyjets_local, and mps_update::status.
void gen::Pythia6Hadronizer::statistics | ( | ) |
Definition at line 896 of file Pythia6Hadronizer.cc.
References callgraph::cs, pypars, gen::BaseHadronizer::runInfo(), and GenRunInfoProduct::setInternalXSec().
|
private |
Definition at line 87 of file Pythia6Hadronizer.h.
Referenced by initializeForInternalPartons(), and Pythia6Hadronizer().
|
private |
Definition at line 88 of file Pythia6Hadronizer.h.
Referenced by initializeForInternalPartons(), and Pythia6Hadronizer().
|
private |
Definition at line 85 of file Pythia6Hadronizer.h.
Referenced by initializeForInternalPartons().
|
private |
Definition at line 112 of file Pythia6Hadronizer.h.
Referenced by finalizeEvent(), and Pythia6Hadronizer().
|
private |
Definition at line 98 of file Pythia6Hadronizer.h.
Referenced by Pythia6Hadronizer().
|
private |
Definition at line 99 of file Pythia6Hadronizer.h.
Referenced by finalizeEvent(), and Pythia6Hadronizer().
|
private |
Definition at line 106 of file Pythia6Hadronizer.h.
Referenced by generatePartonsAndHadronize(), hadronize(), initializeForExternalPartons(), initializeForInternalPartons(), and Pythia6Hadronizer().
|
private |
Definition at line 92 of file Pythia6Hadronizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 109 of file Pythia6Hadronizer.h.
Referenced by finalizeEvent(), and Pythia6Hadronizer().
|
private |
Definition at line 84 of file Pythia6Hadronizer.h.
Referenced by initializeForInternalPartons(), and Pythia6Hadronizer().
|
staticprivate |
Definition at line 90 of file Pythia6Hadronizer.h.
Referenced by getJetMatching(), hadronize(), initializeForExternalPartons(), Pythia6Hadronizer(), and ~Pythia6Hadronizer().
|
private |
Definition at line 93 of file Pythia6Hadronizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 76 of file Pythia6Hadronizer.h.
Referenced by doSetRandomEngine(), generatePartonsAndHadronize(), hadronize(), imposeProperTime(), initializeForExternalPartons(), initializeForInternalPartons(), readSettings(), residualDecay(), and ~Pythia6Hadronizer().
|
private |
Definition at line 97 of file Pythia6Hadronizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 105 of file Pythia6Hadronizer.h.
Referenced by generatePartonsAndHadronize(), hadronize(), initializeForExternalPartons(), initializeForInternalPartons(), and Pythia6Hadronizer().
|
staticprivate |
Definition at line 117 of file Pythia6Hadronizer.h.
Referenced by doSharedResources().