HepMC event record
WriterRootTreeOPAL.h
1 #ifndef HEPMC_WRITERROOTTREEOPAL_H
2 #define HEPMC_WRITERROOTTREEOPAL_H
3 #include "HepMC/WriterRootTree.h"
4 #include "HepMC/GenEvent.h"
5 #include "HepMC/GenParticle.h"
6 #include "HepMC/Data/GenEventData.h"
7 namespace HepMC
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_t m_Ebeam;
18  Int_t m_Irun;
19  Int_t m_Ievnt;
20 };
21 }
22 #endif
Definition of class WriterRootTree.
void write_event(const GenEvent &evt)
Write event evt to output target.
Stores event-related information.
GenEvent I/O serialization for root files based on root TTree.
Definition of template class SmartPointer.