#include <Hydjet2Hadronizer.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 () |
Hydjet2Hadronizer (const edm::ParameterSet &, edm::ConsumesCollector &&) | |
bool | initializeForExternalPartons () |
bool | initializeForInternalPartons () |
bool | readSettings (int) |
bool | residualDecay () |
void | statistics () |
~Hydjet2Hadronizer () 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) |
Private Member Functions | |
void | add_heavy_ion_rec (HepMC::GenEvent *evt) |
HepMC::GenParticle * | build_hyjet2 (int index, int barcode) |
HepMC::GenVertex * | build_hyjet2_vertex (int i, int id) |
int | convertStatus (int) |
int | convertStatusForComponents (int, int, int) |
void | doSetRandomEngine (CLHEP::HepRandomEngine *v) override |
std::vector< std::string > const & | doSharedResources () const override |
bool | get_particles (HepMC::GenEvent *evt) |
double | nuclear_radius () const |
void | rotateEvtPlane () |
Private Attributes | |
double | cosphi0_ |
bool | ev = false |
HepMC::GenEvent * | evt |
InitialParamsHydjet_t | fParams |
HepMC::FourVector * | fVertex_ |
Hydjet2 * | hj2 |
unsigned int | maxEventsToPrint_ |
int | nhard_ |
int | nsoft_ |
int | nsub_ |
double | phi0_ |
edm::ParameterSet | pset |
Pythia6Service * | pythia6Service_ |
unsigned int | pythiaPylistVerbosity_ |
bool | rotate_ |
bool | separateHydjetComponents_ |
double | Sigin |
double | Sigjet |
std::vector< double > | signalVtx_ |
double | sinphi0_ |
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > | src_ |
Static Private Attributes | |
static const std::vector< std::string > | theSharedResources = {edm::SharedResourceNames::kPythia6} |
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 44 of file Hydjet2Hadronizer.h.
Hydjet2Hadronizer::Hydjet2Hadronizer | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 82 of file Hydjet2Hadronizer.cc.
References edm::ParameterSet::exists(), DeadROC_duringRun::f1, DeadROC_duringRun::f2, fParams, fVertex_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_2022v15_cff::InputTag, LogDebug, maxEventsToPrint_, pset, pythiaPylistVerbosity_, separateHydjetComponents_, signalVtx_, and src_.
|
override |
Definition at line 204 of file Hydjet2Hadronizer.cc.
References pythia6Service_.
|
private |
Definition at line 516 of file Hydjet2Hadronizer.cc.
References evt, hj2, nsub_, nuclear_radius(), phi0_, and Sigin.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 475 of file Hydjet2Hadronizer.cc.
References convertStatusForComponents(), cosphi0_, GenParticle::GenParticle, hj2, gen::p, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and sinphi0_.
Referenced by get_particles().
|
private |
Definition at line 498 of file Hydjet2Hadronizer.cc.
References cosphi0_, MillePedeFileConverter_cfg::e, hj2, mps_fire::i, sinphi0_, submitPVValidationJobs::t, bphysicsOniaDQM_cfi::vertex, and x.
Referenced by get_particles().
const char * Hydjet2Hadronizer::classname | ( | ) | const |
Definition at line 385 of file Hydjet2Hadronizer.cc.
|
private |
Definition at line 66 of file Hydjet2Hadronizer.cc.
Referenced by get_particles().
|
private |
Definition at line 43 of file Hydjet2Hadronizer.cc.
References Exception.
Referenced by build_hyjet2(), and get_particles().
bool Hydjet2Hadronizer::decay | ( | ) |
Definition at line 381 of file Hydjet2Hadronizer.cc.
|
inline |
Definition at line 50 of file Hydjet2Hadronizer.h.
bool Hydjet2Hadronizer::declareStableParticles | ( | const std::vector< int > & | _pdg | ) |
Definition at line 368 of file Hydjet2Hadronizer.cc.
References gen::call_pygive(), gather_cfg::cout, mps_fire::i, and gen::pycomp_().
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 210 of file Hydjet2Hadronizer.cc.
References hjRandomEngine, pythia6Service_, gen::Pythia6Service::setRandomEngine(), and gen::v.
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 71 of file Hydjet2Hadronizer.h.
References theSharedResources.
void Hydjet2Hadronizer::finalizeEvent | ( | ) |
Definition at line 383 of file Hydjet2Hadronizer.cc.
bool Hydjet2Hadronizer::generatePartonsAndHadronize | ( | ) |
Definition at line 244 of file Hydjet2Hadronizer.cc.
References add_heavy_ion_rec(), funct::cos(), cosphi0_, MillePedeFileConverter_cfg::e, ev, gen::BaseHadronizer::event(), edm::errors::EventCorruption, evt, Exception, fParams, fVertex_, get_particles(), gen::BaseHadronizer::getEDMEvent(), edm::HepMCProduct::GetEvent(), hj2, edm::HepMCProduct::isVtxGenApplied(), LogDebug, GeneratorMix_cff::mix, eostools::move(), nhard_, nsoft_, nsub_, nuclear_radius(), phi0_, edm::Handle< T >::product(), pypars, pythia6Service_, rotate_, rotateEvtPlane(), Sigin, Sigjet, funct::sin(), sinphi0_, and src_.
|
private |
Definition at line 396 of file Hydjet2Hadronizer.cc.
References funct::abs(), build_hyjet2(), build_hyjet2_vertex(), convertStatus(), convertStatusForComponents(), evt, GenParticle::GenParticle, hj2, LogDebug, nhard_, nsoft_, and nsub_.
Referenced by generatePartonsAndHadronize().
bool Hydjet2Hadronizer::hadronize | ( | ) |
Definition at line 380 of file Hydjet2Hadronizer.cc.
bool gen::Hydjet2Hadronizer::initializeForExternalPartons | ( | ) |
bool Hydjet2Hadronizer::initializeForInternalPartons | ( | ) |
Definition at line 228 of file Hydjet2Hadronizer.cc.
References fParams, hj2, nuclear_radius(), and pythia6Service_.
|
inlineprivate |
Definition at line 107 of file Hydjet2Hadronizer.h.
References fParams, and funct::pow().
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and initializeForInternalPartons().
bool Hydjet2Hadronizer::readSettings | ( | int | ) |
Definition at line 216 of file Hydjet2Hadronizer.cc.
References fParams, hjRandomEngine, pythia6Service_, and gen::Pythia6Service::setGeneralParams().
bool Hydjet2Hadronizer::residualDecay | ( | ) |
Definition at line 382 of file Hydjet2Hadronizer.cc.
|
private |
Definition at line 388 of file Hydjet2Hadronizer.cc.
References funct::cos(), cosphi0_, phi0_, pi, gen::pyr_(), funct::sin(), and sinphi0_.
Referenced by generatePartonsAndHadronize().
void Hydjet2Hadronizer::statistics | ( | ) |
Definition at line 384 of file Hydjet2Hadronizer.cc.
|
private |
Definition at line 91 of file Hydjet2Hadronizer.h.
Referenced by build_hyjet2(), build_hyjet2_vertex(), generatePartonsAndHadronize(), and rotateEvtPlane().
|
private |
Definition at line 82 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 85 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 79 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), Hydjet2Hadronizer(), initializeForInternalPartons(), nuclear_radius(), and readSettings().
|
private |
Definition at line 99 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and Hydjet2Hadronizer().
|
private |
Definition at line 80 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), build_hyjet2(), build_hyjet2_vertex(), generatePartonsAndHadronize(), get_particles(), and initializeForInternalPartons().
|
private |
Definition at line 94 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 87 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 88 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 86 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 89 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and rotateEvtPlane().
|
private |
Definition at line 96 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 103 of file Hydjet2Hadronizer.h.
Referenced by doSetRandomEngine(), generatePartonsAndHadronize(), initializeForInternalPartons(), readSettings(), and ~Hydjet2Hadronizer().
|
private |
Definition at line 93 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 84 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 83 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 97 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), and generatePartonsAndHadronize().
|
private |
Definition at line 97 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 101 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 90 of file Hydjet2Hadronizer.h.
Referenced by build_hyjet2(), build_hyjet2_vertex(), generatePartonsAndHadronize(), and rotateEvtPlane().
|
private |
Definition at line 104 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and Hydjet2Hadronizer().
|
staticprivate |
Definition at line 72 of file Hydjet2Hadronizer.h.
Referenced by doSharedResources().