Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PartonPrinter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PartonPrinter.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 PARTONPRINTER_H
17 #define PARTONPRINTER_H
18 
19 #include "JetScapeModuleBase.h"
20 #include "PartonShower.h"
21 #include <vector>
22 #include <string>
23 #include <fstream>
24 
25 namespace Jetscape {
26 
28 
29 public:
30  PartonPrinter();
31  virtual ~PartonPrinter();
32 
33  virtual void Init();
34  virtual void Exec() final;
35  virtual void Clear();
36  std::ofstream
38 
40  pShower /*, vector<shared_ptr<Parton>>& fPartons*/);
41 
43 
45  vector<shared_ptr<Parton>> &fPartons, double time);
46 
47  void PrintFinalPartons(vector<vector<shared_ptr<Parton>>> &fPartons) {
48  fPartons = pFinals;
49  };
50 
51 private:
52  vector<vector<shared_ptr<Parton>>> pFinals;
53 
54  // Allows the registration of the module so that it is available to be used by the Jetscape framework.
56 };
57 
58 } // end namespace Jetscape
59 
60 #endif