EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
eventfilewriter.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file eventfilewriter.h
1
2
//
3
// Copyright 2010
4
//
5
// This file is part of starlight.
6
//
7
// starlight is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// starlight is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with starlight. If not, see <http://www.gnu.org/licenses/>.
19
//
21
//
22
// File and Version Information:
23
// $Rev:: 97 $: revision of last commit
24
// $Author:: odjuvsla $: author of last commit
25
// $Date:: 2012-10-22 22:25:35 +0100 #$: date of last commit
26
//
27
// Description:
28
//
29
//
30
//
32
33
34
#ifndef EVENTFILEWRITER_H
35
#define EVENTFILEWRITER_H
36
37
#ifdef HEPMC3_ON
38
class
hepMC3Writer
;
39
#endif
40
41
#include <string>
42
43
#include "
filewriter.h
"
44
#include "
inputParameters.h
"
45
46
class
eventFileWriter
:
public
fileWriter
47
{
48
public
:
49
51
eventFileWriter
();
52
54
eventFileWriter
(std::string
filename
);
55
57
int
writeInit
(
inputParameters
¶m );
58
60
int
writeInitLUND
(
inputParameters
¶m );
61
63
int
writeEvent
(
eXEvent
&event,
int
eventnumber);
64
66
int
writeEventLUND
(
eXEvent
&event,
int
eventnumber);
67
69
void
writeFullPythiaInfo
(
bool
v
) {
_writeFullPythia
=
v
; }
70
72
void
writeFullHepMC3Info
(
bool
v
) {
_writeFullHepMC3
=
v
; }
73
75
//void writeFullLUNDInfo(bool v) { _writeFullLUND = v; }
76
78
int
close
();
79
80
private
:
81
82
bool
_writeFullPythia
;
83
bool
_writeFullHepMC3
;
84
85
//Define Four Vectors
86
std::vector<double>
_electronBeam_four_vector_
;
87
std::vector<double>
_targetBeam_four_vector_
;
88
int
_electronBeam_pdg_id_
;
89
int
_targetBeam_pdg_id_
;
90
91
#ifdef HEPMC3_ON
92
hepMC3Writer
* _hepmc3writer;
93
#endif
94
95
};
96
97
98
#endif // EVENTFILEWRITER_H
estarlight
blob
master
include
eventfilewriter.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:38
using
1.8.2 with
EIC GitHub integration