CMS 3D CMS Logo

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