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
hepmc3writer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file hepmc3writer.h
1
2
#ifndef HEPMC3WRITER_H
3
#define HEPMC3WRITER_H
4
5
#include "
inputParameters.h
"
6
#include "
eXevent.h
"
7
#include "HepMC3/WriterAscii.h"
8
#include "HepMC3/FourVector.h"
9
10
using
HepMC3::WriterAscii;
11
using
HepMC3::FourVector;
12
13
class
hepMC3Writer
14
{
15
16
public
:
18
hepMC3Writer
();
19
~hepMC3Writer
();
20
22
int
initWriter
(
const
inputParameters
& param);
23
25
int
writeEvent
(
const
eXEvent
&event,
int
eventnumber);
26
27
/* closes file */
28
void
close
(){
_hepmc3_output
->close(); };
29
30
private
:
31
33
int
initBeamHepMC3
(
const
inputParameters
¶m);
34
35
WriterAscii *
_hepmc3_output
;
36
FourVector
hepmc3_electronBeam_four_vector_
;
37
FourVector
hepmc3_targetBeam_four_vector_
;
38
int
electronBeam_pdg_id_
;
39
int
targetBeam_pdg_id_
;
40
41
};
42
43
#endif // HEPMC3WRITER_H
estarlight
blob
master
include
hepmc3writer.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:38
using
1.8.2 with
EIC GitHub integration