PandaRoot
PythiaChiGen.h
Go to the documentation of this file.
1 /*
2  * @author Alexey Luchinsky
3  * @author Stanislav Poslavsky (stvlpos (at) mail.ru)
4  */
5 
6 #ifndef PYTHIAHADRONIZATIONMODEL_H
7 #define PYTHIAHADRONIZATIONMODEL_H
8 
9 #include "ChiGenContext.h"
10 #include "PartonicModel.h"
11 #include "ColorSingletModels.h"
12 #include "EvtGenBase/EvtStdHep.hh"
13 
14 using namespace Pythia8;
15 
16 namespace chigen {
17 
18 class PythiaChiGen {
19  public:
25  PythiaChiGen(PartonicModel &partonicModel, int maxTries = 30, bool doHadronization = true);
26 
27  PartonicModel &getPartonicModel() const { return partonicModel; }
28 
29  virtual ~PythiaChiGen();
34  Event *next();
35 
36  ClassDef(PythiaChiGen, 1);
37 
38  private:
42  double eCM;
46  PartonicModel &partonicModel;
50  int maxTries;
54  double protonPz;
58  bool doHadronization;
62  Vec4 uMomentum, dMomentum;
66  Vec4 ubarMomentum, dbarMomentum;
70  Vec4 mesonMomentum, gluonMomentum;
74  Vec4 boost;
78  EvtStdHep evtstdhep;
86  static int COLORS[];
90  void calculateKinematics();
99  void calculateHadronRemnants(double x, double hadronPz, Vec4 &u, Vec4 &d);
100 
106  void decay(Event &event);
112  void fillColorEvent(Event &event);
113 };
114 } // namespace chigen
115 
116 #endif /* PYTHIAHADRONIZATIONMODEL_H */
Definition: ChiGen.h:12
PartonicModel & getPartonicModel() const
Definition: PythiaChiGen.h:27