#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< 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) |
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) |
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< GenEventInfoProduct > & | eventInfo () |
lhef::LHEEvent * | lheEvent () |
lhef::LHERunInfo * | lheRunInfo () |
GenRunInfoProduct & | runInfo () |
Protected Attributes inherited from gen::BaseHadronizer | |
std::string | lheFile_ |
int | randomIndex_ |
Definition at line 45 of file Hydjet2Hadronizer.h.
Hydjet2Hadronizer::Hydjet2Hadronizer | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 74 of file Hydjet2Hadronizer.cc.
References edm::ParameterSet::exists(), DeadROC_duringRun::f1, DeadROC_duringRun::f2, fParams, fVertex_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_2022v12_cff::InputTag, LogDebug, maxEventsToPrint_, pset, pythiaPylistVerbosity_, separateHydjetComponents_, signalVtx_, and src_.
|
override |
Definition at line 196 of file Hydjet2Hadronizer.cc.
References pythia6Service_.
|
private |
Definition at line 504 of file Hydjet2Hadronizer.cc.
References evt, hj2, nsub_, nuclear_radius(), phi0_, and Sigin.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 466 of file Hydjet2Hadronizer.cc.
References convertStatus(), 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 489 of file Hydjet2Hadronizer.cc.
References cosphi0_, hj2, mps_fire::i, sinphi0_, submitPVValidationJobs::t, bphysicsOniaDQM_cfi::vertex, and x.
Referenced by get_particles().
const char * Hydjet2Hadronizer::classname | ( | ) | const |
Definition at line 377 of file Hydjet2Hadronizer.cc.
|
private |
Definition at line 57 of file Hydjet2Hadronizer.cc.
Referenced by build_hyjet2(), and get_particles().
|
private |
Definition at line 43 of file Hydjet2Hadronizer.cc.
Referenced by build_hyjet2().
bool Hydjet2Hadronizer::decay | ( | ) |
Definition at line 373 of file Hydjet2Hadronizer.cc.
|
inline |
Definition at line 51 of file Hydjet2Hadronizer.h.
bool Hydjet2Hadronizer::declareStableParticles | ( | const std::vector< int > & | _pdg | ) |
Definition at line 360 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 202 of file Hydjet2Hadronizer.cc.
References hjRandomEngine, pythia6Service_, gen::Pythia6Service::setRandomEngine(), and gen::v.
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 72 of file Hydjet2Hadronizer.h.
References theSharedResources.
void Hydjet2Hadronizer::finalizeEvent | ( | ) |
Definition at line 375 of file Hydjet2Hadronizer.cc.
bool Hydjet2Hadronizer::generatePartonsAndHadronize | ( | ) |
Definition at line 236 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 388 of file Hydjet2Hadronizer.cc.
References funct::abs(), build_hyjet2(), build_hyjet2_vertex(), convertStatus(), evt, GenParticle::GenParticle, hj2, LogDebug, nhard_, nsoft_, and nsub_.
Referenced by generatePartonsAndHadronize().
bool Hydjet2Hadronizer::hadronize | ( | ) |
Definition at line 372 of file Hydjet2Hadronizer.cc.
bool gen::Hydjet2Hadronizer::initializeForExternalPartons | ( | ) |
bool Hydjet2Hadronizer::initializeForInternalPartons | ( | ) |
Definition at line 220 of file Hydjet2Hadronizer.cc.
References fParams, hj2, nuclear_radius(), and pythia6Service_.
|
inlineprivate |
Definition at line 108 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 208 of file Hydjet2Hadronizer.cc.
References fParams, hjRandomEngine, pythia6Service_, and gen::Pythia6Service::setGeneralParams().
bool Hydjet2Hadronizer::residualDecay | ( | ) |
Definition at line 374 of file Hydjet2Hadronizer.cc.
|
private |
Definition at line 380 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 376 of file Hydjet2Hadronizer.cc.
|
private |
Definition at line 92 of file Hydjet2Hadronizer.h.
Referenced by build_hyjet2(), build_hyjet2_vertex(), generatePartonsAndHadronize(), and rotateEvtPlane().
|
private |
Definition at line 83 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 86 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 80 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), Hydjet2Hadronizer(), initializeForInternalPartons(), nuclear_radius(), and readSettings().
|
private |
Definition at line 100 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and Hydjet2Hadronizer().
|
private |
Definition at line 81 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), build_hyjet2(), build_hyjet2_vertex(), generatePartonsAndHadronize(), get_particles(), and initializeForInternalPartons().
|
private |
Definition at line 95 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 88 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 89 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 87 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and get_particles().
|
private |
Definition at line 90 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and rotateEvtPlane().
|
private |
Definition at line 97 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 104 of file Hydjet2Hadronizer.h.
Referenced by doSetRandomEngine(), generatePartonsAndHadronize(), initializeForInternalPartons(), readSettings(), and ~Hydjet2Hadronizer().
|
private |
Definition at line 94 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 85 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 84 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 98 of file Hydjet2Hadronizer.h.
Referenced by add_heavy_ion_rec(), and generatePartonsAndHadronize().
|
private |
Definition at line 98 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 102 of file Hydjet2Hadronizer.h.
Referenced by Hydjet2Hadronizer().
|
private |
Definition at line 91 of file Hydjet2Hadronizer.h.
Referenced by build_hyjet2(), build_hyjet2_vertex(), generatePartonsAndHadronize(), and rotateEvtPlane().
|
private |
Definition at line 105 of file Hydjet2Hadronizer.h.
Referenced by generatePartonsAndHadronize(), and Hydjet2Hadronizer().
|
staticprivate |
Definition at line 73 of file Hydjet2Hadronizer.h.
Referenced by doSharedResources().