CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
gen::HydjetHadronizer Class Reference

#include <HydjetHadronizer.h>

Inheritance diagram for gen::HydjetHadronizer:
gen::BaseHadronizer

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 ()
 
 HydjetHadronizer (const edm::ParameterSet &, edm::ConsumesCollector &&)
 
bool initializeForExternalPartons ()
 
bool initializeForInternalPartons ()
 
bool readSettings (int)
 
bool residualDecay ()
 
void statistics ()
 
 ~HydjetHadronizer () 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::EventgetEDMEvent () const
 
std::unique_ptr< HepMC::GenEventgetGenEvent ()
 
std::unique_ptr< GenEventInfoProductgetGenEventInfo ()
 
virtual std::unique_ptr< GenLumiInfoHeadergetGenLumiInfoHeader () const
 
GenRunInfoProductgetGenRunInfo ()
 
std::unique_ptr< lhef::LHEEventgetLHEEvent ()
 
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_hyjet (int index, int barcode)
 
HepMC::GenVertex * build_hyjet_vertex (int i, int id)
 
bool call_hyinit (double energy, double a, int ifb, double bmin, double bmax, double bfix, int nh)
 
void doSetRandomEngine (CLHEP::HepRandomEngine *v) override
 
std::vector< std::string > const & doSharedResources () const override
 
bool get_particles (HepMC::GenEvent *evt)
 
bool hydjet_init (const edm::ParameterSet &pset)
 
double nuclear_radius () const
 
void rotateEvtPlane ()
 

Private Attributes

double abeamtarget_
 beam/target atomic mass number More...
 
int angularspecselector_
 angular emitted gluon spectrum selection More...
 
double bfixed_
 fixed impact param (fm); valid only if cflag_=0 More...
 
double bmax_
 
double bmin_
 
int cflag_
 
double comenergy
 collision energy More...
 
double cosphi0_
 
bool docollisionalenloss_
 DEFAULT = true. More...
 
bool doradiativeenloss_
 DEFAULT = true. More...
 
bool embedding_
 Switch for embedding mode. More...
 
HepMC::GenEventevt
 
double fracsoftmult_
 
HepMC::FourVector * fVertex_
 Event signal vertex. More...
 
double hadfreeztemp_
 
std::string hymode_
 Hydjet running mode. More...
 
unsigned int maxEventsToPrint_
 Events to print if verbosity. More...
 
double maxlongy_
 
double maxtrany_
 
int nhard_
 multiplicity of PYTHIA(+PYQUEN)-induced particles in event More...
 
int nmultiplicity_
 
unsigned int nquarkflavor_
 
int nsoft_
 multiplicity of HYDRO-induced particles in event More...
 
int nsub_
 number of sub-events More...
 
double phi0_
 Event plane angle. More...
 
edm::ParameterSet pset_
 
Pythia6Servicepythia6Service_
 
unsigned int pythiaPylistVerbosity_
 pythia verbosity; def=1 More...
 
double qgpt0_
 
double qgptau0_
 
bool rotate_
 Switch to rotate event plane. More...
 
unsigned int shadowingswitch_
 
std::vector< double > signalVtx_
 Pset double vector to set event signal vertex. More...
 
double signn_
 
double sinphi0_
 
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< GenEventInfoProduct > & eventInfo ()
 
lhef::LHEEventlheEvent ()
 
lhef::LHERunInfolheRunInfo ()
 
GenRunInfoProductrunInfo ()
 
- Protected Attributes inherited from gen::BaseHadronizer
std::string lheFile_
 
int randomIndex_
 

Detailed Description

Definition at line 41 of file HydjetHadronizer.h.

Constructor & Destructor Documentation

◆ HydjetHadronizer()

HydjetHadronizer::HydjetHadronizer ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)

Definition at line 61 of file HydjetHadronizer.cc.

63  evt(nullptr),
64  pset_(pset),
65  abeamtarget_(pset.getParameter<double>("aBeamTarget")),
66  angularspecselector_(pset.getParameter<int>("angularSpectrumSelector")),
67  bfixed_(pset.getParameter<double>("bFixed")),
68  bmax_(pset.getParameter<double>("bMax")),
69  bmin_(pset.getParameter<double>("bMin")),
70  cflag_(pset.getParameter<int>("cFlag")),
71  embedding_(pset.getParameter<bool>("embeddingMode")),
72  comenergy(pset.getParameter<double>("comEnergy")),
73  doradiativeenloss_(pset.getParameter<bool>("doRadiativeEnLoss")),
74  docollisionalenloss_(pset.getParameter<bool>("doCollisionalEnLoss")),
75  fracsoftmult_(pset.getParameter<double>("fracSoftMultiplicity")),
76  hadfreeztemp_(pset.getParameter<double>("hadronFreezoutTemperature")),
77  hymode_(pset.getParameter<string>("hydjetMode")),
78  maxEventsToPrint_(pset.getUntrackedParameter<int>("maxEventsToPrint", 1)),
79  maxlongy_(pset.getParameter<double>("maxLongitudinalRapidity")),
80  maxtrany_(pset.getParameter<double>("maxTransverseRapidity")),
81  nsub_(0),
82  nhard_(0),
83  nmultiplicity_(pset.getParameter<int>("nMultiplicity")),
84  nsoft_(0),
85  nquarkflavor_(pset.getParameter<int>("qgpNumQuarkFlavor")),
86  pythiaPylistVerbosity_(pset.getUntrackedParameter<int>("pythiaPylistVerbosity", 0)),
87  qgpt0_(pset.getParameter<double>("qgpInitialTemperature")),
88  qgptau0_(pset.getParameter<double>("qgpProperTimeFormation")),
89  phi0_(0.),
90  sinphi0_(0.),
91  cosphi0_(1.),
92  rotate_(pset.getParameter<bool>("rotateEventPlane")),
93  shadowingswitch_(pset.getParameter<int>("shadowingSwitch")),
94  signn_(pset.getParameter<double>("sigmaInelNN")),
95  fVertex_(nullptr),
97  // Default constructor
98 
99  if (pset.exists("signalVtx"))
100  signalVtx_ = pset.getUntrackedParameter<std::vector<double> >("signalVtx");
101 
102  if (signalVtx_.size() == 4) {
103  if (!fVertex_)
104  fVertex_ = new HepMC::FourVector();
105  LogDebug("EventSignalVertex") << "Setting event signal vertex "
106  << " x = " << signalVtx_.at(0) << " y = " << signalVtx_.at(1)
107  << " z= " << signalVtx_.at(2) << " t = " << signalVtx_.at(3) << endl;
108  fVertex_->set(signalVtx_.at(0), signalVtx_.at(1), signalVtx_.at(2), signalVtx_.at(3));
109  }
110 
111  // PYLIST Verbosity Level
112  // Valid PYLIST arguments are: 1, 2, 3, 5, 7, 11, 12, 13
113  pythiaPylistVerbosity_ = pset.getUntrackedParameter<int>("pythiaPylistVerbosity", 0);
114  LogDebug("PYLISTverbosity") << "Pythia PYLIST verbosity level = " << pythiaPylistVerbosity_;
115 
116  //Max number of events printed on verbosity level
117  maxEventsToPrint_ = pset.getUntrackedParameter<int>("maxEventsToPrint", 0);
118  LogDebug("Events2Print") << "Number of events to be printed = " << maxEventsToPrint_;
119 
120  if (embedding_) {
121  cflag_ = 0;
123  pset.getUntrackedParameter<edm::InputTag>("backgroundLabel", edm::InputTag("mix", "generatorSmeared")));
124  }
125 
126  int cm = 1, va, vb, vc;
127  HYJVER(cm, va, vb, vc);
128  HepMC::HEPEVT_Wrapper::set_max_number_entries(4000);
129 }

References cflag_, embedding_, fVertex_, HYJVER, HLT_FULL_cff::InputTag, LogDebug, maxEventsToPrint_, muonDTDigis_cfi::pset, pythiaPylistVerbosity_, signalVtx_, and src_.

◆ ~HydjetHadronizer()

HydjetHadronizer::~HydjetHadronizer ( )
override

Definition at line 132 of file HydjetHadronizer.cc.

132  {
133  // destructor
134  call_pystat(1);
135  delete pythia6Service_;
136 }

References pythia6Service_.

Member Function Documentation

◆ add_heavy_ion_rec()

void HydjetHadronizer::add_heavy_ion_rec ( HepMC::GenEvent evt)
private

Definition at line 142 of file HydjetHadronizer.cc.

142  {
143  // heavy ion record in the final CMSSW Event
144  double npart = hyfpar.npart;
145  int nproj = static_cast<int>(npart / 2);
146  int ntarg = static_cast<int>(npart - nproj);
147 
148  HepMC::HeavyIon* hi = new HepMC::HeavyIon(nsub_, // Ncoll_hard/N of SubEvents
149  nproj, // Npart_proj
150  ntarg, // Npart_targ
151  static_cast<int>(hyfpar.nbcol), // Ncoll
152  0, // spectator_neutrons
153  0, // spectator_protons
154  0, // N_Nwounded_collisions
155  0, // Nwounded_N_collisions
156  0, // Nwounded_Nwounded_collisions
157  hyfpar.bgen * nuclear_radius(), // impact_parameter in [fm]
158  phi0_, // event_plane_angle
159  0, //hypsi3.psi3, // eccentricity
160  hyjpar.sigin // sigma_inel_NN
161  );
162 
163  evt->set_heavy_ion(*hi);
164  delete hi;
165 }

References evt, hyfpar, hyjpar, npart, nsub_, nuclear_radius(), and phi0_.

Referenced by generatePartonsAndHadronize().

◆ build_hyjet()

HepMC::GenParticle * HydjetHadronizer::build_hyjet ( int  index,
int  barcode 
)
private

Definition at line 168 of file HydjetHadronizer.cc.

168  {
169  // Build particle object corresponding to index in hyjets (soft+hard)
170  double x0 = hyjets.phj[0][index];
171  double y0 = hyjets.phj[1][index];
172 
173  double x = x0 * cosphi0_ - y0 * sinphi0_;
174  double y = y0 * cosphi0_ + x0 * sinphi0_;
175 
176  HepMC::GenParticle* p = new HepMC::GenParticle(HepMC::FourVector(x, // px
177  y, // py
178  hyjets.phj[2][index], // pz
179  hyjets.phj[3][index]), // E
180  hyjets.khj[1][index], // id
181  convertStatus(hyjets.khj[0][index] // status
182  ));
183 
184  p->suggest_barcode(barcode);
185  return p;
186 }

References cosphi0_, GenParticle::GenParticle, hyjets, gen::p, and sinphi0_.

Referenced by get_particles().

◆ build_hyjet_vertex()

HepMC::GenVertex * HydjetHadronizer::build_hyjet_vertex ( int  i,
int  id 
)
private

Definition at line 189 of file HydjetHadronizer.cc.

189  {
190  // build verteces for the hyjets stored events
191  double x0 = hyjets.vhj[0][i];
192  double y0 = hyjets.vhj[1][i];
193  double x = x0 * cosphi0_ - y0 * sinphi0_;
194  double y = y0 * cosphi0_ + x0 * sinphi0_;
195  double z = hyjets.vhj[2][i];
196  double t = hyjets.vhj[4][i];
197 
198  HepMC::GenVertex* vertex = new HepMC::GenVertex(HepMC::FourVector(x, y, z, t), id);
199  return vertex;
200 }

References cosphi0_, hyjets, mps_fire::i, sinphi0_, submitPVValidationJobs::t, and bphysicsOniaDQM_cfi::vertex.

Referenced by get_particles().

◆ call_hyinit()

bool HydjetHadronizer::call_hyinit ( double  energy,
double  a,
int  ifb,
double  bmin,
double  bmax,
double  bfix,
int  nh 
)
private

Definition at line 419 of file HydjetHadronizer.cc.

419  {
420  // initialize hydjet
421 
422  pydatr.mrpy[2] = 1;
423  HYINIT(energy, a, ifb, bmin, bmax, bfix, nh);
424  return true;
425 }

References a, ReggeGribovPartonMC_AdvancedParameters_cfi::bmax, ReggeGribovPartonMC_AdvancedParameters_cfi::bmin, HCALHighEnergyHPDFilter_cfi::energy, HYINIT, and cms::cuda::nh.

Referenced by initializeForInternalPartons().

◆ classname()

const char * HydjetHadronizer::classname ( ) const

Definition at line 560 of file HydjetHadronizer.cc.

560 { return "gen::HydjetHadronizer"; }

◆ decay()

bool HydjetHadronizer::decay ( )

Definition at line 552 of file HydjetHadronizer.cc.

552 { return true; }

◆ declareSpecialSettings()

bool gen::HydjetHadronizer::declareSpecialSettings ( const std::vector< std::string > &  )
inline

Definition at line 54 of file HydjetHadronizer.h.

54 { return true; }

◆ declareStableParticles()

bool HydjetHadronizer::declareStableParticles ( const std::vector< int > &  _pdg)

Definition at line 529 of file HydjetHadronizer.cc.

529  {
530  std::vector<int> pdg = _pdg;
531  for (size_t i = 0; i < pdg.size(); i++) {
532  int pyCode = pycomp_(pdg[i]);
533  std::ostringstream pyCard;
534  pyCard << "MDCY(" << pyCode << ",1)=0";
535  std::cout << pyCard.str() << std::endl;
536  call_pygive(pyCard.str());
537  }
538  return true;
539 }

References gen::call_pygive(), gather_cfg::cout, mps_fire::i, and gen::pycomp_().

◆ doSetRandomEngine()

void HydjetHadronizer::doSetRandomEngine ( CLHEP::HepRandomEngine *  v)
overrideprivatevirtual

Reimplemented from gen::BaseHadronizer.

Definition at line 139 of file HydjetHadronizer.cc.

References pythia6Service_, gen::Pythia6Service::setRandomEngine(), and gen::v.

◆ doSharedResources()

std::vector<std::string> const& gen::HydjetHadronizer::doSharedResources ( ) const
inlineoverrideprivatevirtual

Reimplemented from gen::BaseHadronizer.

Definition at line 62 of file HydjetHadronizer.h.

62 { return theSharedResources; }

References theSharedResources.

◆ finalizeEvent()

void HydjetHadronizer::finalizeEvent ( )

Definition at line 556 of file HydjetHadronizer.cc.

556 {}

◆ generatePartonsAndHadronize()

bool HydjetHadronizer::generatePartonsAndHadronize ( )

Definition at line 204 of file HydjetHadronizer.cc.

204  {
205  Pythia6Service::InstanceWrapper guard(pythia6Service_);
206 
207  // generate single event
208  if (embedding_) {
209  const edm::Event& e = getEDMEvent();
210  HepMC::GenVertex* genvtx = nullptr;
211  const HepMC::GenEvent* inev = nullptr;
213  e.getByToken(src_, cf);
215  if (mix.size() < 1) {
216  throw cms::Exception("MatchVtx") << "Mixing has " << mix.size() << " sub-events, should have been at least 1"
217  << endl;
218  }
219  const HepMCProduct& bkg = mix.getObject(0);
220  if (!(bkg.isVtxGenApplied())) {
221  throw cms::Exception("MatchVtx") << "Input background does not have smeared vertex!" << endl;
222  } else {
223  inev = bkg.GetEvent();
224  }
225 
226  genvtx = inev->signal_process_vertex();
227 
228  if (!genvtx)
229  throw cms::Exception("MatchVtx") << "Input background does not have signal process vertex!" << endl;
230 
231  double aX, aY, aZ, aT;
232 
233  aX = genvtx->position().x();
234  aY = genvtx->position().y();
235  aZ = genvtx->position().z();
236  aT = genvtx->position().t();
237 
238  if (!fVertex_) {
239  fVertex_ = new HepMC::FourVector();
240  }
241  LogInfo("MatchVtx") << " setting vertex "
242  << " aX " << aX << " aY " << aY << " aZ " << aZ << " aT " << aT << endl;
243  fVertex_->set(aX, aY, aZ, aT);
244 
245  const HepMC::HeavyIon* hi = inev->heavy_ion();
246 
247  if (hi) {
248  bfixed_ = (hi->impact_parameter()) / nuclear_radius();
249  phi0_ = hi->event_plane_angle();
250  sinphi0_ = sin(phi0_);
251  cosphi0_ = cos(phi0_);
252  } else {
253  LogWarning("EventEmbedding") << "Background event does not have heavy ion record!";
254  }
255 
256  } else if (rotate_)
257  rotateEvtPlane();
258 
259  nsoft_ = 0;
260  nhard_ = 0;
261 
262  edm::LogInfo("HYDJETmode") << "##### HYDJET nhsel = " << hyjpar.nhsel;
263  edm::LogInfo("HYDJETfpart") << "##### HYDJET fpart = " << hyflow.fpart;
264  edm::LogInfo("HYDJETtf") << "##### HYDJET hadron freez-out temp, Tf = " << hyflow.Tf;
265  edm::LogInfo("HYDJETinTemp") << "##### HYDJET: QGP init temperature, T0 =" << pyqpar.T0u;
266  edm::LogInfo("HYDJETinTau") << "##### HYDJET: QGP formation time,tau0 =" << pyqpar.tau0u;
267 
268  int ntry = 0;
269  while (nsoft_ == 0 && nhard_ == 0) {
270  if (ntry > 100) {
271  edm::LogError("HydjetEmptyEvent") << "##### HYDJET: No Particles generated, Number of tries =" << ntry;
272 
273  // Throw an exception. Use the EventCorruption exception since it maps onto SkipEvent
274  // which is what we want to do here.
275 
276  std::ostringstream sstr;
277  sstr << "HydjetHadronizerProducer: No particles generated after " << ntry << " tries.\n";
278  edm::Exception except(edm::errors::EventCorruption, sstr.str());
279  throw except;
280  } else {
281  HYEVNT(bfixed_);
282  nsoft_ = hyfpar.nhyd;
283  nsub_ = hyjpar.njet;
284  nhard_ = hyfpar.npyt;
285  ++ntry;
286  }
287  }
288 
289  if (hyjpar.nhsel < 3)
290  nsub_++;
291 
292  // event information
294 
295  if (nhard_ > 0 || nsoft_ > 0)
297 
298  evt->set_signal_process_id(pypars.msti[0]); // type of the process
299  evt->set_event_scale(pypars.pari[16]); // Q^2
301 
302  if (fVertex_) {
303  // generate new vertex & apply the shift
304 
305  // Copy the HepMC::GenEvent
306  std::unique_ptr<edm::HepMCProduct> HepMCEvt(new edm::HepMCProduct(evt));
307 
308  HepMCEvt->applyVtxGen(fVertex_);
309  evt = new HepMC::GenEvent((*HepMCEvt->GetEvent()));
310  }
311 
312  HepMC::HEPEVT_Wrapper::check_hepevt_consistency();
313  LogDebug("HEPEVT_info") << "Ev numb: " << HepMC::HEPEVT_Wrapper::event_number()
314  << " Entries number: " << HepMC::HEPEVT_Wrapper::number_entries() << " Max. entries "
315  << HepMC::HEPEVT_Wrapper::max_number_entries() << std::endl;
316 
317  event().reset(evt);
318  return true;
319 }

References add_heavy_ion_rec(), bfixed_, funct::cos(), cosphi0_, MillePedeFileConverter_cfg::e, embedding_, gen::BaseHadronizer::event(), edm::errors::EventCorruption, evt, Exception, fVertex_, get_particles(), gen::BaseHadronizer::getEDMEvent(), edm::HepMCProduct::GetEvent(), HYEVNT, hyflow, hyfpar, hyjpar, edm::HepMCProduct::isVtxGenApplied(), LogDebug, GeneratorMix_cff::mix, nhard_, nsoft_, nsub_, nuclear_radius(), phi0_, edm::Handle< T >::product(), pypars, pyqpar, pythia6Service_, rotate_, rotateEvtPlane(), funct::sin(), sinphi0_, and src_.

◆ get_particles()

bool HydjetHadronizer::get_particles ( HepMC::GenEvent evt)
private

Definition at line 322 of file HydjetHadronizer.cc.

322  {
323  // Hard particles. The first nhard_ lines from hyjets array.
324  // Pythia/Pyquen sub-events (sub-collisions) for a given event
325  // Return T/F if success/failure
326  // Create particles from lujet entries, assign them into vertices and
327  // put the vertices in the GenEvent, for each SubEvent
328  // The SubEvent information is kept by storing indeces of main vertices
329  // of subevents as a vector in GenHIEvent.
330 
331  LogDebug("SubEvent") << " Number of sub events " << nsub_;
332  LogDebug("Hydjet") << " Number of hard events " << hyjpar.njet;
333  LogDebug("Hydjet") << " Number of hard particles " << nhard_;
334  LogDebug("Hydjet") << " Number of soft particles " << nsoft_;
335  LogDebug("Hydjet") << " nhard_ + nsoft_ = " << nhard_ + nsoft_ << " hyjets.nhj = " << hyjets.nhj << endl;
336 
337  int ihy = 0;
338  int isub = -1;
339  int isub_l = -1;
340  int stab = 0;
341 
342  vector<HepMC::GenParticle*> primary_particle(hyjets.nhj);
343  vector<HepMC::GenParticle*> particle(hyjets.nhj);
344 
345  HepMC::GenVertex* sub_vertices = new HepMC::GenVertex(HepMC::FourVector(0, 0, 0, 0), 0); // just initialization
346 
347  // contain the last index in for each subevent
348  vector<int> index(nsub_);
349 
350  while (ihy < hyjets.nhj) {
351  isub = std::floor((hyjets.khj[2][ihy] / 50000));
352  int hjoffset = isub * 50000;
353 
354  if (isub != isub_l) {
355  sub_vertices = new HepMC::GenVertex(HepMC::FourVector(0, 0, 0, 0), isub);
356  evt->add_vertex(sub_vertices);
357  if (!evt->signal_process_vertex())
358  evt->set_signal_process_vertex(sub_vertices);
359  index[isub] = ihy - 1;
360  isub_l = isub;
361  }
362 
363  if (convertStatus(hyjets.khj[0][ihy]) == 1)
364  stab++;
365  LogDebug("Hydjet_array") << ihy << " MULTin ev.:" << hyjets.nhj << " SubEv.#" << isub << " Part #" << ihy + 1
366  << ", PDG: " << hyjets.khj[1][ihy] << " (st. " << convertStatus(hyjets.khj[0][ihy])
367  << ") mother=" << hyjets.khj[2][ihy] - (isub * 50000) + index[isub] + 1 << " ("
368  << hyjets.khj[2][ihy] << "), childs ("
369  << hyjets.khj[3][ihy] - (isub * 50000) + index[isub] + 1 << "-"
370  << hyjets.khj[4][ihy] - (isub * 50000) + index[isub] + 1 << "), vtx ("
371  << hyjets.vhj[0][ihy] << "," << hyjets.vhj[1][ihy] << "," << hyjets.vhj[2][ihy] << ") "
372  << std::endl;
373 
374  if (hyjets.khj[2][ihy] == 0) {
375  primary_particle[ihy] = build_hyjet(ihy, ihy + 1);
376  sub_vertices->add_particle_out(primary_particle[ihy]);
377  LogDebug("Hydjet_array") << " ---> " << ihy + 1 << std::endl;
378  } else {
379  particle[ihy] = build_hyjet(ihy, ihy + 1);
380  int mid = hyjets.khj[2][ihy] - hjoffset + index[isub];
381  int mid_t = mid;
382  while ((mid < ihy) && (hyjets.khj[1][mid] < 100) && (hyjets.khj[3][mid + 1] - hjoffset + index[isub] == ihy))
383  mid++;
384  if (hyjets.khj[1][mid] < 100)
385  mid = mid_t;
386 
387  HepMC::GenParticle* mother = primary_particle.at(mid);
388  HepMC::GenVertex* prods = build_hyjet_vertex(ihy, isub);
389 
390  if (!mother) {
391  mother = particle[mid];
392  primary_particle[mid] = mother;
393  }
394 
395  HepMC::GenVertex* prod_vertex = mother->end_vertex();
396  if (!prod_vertex) {
397  prod_vertex = prods;
398  prod_vertex->add_particle_in(mother);
399  LogDebug("Hydjet_array") << " <--- " << mid + 1 << std::endl;
400  evt->add_vertex(prod_vertex);
401  prods = nullptr;
402  }
403 
404  prod_vertex->add_particle_out(particle[ihy]);
405  LogDebug("Hydjet_array") << " ---" << mid + 1 << "---> " << ihy + 1 << std::endl;
406 
407  if (prods)
408  delete prods;
409  }
410  ihy++;
411  }
412  LogDebug("Hydjet_array") << " MULTin ev.:" << hyjets.nhj << ", last index: " << ihy - 1
413  << ", Sub events: " << isub + 1 << ", stable particles: " << stab << std::endl;
414 
415  return true;
416 }

References build_hyjet(), build_hyjet_vertex(), evt, GenParticle::GenParticle, hyjets, hyjpar, LogDebug, nhard_, nsoft_, and nsub_.

Referenced by generatePartonsAndHadronize().

◆ hadronize()

bool HydjetHadronizer::hadronize ( )

Definition at line 550 of file HydjetHadronizer.cc.

550 { return false; }

◆ hydjet_init()

bool HydjetHadronizer::hydjet_init ( const edm::ParameterSet pset)
private

Definition at line 428 of file HydjetHadronizer.cc.

428  {
429  // set hydjet options
430 
431  // hydjet running mode mode
432  // kHydroOnly --- nhsel=0 jet production off (pure HYDRO event), nhsel=0
433  // kHydroJets --- nhsle=1 jet production on, jet quenching off (HYDRO+njet*PYTHIA events)
434  // kHydroQJet --- nhsel=2 jet production & jet quenching on (HYDRO+njet*PYQUEN events)
435  // kJetsOnly --- nhsel=3 jet production on, jet quenching off, HYDRO off (njet*PYTHIA events)
436  // kQJetsOnly --- nhsel=4 jet production & jet quenching on, HYDRO off (njet*PYQUEN events)
437 
438  if (hymode_ == "kHydroOnly")
439  hyjpar.nhsel = 0;
440  else if (hymode_ == "kHydroJets")
441  hyjpar.nhsel = 1;
442  else if (hymode_ == "kHydroQJets")
443  hyjpar.nhsel = 2;
444  else if (hymode_ == "kJetsOnly")
445  hyjpar.nhsel = 3;
446  else if (hymode_ == "kQJetsOnly")
447  hyjpar.nhsel = 4;
448  else
449  hyjpar.nhsel = 2;
450 
451  // fraction of soft hydro induced multiplicity
452  hyflow.fpart = fracsoftmult_;
453 
454  // hadron freez-out temperature
455  hyflow.Tf = hadfreeztemp_;
456 
457  // maximum longitudinal collective rapidity
458  hyflow.ylfl = maxlongy_;
459 
460  // maximum transverse collective rapidity
461  hyflow.ytfl = maxtrany_;
462 
463  // shadowing on=1, off=0
464  hyjpar.ishad = shadowingswitch_;
465 
466  // set inelastic nucleon-nucleon cross section
467  hyjpar.sigin = signn_;
468 
469  // angular emitted gluon spectrum selection
470  pyqpar.ianglu = angularspecselector_;
471 
472  // number of active quark flavors in qgp
473  pyqpar.nfu = nquarkflavor_;
474 
475  // initial temperature of QGP
476  pyqpar.T0u = qgpt0_;
477 
478  // proper time of QGP formation
479  pyqpar.tau0u = qgptau0_;
480 
481  // type of medium induced partonic energy loss
483  edm::LogInfo("HydjetEnLoss") << "##### Radiative AND Collisional partonic energy loss ON ####";
484  pyqpar.ienglu = 0;
485  } else if (doradiativeenloss_) {
486  edm::LogInfo("HydjetenLoss") << "##### Only RADIATIVE partonic energy loss ON ####";
487  pyqpar.ienglu = 1;
488  } else if (docollisionalenloss_) {
489  edm::LogInfo("HydjetEnLoss") << "##### Only COLLISIONAL partonic energy loss ON ####";
490  pyqpar.ienglu = 2;
491  } else {
492  edm::LogInfo("HydjetEnLoss") << "##### Radiative AND Collisional partonic energy loss ON ####";
493  pyqpar.ienglu = 0;
494  }
495  return true;
496 }

References angularspecselector_, docollisionalenloss_, doradiativeenloss_, fracsoftmult_, hadfreeztemp_, hyflow, hyjpar, hymode_, maxlongy_, maxtrany_, nquarkflavor_, pyqpar, qgpt0_, qgptau0_, shadowingswitch_, and signn_.

Referenced by initializeForInternalPartons().

◆ initializeForExternalPartons()

bool gen::HydjetHadronizer::initializeForExternalPartons ( )

◆ initializeForInternalPartons()

bool HydjetHadronizer::initializeForInternalPartons ( )

Definition at line 509 of file HydjetHadronizer.cc.

509  {
510  Pythia6Service::InstanceWrapper guard(pythia6Service_);
511  // pythia6Service_->setGeneralParams();
512 
513  // the input impact parameter (bxx_) is in [fm]; transform in [fm/RA] for hydjet usage
514  const float ra = nuclear_radius();
515  LogInfo("RAScaling") << "Nuclear radius(RA) = " << ra;
516  bmin_ /= ra;
517  bmax_ /= ra;
518  bfixed_ /= ra;
519 
520  // hydjet running options
522  // initialize hydjet
523  LogInfo("HYDJETinAction") << "##### Calling HYINIT(" << comenergy << "," << abeamtarget_ << "," << cflag_ << ","
524  << bmin_ << "," << bmax_ << "," << bfixed_ << "," << nmultiplicity_ << ") ####";
526  return true;
527 }

References abeamtarget_, bfixed_, bmax_, bmin_, call_hyinit(), cflag_, comenergy, hydjet_init(), nmultiplicity_, nuclear_radius(), pset_, and pythia6Service_.

◆ nuclear_radius()

double HydjetHadronizer::nuclear_radius ( ) const
inlineprivate

Return the nuclear radius derived from the beam/target atomic mass number.

Definition at line 140 of file HydjetHadronizer.h.

140 { return 1.15 * pow((double)abeamtarget_, 1. / 3.); }

References abeamtarget_, and funct::pow().

Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and initializeForInternalPartons().

◆ readSettings()

bool HydjetHadronizer::readSettings ( int  )

Definition at line 500 of file HydjetHadronizer.cc.

500  {
501  Pythia6Service::InstanceWrapper guard(pythia6Service_);
503 
504  return true;
505 }

References pythia6Service_, and gen::Pythia6Service::setGeneralParams().

◆ residualDecay()

bool HydjetHadronizer::residualDecay ( )

Definition at line 554 of file HydjetHadronizer.cc.

554 { return true; }

◆ rotateEvtPlane()

void HydjetHadronizer::rotateEvtPlane ( )
private

Definition at line 542 of file HydjetHadronizer.cc.

542  {
543  const double pi = 3.14159265358979;
544  phi0_ = 2. * pi * gen::pyr_(nullptr) - pi;
545  sinphi0_ = sin(phi0_);
546  cosphi0_ = cos(phi0_);
547 }

References funct::cos(), cosphi0_, phi0_, pi, gen::pyr_(), funct::sin(), and sinphi0_.

Referenced by generatePartonsAndHadronize().

◆ statistics()

void HydjetHadronizer::statistics ( )

Definition at line 558 of file HydjetHadronizer.cc.

558 {}

Member Data Documentation

◆ abeamtarget_

double gen::HydjetHadronizer::abeamtarget_
private

beam/target atomic mass number

Definition at line 77 of file HydjetHadronizer.h.

Referenced by initializeForInternalPartons(), and nuclear_radius().

◆ angularspecselector_

int gen::HydjetHadronizer::angularspecselector_
private

angular emitted gluon spectrum selection

Definition at line 78 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ bfixed_

double gen::HydjetHadronizer::bfixed_
private

fixed impact param (fm); valid only if cflag_=0

Definition at line 79 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize(), and initializeForInternalPartons().

◆ bmax_

double gen::HydjetHadronizer::bmax_
private

max impact param; units of nucl radius

Definition at line 80 of file HydjetHadronizer.h.

Referenced by initializeForInternalPartons().

◆ bmin_

double gen::HydjetHadronizer::bmin_
private

min impact param; units of nucl radius

Definition at line 82 of file HydjetHadronizer.h.

Referenced by initializeForInternalPartons().

◆ cflag_

int gen::HydjetHadronizer::cflag_
private

centrality flag = 0 fixed impact param, <> 0 between bmin and bmax

Definition at line 84 of file HydjetHadronizer.h.

Referenced by HydjetHadronizer(), and initializeForInternalPartons().

◆ comenergy

double gen::HydjetHadronizer::comenergy
private

collision energy

Definition at line 88 of file HydjetHadronizer.h.

Referenced by initializeForInternalPartons().

◆ cosphi0_

double gen::HydjetHadronizer::cosphi0_
private

◆ docollisionalenloss_

bool gen::HydjetHadronizer::docollisionalenloss_
private

DEFAULT = true.

Definition at line 90 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ doradiativeenloss_

bool gen::HydjetHadronizer::doradiativeenloss_
private

DEFAULT = true.

Definition at line 89 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ embedding_

bool gen::HydjetHadronizer::embedding_
private

Switch for embedding mode.

Definition at line 87 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize(), and HydjetHadronizer().

◆ evt

HepMC::GenEvent* gen::HydjetHadronizer::evt
private

◆ fracsoftmult_

double gen::HydjetHadronizer::fracsoftmult_
private

fraction of soft hydro induced hadronic multiplicity proportional to no of nucleon participants (1-fracsoftmult_)— fraction of soft multiplicity proportional to the numebr of nucleon-nucleon binary collisions DEFAULT=1., allowed range [0.01,1]

Definition at line 91 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ fVertex_

HepMC::FourVector* gen::HydjetHadronizer::fVertex_
private

Event signal vertex.

Definition at line 129 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize(), and HydjetHadronizer().

◆ hadfreeztemp_

double gen::HydjetHadronizer::hadfreeztemp_
private

hadron freez-out temperature DEFAULT=0.14MeV, allowed ranges [0.08,0.2]MeV

Definition at line 97 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ hymode_

std::string gen::HydjetHadronizer::hymode_
private

Hydjet running mode.

Definition at line 99 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ maxEventsToPrint_

unsigned int gen::HydjetHadronizer::maxEventsToPrint_
private

Events to print if verbosity.

Definition at line 100 of file HydjetHadronizer.h.

Referenced by HydjetHadronizer().

◆ maxlongy_

double gen::HydjetHadronizer::maxlongy_
private

max longitudinal collective rapidity: controls width of eta-spectra DEFAULT=4, allowed range [0.01,7.0]

Definition at line 101 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ maxtrany_

double gen::HydjetHadronizer::maxtrany_
private

max transverse collective rapidity: controls slope of low-pt spectra DEFAULT=1.5, allowed range [0.01,3.0]

Definition at line 104 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ nhard_

int gen::HydjetHadronizer::nhard_
private

multiplicity of PYTHIA(+PYQUEN)-induced particles in event

Definition at line 108 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize(), and get_particles().

◆ nmultiplicity_

int gen::HydjetHadronizer::nmultiplicity_
private

mean soft multiplicity in central PbPb automatically calculated for other centralitie and beams

Definition at line 109 of file HydjetHadronizer.h.

Referenced by initializeForInternalPartons().

◆ nquarkflavor_

unsigned int gen::HydjetHadronizer::nquarkflavor_
private

number of active quark flavors in qgp DEFAULT=0; allowed values: 0,1,2,3.

Definition at line 112 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ nsoft_

int gen::HydjetHadronizer::nsoft_
private

multiplicity of HYDRO-induced particles in event

Definition at line 111 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize(), and get_particles().

◆ nsub_

int gen::HydjetHadronizer::nsub_
private

number of sub-events

Definition at line 107 of file HydjetHadronizer.h.

Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and get_particles().

◆ phi0_

double gen::HydjetHadronizer::phi0_
private

Event plane angle.

Definition at line 120 of file HydjetHadronizer.h.

Referenced by add_heavy_ion_rec(), generatePartonsAndHadronize(), and rotateEvtPlane().

◆ pset_

edm::ParameterSet gen::HydjetHadronizer::pset_
private

Definition at line 76 of file HydjetHadronizer.h.

Referenced by initializeForInternalPartons().

◆ pythia6Service_

Pythia6Service* gen::HydjetHadronizer::pythia6Service_
private

◆ pythiaPylistVerbosity_

unsigned int gen::HydjetHadronizer::pythiaPylistVerbosity_
private

pythia verbosity; def=1

Definition at line 114 of file HydjetHadronizer.h.

Referenced by HydjetHadronizer().

◆ qgpt0_

double gen::HydjetHadronizer::qgpt0_
private

initial temperature of QGP DEFAULT = 1GeV; allowed range [0.2,2.0]GeV;

Definition at line 115 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ qgptau0_

double gen::HydjetHadronizer::qgptau0_
private

proper time of QGP formation DEFAULT = 0.1 fm/c; allowed range [0.01,10.0]fm/

Definition at line 117 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ rotate_

bool gen::HydjetHadronizer::rotate_
private

Switch to rotate event plane.

Definition at line 123 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize().

◆ shadowingswitch_

unsigned int gen::HydjetHadronizer::shadowingswitch_
private

shadowing switcher 1-ON, 0-OFF

Definition at line 125 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ signalVtx_

std::vector<double> gen::HydjetHadronizer::signalVtx_
private

Pset double vector to set event signal vertex.

Definition at line 130 of file HydjetHadronizer.h.

Referenced by HydjetHadronizer().

◆ signn_

double gen::HydjetHadronizer::signn_
private

inelastic nucleon nucleon cross section [mb] DEFAULT= 58 mb

Definition at line 127 of file HydjetHadronizer.h.

Referenced by hydjet_init().

◆ sinphi0_

double gen::HydjetHadronizer::sinphi0_
private

◆ src_

edm::EDGetTokenT<CrossingFrame<edm::HepMCProduct> > gen::HydjetHadronizer::src_
private

Definition at line 133 of file HydjetHadronizer.h.

Referenced by generatePartonsAndHadronize(), and HydjetHadronizer().

◆ theSharedResources

const std::vector< std::string > HydjetHadronizer::theSharedResources
staticprivate
gen::HydjetHadronizer::get_particles
bool get_particles(HepMC::GenEvent *evt)
Definition: HydjetHadronizer.cc:322
DDAxes::y
gen::HydjetHadronizer::cflag_
int cflag_
Definition: HydjetHadronizer.h:84
mps_fire.i
i
Definition: mps_fire.py:428
edm::Handle::product
T const * product() const
Definition: Handle.h:70
gen::HydjetHadronizer::add_heavy_ion_rec
void add_heavy_ion_rec(HepMC::GenEvent *evt)
Definition: HydjetHadronizer.cc:142
ReggeGribovPartonMC_AdvancedParameters_cfi.bmin
bmin
Definition: ReggeGribovPartonMC_AdvancedParameters_cfi.py:4
gen::HydjetHadronizer::hadfreeztemp_
double hadfreeztemp_
Definition: HydjetHadronizer.h:97
gen::HydjetHadronizer::rotate_
bool rotate_
Switch to rotate event plane.
Definition: HydjetHadronizer.h:123
gen::HydjetHadronizer::evt
HepMC::GenEvent * evt
Definition: HydjetHadronizer.h:75
gen::HydjetHadronizer::bmin_
double bmin_
Definition: HydjetHadronizer.h:82
gen::pycomp_
int pycomp_(int &)
gen::pyr_
double pyr_(int *idummy)
Definition: Pythia6Service.cc:60
gather_cfg.cout
cout
Definition: gather_cfg.py:144
hyfpar
#define hyfpar
Definition: HydjetWrapper.h:51
edm::errors::EventCorruption
Definition: EDMException.h:43
pypars
#define pypars
Definition: ExhumeHadronizer.cc:45
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
gen::FortranInstance::kFortranInstance
static const std::string kFortranInstance
Definition: FortranInstance.h:88
gen::HydjetHadronizer::qgpt0_
double qgpt0_
Definition: HydjetHadronizer.h:115
HYINIT
#define HYINIT
Definition: HydjetWrapper.h:13
DDAxes::x
gen::Pythia6Service::setRandomEngine
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition: Pythia6Service.h:46
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::Handle
Definition: AssociativeIterator.h:50
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
npart
double npart
Definition: HydjetWrapper.h:46
gen::Pythia6Service::setGeneralParams
void setGeneralParams()
Definition: Pythia6Service.cc:157
gen::HydjetHadronizer::sinphi0_
double sinphi0_
Definition: HydjetHadronizer.h:121
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
gen::HydjetHadronizer::nuclear_radius
double nuclear_radius() const
Definition: HydjetHadronizer.h:140
edm::Exception
Definition: EDMException.h:77
HYJVER
#define HYJVER
Definition: HydjetWrapper.h:25
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
gen::HydjetHadronizer::nsoft_
int nsoft_
multiplicity of HYDRO-induced particles in event
Definition: HydjetHadronizer.h:111
gen::HydjetHadronizer::comenergy
double comenergy
collision energy
Definition: HydjetHadronizer.h:88
gen::HydjetHadronizer::hydjet_init
bool hydjet_init(const edm::ParameterSet &pset)
Definition: HydjetHadronizer.cc:428
gen::HydjetHadronizer::embedding_
bool embedding_
Switch for embedding mode.
Definition: HydjetHadronizer.h:87
CrossingFrame
Definition: CrossingFrame.h:38
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
MixCollection
Definition: MixCollection.h:11
gen::p
double p[5][pyjets_maxn]
Definition: Cascade2Hadronizer.cc:76
gen::HydjetHadronizer::maxEventsToPrint_
unsigned int maxEventsToPrint_
Events to print if verbosity.
Definition: HydjetHadronizer.h:100
cms::cuda::nh
uint32_t nh
Definition: HistoContainer.h:23
DDAxes::z
gen::HydjetHadronizer::build_hyjet
HepMC::GenParticle * build_hyjet(int index, int barcode)
Definition: HydjetHadronizer.cc:168
gen::BaseHadronizer::getEDMEvent
edm::Event & getEDMEvent() const
Definition: BaseHadronizer.h:69
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
gen::HydjetHadronizer::qgptau0_
double qgptau0_
Definition: HydjetHadronizer.h:117
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
bphysicsOniaDQM_cfi.vertex
vertex
Definition: bphysicsOniaDQM_cfi.py:7
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
a
double a
Definition: hdecay.h:119
gen::HydjetHadronizer::pythia6Service_
Pythia6Service * pythia6Service_
Definition: HydjetHadronizer.h:132
hyjets
#define hyjets
Definition: HydjetWrapper.h:80
gen::HydjetHadronizer::bmax_
double bmax_
Definition: HydjetHadronizer.h:80
gen::HydjetHadronizer::call_hyinit
bool call_hyinit(double energy, double a, int ifb, double bmin, double bmax, double bfix, int nh)
Definition: HydjetHadronizer.cc:419
ReggeGribovPartonMC_AdvancedParameters_cfi.bmax
bmax
Definition: ReggeGribovPartonMC_AdvancedParameters_cfi.py:5
gen::HydjetHadronizer::pythiaPylistVerbosity_
unsigned int pythiaPylistVerbosity_
pythia verbosity; def=1
Definition: HydjetHadronizer.h:114
gen::HydjetHadronizer::signn_
double signn_
Definition: HydjetHadronizer.h:127
gen::HydjetHadronizer::cosphi0_
double cosphi0_
Definition: HydjetHadronizer.h:122
gen::HydjetHadronizer::fracsoftmult_
double fracsoftmult_
Definition: HydjetHadronizer.h:91
gen::v
double v[5][pyjets_maxn]
Definition: Cascade2Hadronizer.cc:76
gen::HydjetHadronizer::hymode_
std::string hymode_
Hydjet running mode.
Definition: HydjetHadronizer.h:99
hyflow
#define hyflow
Definition: HydjetWrapper.h:40
edm::HepMCProduct::GetEvent
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:34
edm::HepMCProduct::isVtxGenApplied
bool isVtxGenApplied() const
Definition: HepMCProduct.h:36
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
gen::HydjetHadronizer::doradiativeenloss_
bool doradiativeenloss_
DEFAULT = true.
Definition: HydjetHadronizer.h:89
gen::HydjetHadronizer::signalVtx_
std::vector< double > signalVtx_
Pset double vector to set event signal vertex.
Definition: HydjetHadronizer.h:130
hi
Definition: EPCuts.h:4
gen::HydjetHadronizer::build_hyjet_vertex
HepMC::GenVertex * build_hyjet_vertex(int i, int id)
Definition: HydjetHadronizer.cc:189
gen::HydjetHadronizer::maxtrany_
double maxtrany_
Definition: HydjetHadronizer.h:104
GenParticle.GenParticle
GenParticle
Definition: GenParticle.py:18
gen::HydjetHadronizer::src_
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > src_
Definition: HydjetHadronizer.h:133
gen::BaseHadronizer::event
std::unique_ptr< HepMC::GenEvent > & event()
Definition: BaseHadronizer.h:86
gen::HydjetHadronizer::nsub_
int nsub_
number of sub-events
Definition: HydjetHadronizer.h:107
hyjpar
#define hyjpar
Definition: HydjetWrapper.h:93
gen::HydjetHadronizer::pset_
edm::ParameterSet pset_
Definition: HydjetHadronizer.h:76
gen::BaseHadronizer::BaseHadronizer
BaseHadronizer(edm::ParameterSet const &ps)
Definition: BaseHadronizer.cc:12
gen::HydjetHadronizer::nhard_
int nhard_
multiplicity of PYTHIA(+PYQUEN)-induced particles in event
Definition: HydjetHadronizer.h:108
gen::HydjetHadronizer::rotateEvtPlane
void rotateEvtPlane()
Definition: HydjetHadronizer.cc:542
gen::HydjetHadronizer::theSharedResources
static const std::vector< std::string > theSharedResources
Definition: HydjetHadronizer.h:64
edm::SharedResourceNames::kPythia6
static const std::string kPythia6
Definition: SharedResourceNames.h:26
Exception
Definition: hltDiff.cc:246
gen::HydjetHadronizer::phi0_
double phi0_
Event plane angle.
Definition: HydjetHadronizer.h:120
gen::HydjetHadronizer::maxlongy_
double maxlongy_
Definition: HydjetHadronizer.h:101
pyqpar
#define pyqpar
Definition: HydjetWrapper.h:112
pdg
Definition: pdg_functions.h:28
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HYEVNT
#define HYEVNT
Definition: HydjetWrapper.h:20
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
pi
const Double_t pi
Definition: trackSplitPlot.h:36
gen::Pythia6Service
Definition: Pythia6Service.h:24
gen::HydjetHadronizer::nquarkflavor_
unsigned int nquarkflavor_
Definition: HydjetHadronizer.h:112
edm::HepMCProduct
Definition: HepMCProduct.h:18
gen::HydjetHadronizer::abeamtarget_
double abeamtarget_
beam/target atomic mass number
Definition: HydjetHadronizer.h:77
gen::HydjetHadronizer::fVertex_
HepMC::FourVector * fVertex_
Event signal vertex.
Definition: HydjetHadronizer.h:129
gen::HydjetHadronizer::docollisionalenloss_
bool docollisionalenloss_
DEFAULT = true.
Definition: HydjetHadronizer.h:90
edm::Event
Definition: Event.h:73
gen::HydjetHadronizer::angularspecselector_
int angularspecselector_
angular emitted gluon spectrum selection
Definition: HydjetHadronizer.h:78
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
gen::HydjetHadronizer::nmultiplicity_
int nmultiplicity_
Definition: HydjetHadronizer.h:109
GeneratorMix_cff.mix
mix
Definition: GeneratorMix_cff.py:6
gen::call_pygive
bool call_pygive(const std::string &line)
Definition: ExhumeHadronizer.cc:64
edm::InputTag
Definition: InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
gen::HydjetHadronizer::bfixed_
double bfixed_
fixed impact param (fm); valid only if cflag_=0
Definition: HydjetHadronizer.h:79
gen::HydjetHadronizer::shadowingswitch_
unsigned int shadowingswitch_
Definition: HydjetHadronizer.h:125
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37