Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
27
class
PartonPrinter
:
public
JetScapeModuleBase
{
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
37
dist_output
;
38
39
void
GetFinalPartons
(
shared_ptr<PartonShower>
40
pShower
/*, vector<shared_ptr<Parton>>& fPartons*/
);
41
42
void
GetFinalPartons2
(
shared_ptr<PartonShower>
pShower);
43
44
void
GetPartonsAtTime
(
shared_ptr<PartonShower>
pShower,
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.
55
static
RegisterJetScapeModule<PartonPrinter>
reg
;
56
};
57
58
}
// end namespace Jetscape
59
60
#endif
JETSCAPE
blob
main
src
jet
PartonPrinter.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:25
using
1.8.2 with
sPHENIX GitHub integration