HepMC3 event record library
WriterRootTreeOPAL.h
1 #ifndef HEPMC3_WRITERROOTTREEOPAL_H
2 #define HEPMC3_WRITERROOTTREEOPAL_H
4 #include "HepMC3/GenEvent.h"
5 #include "HepMC3/GenParticle.h"
7 namespace HepMC3
8 {
10 {
11 public:
12  WriterRootTreeOPAL(const std::string &filename,shared_ptr<GenRunInfo> run = shared_ptr<GenRunInfo>());
13  void init_branches();
14  void write_event(const GenEvent &evt);
15  void set_run_number(const int nr);
16 private:
17  float m_Ebeam;
18  int m_Irun;
19  int m_Ievnt;
20 };
21 }
22 #endif
Definition of class GenParticle.
Definition of class WriterRootTree.
void write_event(const GenEvent &evt)
Write event evt to output target.
Definition of struct GenEventData.
Stores event-related information.
Definition: GenEvent.h:42
GenEvent I/O serialization for root files based on root TTree.
Definition of class GenEvent.