#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< 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) |
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< GenEventInfoProduct > & | eventInfo () |
lhef::LHEEvent * | lheEvent () |
lhef::LHERunInfo * | lheRunInfo () |
GenRunInfoProduct & | runInfo () |
Protected Attributes inherited from gen::BaseHadronizer | |
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 96 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 |
const char * gen::Pythia6Hadronizer::classname | ( | ) | const |
Definition at line 909 of file Pythia6Hadronizer.cc.
bool gen::Pythia6Hadronizer::decay | ( | ) |
Definition at line 508 of file Pythia6Hadronizer.cc.
bool gen::Pythia6Hadronizer::declareSpecialSettings | ( | const std::vector< std::string > & | settings | ) |
Definition at line 795 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 777 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), mps_fire::i, and gen::pycomp_().
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 221 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 236 of file Pythia6Hadronizer.cc.
References mps_fire::i, and gen::pyjets_local.
Referenced by generatePartonsAndHadronize(), and hadronize().
void gen::Pythia6Hadronizer::finalizeEvent | ( | ) |
Definition at line 250 of file Pythia6Hadronizer.cc.
References funct::abs(), gen::call_pylist(), gather_cfg::cout, fwrapper::cs, gen::BaseHadronizer::event(), gen::BaseHadronizer::eventInfo(), fConvertToPDG, fDisplayPythiaCards, fHepMCVerbosity, lhef::LHEEvent::fillEventInfo(), lhef::LHEEvent::fillPdfInfo(), fImposeProperTime, alignBH_cfg::fixed, fMaxEventsToPrint, fPythiaListVerbosity, get, imposeProperTime(), gen::BaseHadronizer::lheEvent(), gen::BaseHadronizer::lheRunInfo(), pydat1, pyint1, pypars, and mathSSE::sqrt().
|
private |
Definition at line 223 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 395 of file Pythia6Hadronizer.cc.
References gen::call_pygive(), conv, gen::BaseHadronizer::event(), fGluinoHadronsEnabled, fillTmpStorage(), flushTmpStorage(), fPy6Service, fStopHadronsEnabled, gen::FortranCallback::getInstance(), gen::pyglfr_(), pyint1, gen::pystfr_(), 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 443 of file Pythia6Hadronizer.cc.
References gen::JetMatching::beforeHadronisation(), gen::call_pygive(), conv, 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_(), gen::FortranCallback::resetIterationsPerEvent(), gen::JetMatching::resetMatchingStatus(), and gen::FortranCallback::setLHEEvent().
|
private |
Definition at line 831 of file Pythia6Hadronizer.cc.
References funct::abs(), gen::FortranInstance::call(), class-composition::children, gen::BaseHadronizer::event(), DQMScaleToClient_cfi::factor, fPy6Service, dqm-mbProfile::log, gen::pycomp_(), pydat1, gen::pyr_(), mathSSE::sqrt(), OrderedSet::t, vbegin, and vend.
Referenced by finalizeEvent().
bool gen::Pythia6Hadronizer::initializeForExternalPartons | ( | ) |
Definition at line 670 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 719 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 659 of file Pythia6Hadronizer.cc.
References fPy6Service, crabWrapper::key, gen::Pythia6Service::setCSAParams(), gen::Pythia6Service::setGeneralParams(), and gen::Pythia6Service::setSLHAParams().
bool gen::Pythia6Hadronizer::residualDecay | ( | ) |
Definition at line 510 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 895 of file Pythia6Hadronizer.cc.
References fwrapper::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().