HepMC3 event record library
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
examples
ConvertExample
include
WriterRootTreeOPAL.h
1
#ifndef HEPMC3_WRITERROOTTREEOPAL_H
2
#define HEPMC3_WRITERROOTTREEOPAL_H
3
#include "
HepMC3/WriterRootTree.h
"
4
#include "
HepMC3/GenEvent.h
"
5
#include "
HepMC3/GenParticle.h
"
6
#include "
HepMC3/Data/GenEventData.h
"
7
namespace
HepMC3
8
{
9
class
WriterRootTreeOPAL
:
public
WriterRootTree
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
GenParticle.h
Definition of class GenParticle.
HepMC3::WriterRootTreeOPAL
Definition:
WriterRootTreeOPAL.h:9
WriterRootTree.h
Definition of class WriterRootTree.
HepMC3::WriterRootTreeOPAL::write_event
void write_event(const GenEvent &evt)
Write event evt to output target.
Definition:
WriterRootTreeOPAL.cc:14
GenEventData.h
Definition of struct GenEventData.
HepMC3::GenEvent
Stores event-related information.
Definition:
GenEvent.h:42
HepMC3::WriterRootTree
GenEvent I/O serialization for root files based on root TTree.
Definition:
WriterRootTree.h:38
GenEvent.h
Definition of class GenEvent.
Generated on Fri Apr 5 2019 18:28:27 for HepMC3 event record library by
1.8.5