File: WriterRootTreeOPAL.h

package info (click to toggle)
hepmc3 3.1.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,124 kB
  • sloc: fortran: 66,849; cpp: 13,604; ansic: 1,374; xml: 109; sh: 72; makefile: 33
file content (35 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef HEPMC3_WRITERROOTTREEOPAL_H
#define HEPMC3_WRITERROOTTREEOPAL_H
///
/// @file  WriterRootTreeOPAL.h
/// @brief Definition of class \b WriterRootTreeOPAL
///
/// @class HepMC3::WriterRootTreeOPAL
/// @brief GenEvent I/O output to files similar to these produced by OPAL software
///
/// @ingroup Examples
///
#include "HepMC3/WriterRootTree.h"
#include "HepMC3/GenEvent.h"
#include "HepMC3/GenParticle.h"
#include "HepMC3/Data/GenEventData.h"
namespace HepMC3
{
class WriterRootTreeOPAL : public WriterRootTree
{
public:
    /** @brief Constructor */
    WriterRootTreeOPAL(const std::string &filename,shared_ptr<GenRunInfo> run = shared_ptr<GenRunInfo>());
    /** @brief Init ROOT branches */
    void init_branches();
    /** @brief Write event */
    void write_event(const GenEvent &evt);
    /** @brief Set run number */
    void set_run_number(const int nr);
private:
    float  m_Ebeam; ///< Beam energy in GEV
    int    m_Irun;  ///< Run number
    int    m_Ievnt; ///< Event number
};
}
#endif