PandaRoot
PythiaChiGen.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * @author Alexey Luchinsky
15  * @author Stanislav Poslavsky (stvlpos (at) mail.ru)
16  */
17 
18 #ifndef PYTHIAHADRONIZATIONMODEL_H
19 #define PYTHIAHADRONIZATIONMODEL_H
20 
21 #include "ChiGenContext.h"
22 #include "PartonicModel.h"
23 #include "ColorSingletModels.h"
24 #include "EvtGenBase/EvtStdHep.hh"
25 
26 using namespace Pythia8;
27 
28 namespace chigen {
29 
30 class PythiaChiGen {
31  public:
37  PythiaChiGen(PartonicModel &partonicModel, int maxTries = 30, bool doHadronization = true);
38 
39  PartonicModel &getPartonicModel() const { return partonicModel; }
40 
41  virtual ~PythiaChiGen();
46  Event *next();
47 
48  ClassDef(PythiaChiGen, 1);
49 
50  private:
54  double eCM;
58  PartonicModel &partonicModel;
62  int maxTries;
66  double protonPz;
70  bool doHadronization;
74  Vec4 uMomentum, dMomentum;
78  Vec4 ubarMomentum, dbarMomentum;
82  Vec4 mesonMomentum, gluonMomentum;
86  Vec4 boost;
90  EvtStdHep evtstdhep;
98  static int COLORS[];
102  void calculateKinematics();
111  void calculateHadronRemnants(double x, double hadronPz, Vec4 &u, Vec4 &d);
112 
118  void decay(Event &event);
124  void fillColorEvent(Event &event);
125 };
126 } // namespace chigen
127 
128 #endif /* PYTHIAHADRONIZATIONMODEL_H */
Definition: ChiGen.h:24
PartonicModel & getPartonicModel() const
Definition: PythiaChiGen.h:39