CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AMPTHadronizer.h
Go to the documentation of this file.
1 #ifndef AMPTHadronizer_h
2 #define AMPTHadronizer_h
3 
6 #include "CLHEP/Random/RandomEngine.h"
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 #include <math.h>
12 
13 namespace HepMC {
14  class GenEvent;
15  class GenParticle;
16  class GenVertex;
17 }
18 
19 extern CLHEP::HepRandomEngine* _amptRandomEngine;
20 
21 namespace gen
22 {
23 
24  extern "C" {
25  float ranart_(int*);
26  }
27 
28  extern "C" {
29  float ran1_(int*);
30  }
31 
32  class AMPTHadronizer : public BaseHadronizer {
33  public:
35  virtual ~AMPTHadronizer();
36 
38  bool hadronize();
39  bool decay();
40  bool residualDecay();
41  bool readSettings( int ) { return true; }
44  bool declareStableParticles( const std::vector<int>& );
45  bool declareSpecialSettings( const std::vector<std::string>& ) { return true; }
46 
47  void finalizeEvent();
48  void statistics();
49  const char* classname() const;
50 
51  private:
52 
53  void add_heavy_ion_rec(HepMC::GenEvent *evt);
54  HepMC::GenParticle* build_ampt( int index, int barcode );
55  HepMC::GenVertex* build_ampt_vertex(int i, int id);
56  bool get_particles(HepMC::GenEvent* evt);
57  bool ampt_init(const edm::ParameterSet &pset);
58  bool call_amptset(double efrm, std::string frame, std::string proj, std::string targ, int iap, int izp, int iat, int izt);
59  // inline double nuclear_radius() const;
60  void rotateEvtPlane();
61 
62  HepMC::GenEvent *evt;
64  double bmax_; // max impact param;
65  // units of nucl radius
66  double bmin_; // min impact param;
67  // units of nucl radius
68  double efrm_; // collision energy
72  int iap_;
73  int izp_;
74  int iat_;
75  int izt_;
76  int amptmode_;
77  int ntmax_;
78  double dt_;
79  double stringFragA_;
80  double stringFragB_;
82  double popcornpar_;
85  double quenchingpar_;
86  double pthard_;
87  double mu_;
88  int izpc_;
89  double alpha_;
90  double dpcoal_;
91  double drcoal_;
92  bool ks0decay_;
93  bool phidecay_;
97  double minijetpt_;
98  int maxmiss_;
100  int ktkick_;
102  double diquarkpx_;
103  double diquarkpy_;
104  double diquarkx_;
105  double diquarky_;
106  int nsembd_;
107  double psembd_;
108  double tmaxembd_;
111  double phi0_; // Event plane angle
112  double sinphi0_;
113  double cosphi0_;
114  bool rotate_; // Switch to rotate event plane
115  };
116 } /*end namespace*/
117 
118 #endif
bool initializeForExternalPartons()
float ran1_(int *)
int i
Definition: DBlmapReader.cc:9
bool initializeForInternalPartons()
HepMC::GenEvent * evt
CLHEP::HepRandomEngine * _amptRandomEngine
void add_heavy_ion_rec(HepMC::GenEvent *evt)
bool generatePartonsAndHadronize()
AMPTHadronizer(const edm::ParameterSet &)
bool declareStableParticles(const std::vector< int > &)
const char * classname() const
bool call_amptset(double efrm, std::string frame, std::string proj, std::string targ, int iap, int izp, int iat, int izt)
edm::ParameterSet pset_
float ranart_(int *)
bool declareSpecialSettings(const std::vector< std::string > &)
HepMC::GenParticle * build_ampt(int index, int barcode)
bool ampt_init(const edm::ParameterSet &pset)
HepMC::GenVertex * build_ampt_vertex(int i, int id)
bool get_particles(HepMC::GenEvent *evt)