EIC Software
 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 
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 &param);
34 
35  WriterAscii * _hepmc3_output;
40 
41 };
42 
43 #endif // HEPMC3WRITER_H