#include <PyquenHadronizer.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 () |
PyquenHadronizer (const edm::ParameterSet &, edm::ConsumesCollector &&) | |
bool | readSettings (int) |
bool | residualDecay () |
bool | select (HepMC::GenEvent *evtTry) const override |
void | statistics () |
~PyquenHadronizer () 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) |
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) |
void | doSetRandomEngine (CLHEP::HepRandomEngine *v) override |
std::vector< std::string > const & | doSharedResources () const override |
const char * | nucleon () |
bool | pyqpythia_init (const edm::ParameterSet &pset) |
bool | pyquen_init (const edm::ParameterSet &pset) |
void | rotateEvtPlane (HepMC::GenEvent *evt, double angle) |
Private Attributes | |
double | abeamtarget_ |
beam/target atomic mass number More... | |
unsigned int | angularspecselector_ |
double | bfixed_ |
fixed impact param (fm); valid only if cflag_=0 More... | |
double | bmax_ |
max impact param (fm); valid only if cflag_!=0 More... | |
double | bmin_ |
min impact param (fm); valid only if cflag_!=0 More... | |
int | cflag_ |
centrality flag =0 fixed impact param, <>0 minbias More... | |
double | comenergy |
collision energy More... | |
bool | docollisionalenloss_ |
DEFAULT = true. More... | |
bool | doIsospin_ |
Run n&p with proper ratios; if false, only p+p collisions. More... | |
bool | doquench_ |
if true perform quenching (default = true) More... | |
bool | doradiativeenloss_ |
DEFAULT = true. More... | |
bool | embedding_ |
double | evtPlane_ |
std::string | filterType_ |
HepMC::FourVector * | fVertex_ |
Event signal vertex. More... | |
unsigned int | maxEventsToPrint_ |
Events to print if verbosity. More... | |
unsigned int | nquarkflavor_ |
double | pfrac_ |
Proton fraction in the nucleus. More... | |
int | protonSide_ |
edm::ParameterSet | pset_ |
Pythia6Service * | pythia6Service_ |
bool | pythiaHepMCVerbosity_ |
HepMC verbosity flag. More... | |
unsigned int | pythiaPylistVerbosity_ |
Pythia PYLIST Verbosity flag. More... | |
double | qgpt0_ |
double | qgptau0_ |
BaseHiGenEvtSelector * | selector_ |
std::vector< double > | signalVtx_ |
Pset double vector to set event signal vertex. More... | |
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > | src_ |
Static Private Attributes | |
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 34 of file PyquenHadronizer.h.
PyquenHadronizer::PyquenHadronizer | ( | const edm::ParameterSet & | pset, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 32 of file PyquenHadronizer.cc.
References cflag_, embedding_, filterType_, fVertex_, HiGenEvtSelectorFactory::get(), ProducerED_cfi::InputTag, LogDebug, maxEventsToPrint_, muonDTDigis_cfi::pset, PYQVER, pythiaHepMCVerbosity_, pythiaPylistVerbosity_, selector_, signalVtx_, and src_.
|
override |
Definition at line 94 of file PyquenHadronizer.cc.
References pythia6Service_.
|
private |
Definition at line 105 of file PyquenHadronizer.cc.
References evtPlane_, and plfpar.
Referenced by generatePartonsAndHadronize().
const char * PyquenHadronizer::classname | ( | ) | const |
Definition at line 380 of file PyquenHadronizer.cc.
bool PyquenHadronizer::decay | ( | ) |
Definition at line 372 of file PyquenHadronizer.cc.
|
inline |
Definition at line 47 of file PyquenHadronizer.h.
bool PyquenHadronizer::declareStableParticles | ( | const std::vector< int > & | _pdg | ) |
Definition at line 355 of file PyquenHadronizer.cc.
References gen::call_pygive(), gather_cfg::cout, mps_fire::i, and gen::pycomp_().
|
overrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 102 of file PyquenHadronizer.cc.
References pythia6Service_, gen::Pythia6Service::setRandomEngine(), and gen::v.
|
inlineoverrideprivatevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 55 of file PyquenHadronizer.h.
References theSharedResources.
void PyquenHadronizer::finalizeEvent | ( | ) |
Definition at line 376 of file PyquenHadronizer.cc.
bool PyquenHadronizer::generatePartonsAndHadronize | ( | ) |
Definition at line 127 of file PyquenHadronizer.cc.
References abeamtarget_, add_heavy_ion_rec(), bfixed_, bmax_, bmin_, cflag_, comenergy, gather_cfg::cout, doIsospin_, doquench_, MillePedeFileConverter_cfg::e, embedding_, gen::BaseHadronizer::event(), evtPlane_, Exception, fVertex_, gen::BaseHadronizer::getEDMEvent(), edm::HepMCProduct::GetEvent(), edm::HepMCProduct::isVtxGenApplied(), GeneratorMix_cff::mix, nucleon(), edm::Handle< T >::product(), protonSide_, gen::pyexec_(), pypars, PYQUEN, pyquen_hepevtio, pythia6Service_, rotateEvtPlane(), and src_.
bool PyquenHadronizer::hadronize | ( | ) |
Definition at line 370 of file PyquenHadronizer.cc.
bool gen::PyquenHadronizer::initializeForExternalPartons | ( | ) |
bool PyquenHadronizer::initializeForInternalPartons | ( | ) |
Definition at line 263 of file PyquenHadronizer.cc.
References comenergy, and pythia6Service_.
|
private |
Definition at line 314 of file PyquenHadronizer.cc.
References pfrac_, and gen::pyr_().
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 273 of file PyquenHadronizer.cc.
References gen::call_pygive().
Referenced by readSettings().
|
private |
Definition at line 283 of file PyquenHadronizer.cc.
References angularspecselector_, docollisionalenloss_, doradiativeenloss_, nquarkflavor_, pyqpar, qgpt0_, and qgptau0_.
Referenced by readSettings().
bool PyquenHadronizer::readSettings | ( | int | ) |
Definition at line 246 of file PyquenHadronizer.cc.
References abeamtarget_, pfrac_, conifer::pow(), pset_, pyqpythia_init(), pyquen_init(), pythia6Service_, gen::Pythia6Service::setCSAParams(), and gen::Pythia6Service::setGeneralParams().
bool PyquenHadronizer::residualDecay | ( | ) |
Definition at line 374 of file PyquenHadronizer.cc.
|
private |
Definition at line 326 of file PyquenHadronizer.cc.
References angle(), funct::cos(), funct::sin(), submitPVValidationJobs::t, and x.
Referenced by generatePartonsAndHadronize().
|
inlineoverridevirtual |
Reimplemented from gen::BaseHadronizer.
Definition at line 48 of file PyquenHadronizer.h.
References BaseHiGenEvtSelector::filter(), and selector_.
void PyquenHadronizer::statistics | ( | ) |
Definition at line 378 of file PyquenHadronizer.cc.
|
private |
beam/target atomic mass number
Definition at line 67 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize(), and readSettings().
|
private |
angular emitted gluon spectrum selection DEFAULT= 0 – small angular emitted gluon spectrum = 1 – broad angular emitted gluon spectrum = 2 – collinear angular emitted gluon spectrum
Definition at line 68 of file PyquenHadronizer.h.
Referenced by pyquen_init().
|
private |
fixed impact param (fm); valid only if cflag_=0
Definition at line 74 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
max impact param (fm); valid only if cflag_!=0
Definition at line 73 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
min impact param (fm); valid only if cflag_!=0
Definition at line 72 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
centrality flag =0 fixed impact param, <>0 minbias
Definition at line 75 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize(), and PyquenHadronizer().
|
private |
collision energy
Definition at line 76 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize(), and initializeForInternalPartons().
|
private |
|
private |
Run n&p with proper ratios; if false, only p+p collisions.
Definition at line 80 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
if true perform quenching (default = true)
Definition at line 77 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
|
private |
Definition at line 82 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize(), and PyquenHadronizer().
|
private |
Definition at line 83 of file PyquenHadronizer.h.
Referenced by add_heavy_ion_rec(), and generatePartonsAndHadronize().
|
private |
Definition at line 103 of file PyquenHadronizer.h.
Referenced by PyquenHadronizer().
|
private |
Event signal vertex.
Definition at line 94 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize(), and PyquenHadronizer().
|
private |
Events to print if verbosity.
Definition at line 92 of file PyquenHadronizer.h.
Referenced by PyquenHadronizer().
|
private |
number of active quark flavors in qgp DEFAULT=0; allowed values: 0,1,2,3.
Definition at line 86 of file PyquenHadronizer.h.
Referenced by pyquen_init().
|
private |
Proton fraction in the nucleus.
Definition at line 84 of file PyquenHadronizer.h.
Referenced by nucleon(), and readSettings().
|
private |
Definition at line 81 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize().
|
private |
Definition at line 66 of file PyquenHadronizer.h.
Referenced by readSettings().
|
private |
Definition at line 102 of file PyquenHadronizer.h.
Referenced by doSetRandomEngine(), generatePartonsAndHadronize(), initializeForInternalPartons(), readSettings(), and ~PyquenHadronizer().
|
private |
HepMC verbosity flag.
Definition at line 97 of file PyquenHadronizer.h.
Referenced by PyquenHadronizer().
|
private |
Pythia PYLIST Verbosity flag.
Definition at line 98 of file PyquenHadronizer.h.
Referenced by PyquenHadronizer().
|
private |
initial temperature of QGP DEFAULT = 1GeV; allowed range [0.2,2.0]GeV;
Definition at line 88 of file PyquenHadronizer.h.
Referenced by pyquen_init().
|
private |
proper time of QGP formation DEFAULT = 0.1 fm/c; allowed range [0.01,10.0]fm/c;
Definition at line 90 of file PyquenHadronizer.h.
Referenced by pyquen_init().
|
private |
Definition at line 104 of file PyquenHadronizer.h.
Referenced by PyquenHadronizer(), and select().
|
private |
Pset double vector to set event signal vertex.
Definition at line 95 of file PyquenHadronizer.h.
Referenced by PyquenHadronizer().
|
private |
Definition at line 101 of file PyquenHadronizer.h.
Referenced by generatePartonsAndHadronize(), and PyquenHadronizer().
|
staticprivate |
Definition at line 57 of file PyquenHadronizer.h.
Referenced by doSharedResources().