Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColoredHadronization.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ColoredHadronization.h
1 /*******************************************************************************
2  * Copyright (c) The JETSCAPE Collaboration, 2018
3  *
4  * Modular, task-based framework for simulating all aspects of heavy-ion collisions
5  *
6  * For the list of contributors see AUTHORS.
7  *
8  * Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
9  *
10  * or via email to bugs.jetscape@gmail.com
11  *
12  * Distributed under the GNU General Public License 3.0 (GPLv3 or later).
13  * See COPYING for details.
14  ******************************************************************************/
15 
16 #ifndef COLOREDHADRONIZATION_H
17 #define COLOREDHADRONIZATION_H
18 
19 #include "HadronizationModule.h"
20 #include "Pythia8/Pythia.h"
21 
22 using namespace Jetscape;
23 
24 class ColoredHadronization : public HadronizationModule<ColoredHadronization> {
25 public:
27  virtual ~ColoredHadronization();
28 
29  void Init();
30  void DoHadronization(vector<vector<shared_ptr<Parton>>> &shower,
31  vector<shared_ptr<Hadron>> &hOut,
32  vector<shared_ptr<Parton>> &pOut);
33  void WriteTask(weak_ptr<JetScapeWriter> w);
34 
35 private:
36  double p_fake;
37 
38  // Allows the registration of the module so that it is available to be used by the Jetscape framework.
40 
41 protected:
42  static Pythia8::Pythia pythia;
43 };
44 
45 #endif // COLOREDHADRONIZATION_H