CMS 3D CMS Logo

HydjetHadronizer.h
Go to the documentation of this file.
1 #ifndef HydjetHadronizer_h
2 #define HydjetHadronizer_h
3 
12 #define PYCOMP pycomp_
13 
16 
17 #include <map>
18 #include <string>
19 #include <vector>
20 #include <cmath>
21 
22 namespace CLHEP {
23  class HepRandomEngine;
24 }
25 
26 namespace HepMC {
27  class GenEvent;
28  class GenParticle;
29  class GenVertex;
30 } // namespace HepMC
31 
32 namespace gen {
33  class Pythia6Service;
34 
36  public:
38  ~HydjetHadronizer() override;
39 
40  bool generatePartonsAndHadronize();
41  bool hadronize();
42  bool decay();
43  bool residualDecay();
44  bool readSettings(int);
45  bool initializeForExternalPartons();
46  bool initializeForInternalPartons();
47  bool declareStableParticles(const std::vector<int>&);
48  bool declareSpecialSettings(const std::vector<std::string>&) { return true; }
49 
50  void finalizeEvent();
51  void statistics();
52  const char* classname() const;
53 
54  private:
55  void doSetRandomEngine(CLHEP::HepRandomEngine* v) override;
56  std::vector<std::string> const& doSharedResources() const override { return theSharedResources; }
57 
58  static const std::vector<std::string> theSharedResources;
59 
60  void add_heavy_ion_rec(HepMC::GenEvent* evt);
61  HepMC::GenParticle* build_hyjet(int index, int barcode);
62  HepMC::GenVertex* build_hyjet_vertex(int i, int id);
63  bool get_particles(HepMC::GenEvent* evt);
64  bool call_hyinit(double energy, double a, int ifb, double bmin, double bmax, double bfix, int nh);
65  bool hydjet_init(const edm::ParameterSet& pset);
66  inline double nuclear_radius() const;
67  void rotateEvtPlane();
68 
71  double abeamtarget_; // beam/target atomic mass number
72  int angularspecselector_; // angular emitted gluon spectrum selection
73  double bfixed_; // fixed impact param (fm); valid only if cflag_=0
74  double bmax_; // max impact param;
75  // units of nucl radius
76  double bmin_; // min impact param;
77  // units of nucl radius
78  int cflag_; // centrality flag
79  // = 0 fixed impact param,
80  // <> 0 between bmin and bmax
81  bool embedding_; // Switch for embedding mode
82  double comenergy; // collision energy
85  double fracsoftmult_; // fraction of soft hydro induced hadronic multiplicity
86  // proportional to no of nucleon participants
87  // (1-fracsoftmult_)--- fraction of soft
88  // multiplicity proportional to the numebr
89  // of nucleon-nucleon binary collisions
90  // DEFAULT=1., allowed range [0.01,1]
91  double hadfreeztemp_; // hadron freez-out temperature
92  // DEFAULT=0.14MeV, allowed ranges [0.08,0.2]MeV
93  std::string hymode_; // Hydjet running mode
94  unsigned int maxEventsToPrint_; // Events to print if verbosity
95  double maxlongy_; // max longitudinal collective rapidity:
96  // controls width of eta-spectra
97  // DEFAULT=4, allowed range [0.01,7.0]
98  double maxtrany_; // max transverse collective rapidity:
99  // controls slope of low-pt spectra
100  // DEFAULT=1.5, allowed range [0.01,3.0]
101  int nsub_; // number of sub-events
102  int nhard_; // multiplicity of PYTHIA(+PYQUEN)-induced particles in event
103  int nmultiplicity_; // mean soft multiplicity in central PbPb
104  // automatically calculated for other centralitie and beams
105  int nsoft_; // multiplicity of HYDRO-induced particles in event
106  unsigned int nquarkflavor_;
107  unsigned int pythiaPylistVerbosity_; // pythia verbosity; def=1
109  double qgpt0_; // initial temperature of QGP
110  // DEFAULT = 1GeV; allowed range [0.2,2.0]GeV;
111  double qgptau0_; // proper time of QGP formation
112  // DEFAULT = 0.1 fm/c; allowed range [0.01,10.0]fm/
113 
114  double phi0_; // Event plane angle
115  double sinphi0_;
116  double cosphi0_;
117  bool rotate_; // Switch to rotate event plane
118 
119  unsigned int shadowingswitch_; // shadowing switcher
120  // 1-ON, 0-OFF
121  double signn_; // inelastic nucleon nucleon cross section [mb]
122  // DEFAULT= 58 mb
123 
126  };
127 
128  double HydjetHadronizer::nuclear_radius() const {
129  // Return the nuclear radius derived from the
130  // beam/target atomic mass number.
131 
132  return 1.15 * pow((double)abeamtarget_, 1. / 3.);
133  }
134 } // namespace gen
135 #endif
HepMC::GenEvent * evt
bool docollisionalenloss_
DEFAULT = true.
std::vector< std::string > const & doSharedResources() const override
unsigned int maxEventsToPrint_
Pythia6Service * pythia6Service_
bool declareSpecialSettings(const std::vector< std::string > &)
double fracsoftmult_
DEFAULT = true.
double a
Definition: hdecay.h:119
edm::ParameterSet pset_
unsigned int shadowingswitch_
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
static const std::vector< std::string > theSharedResources