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
JetScapeWriter.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file JetScapeWriter.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
// generic jetscape writer base clase
17
18
#ifndef JETSCAPEWRITER_H
19
#define JETSCAPEWRITER_H
20
21
#include <string>
22
#include "
JetScapeModuleBase.h
"
23
#include "
PartonShower.h
"
24
#include "
JetClass.h
"
25
#include "
JetScapeEventHeader.h
"
26
27
using
std::to_string
;
28
29
namespace
Jetscape {
30
31
class
JetScapeWriter
:
public
JetScapeModuleBase
{
32
33
public
:
34
JetScapeWriter
(){
SetId
(
"JetScape writer"
); };
35
JetScapeWriter
(
string
m_file_name_out) {
file_name_out
= m_file_name_out; }
36
virtual
~JetScapeWriter
(){};
37
38
void
SetOutputFileName
(
string
m_file_name_out) {
39
file_name_out
= m_file_name_out;
40
}
41
string
GetOutputFileName
() {
return
file_name_out
; }
42
43
virtual
bool
GetStatus
() = 0;
44
virtual
void
Close
(){};
45
virtual
void
Open
(){};
46
47
virtual
void
WriteInitFileXML
(){};
48
virtual
void
Write
(weak_ptr<Parton>
p
){};
49
virtual
void
Write
(weak_ptr<Jet>
j
){};
50
virtual
void
Write
(weak_ptr<Vertex>
v
){};
51
virtual
void
Write
(weak_ptr<PartonShower>
ps
){};
52
virtual
void
Write
(
string
s
){};
53
virtual
void
WriteComment
(
string
s
){};
54
virtual
void
WriteWhiteSpace
(
string
s
){};
55
virtual
void
Write
(ostream *o){};
56
virtual
void
Write
(weak_ptr<Hadron>
h
){};
57
59
virtual
void
WriteHeaderToFile
(){};
60
62
virtual
void
WriteEvent
(){};
63
64
virtual
JetScapeEventHeader
&
GetHeader
() {
return
header
; };
65
66
protected
:
67
string
file_name_out
;
68
JetScapeEventHeader
header
;
69
};
70
71
}
// end namespace Jetscape
72
73
#endif
JETSCAPE
blob
main
src
framework
JetScapeWriter.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:24
using
1.8.2 with
sPHENIX GitHub integration