Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColorlessHadronization.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ColorlessHadronization.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 COLORLESSHADRONIZATION_H
17 #define COLORLESSHADRONIZATION_H
18 
19 #include "HadronizationModule.h"
20 #include "JetScapeLogger.h"
21 #include "Pythia8/Pythia.h"
22 
23 using namespace Jetscape;
24 
26  : public HadronizationModule<ColorlessHadronization> {
27 public:
29  virtual ~ColorlessHadronization();
30 
31  void Init();
32  void DoHadronization(vector<vector<shared_ptr<Parton>>> &shower,
33  vector<shared_ptr<Hadron>> &hOut,
34  vector<shared_ptr<Parton>> &pOut);
35  void WriteTask(weak_ptr<JetScapeWriter> w);
36 
37 private:
38  double p_fake;
40 
41  // Allows the registration of the module so that it is available to be used by the Jetscape framework.
43 
44 protected:
45  static Pythia8::Pythia pythia;
46  std::uniform_real_distribution<double> ZeroOneDistribution;
47 };
48 
49 #endif // COLORLESSHADRONIZATION_H