SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
include
LcioEventSource.hh
Go to the documentation of this file.
1
#ifndef SLIC_LCIOEVENTSOURCE_HH_
2
#define SLIC_LCIOEVENTSOURCE_HH_ 1
3
4
// SLIC
5
#include "
EventSourceWithInputFile.hh
"
6
#include "
MCParticleGenerator.hh
"
7
#include "
LcioManager.hh
"
8
9
// LCIO
10
#include "EVENT/LCEvent.h"
11
#include "EVENT/LCCollection.h"
12
#include "IOIMPL/LCFactory.h"
13
#include "IO/LCReader.h"
14
15
namespace
slic
{
16
21
class
LcioEventSource
:
public
EventSourceWithInputFile
{
22
23
public
:
24
28
LcioEventSource
(
const
std::string& fname =
""
);
29
33
virtual
~LcioEventSource
();
34
35
public
:
36
40
void
open
();
41
45
void
close
();
46
50
void
readNextEvent
();
51
55
void
printCurrentEvent
();
56
60
void
generate
(G4Event* anEvent);
61
65
void
beginRun
(
const
G4Run* aRun);
66
70
void
beginEvent
(
const
G4Event* anEvent);
71
72
private
:
73
IO::LCReader*
m_reader
;
74
MCParticleGenerator
*
m_eventGenerator
;
75
};
76
}
77
78
#endif
EventSourceWithInputFile.hh
LcioManager.hh
MCParticleGenerator.hh
slic::EventSourceWithInputFile
An EventSource with an associated input file, such as StdHep or LCIO event files.
Definition:
EventSourceWithInputFile.hh:15
slic::LcioEventSource
Generates events from the MCParticle collection of an LCIO file.
Definition:
LcioEventSource.hh:21
slic::LcioEventSource::m_reader
IO::LCReader * m_reader
Definition:
LcioEventSource.hh:73
slic::LcioEventSource::printCurrentEvent
void printCurrentEvent()
Definition:
LcioEventSource.cc:40
slic::LcioEventSource::close
void close()
Definition:
LcioEventSource.cc:26
slic::LcioEventSource::generate
void generate(G4Event *anEvent)
Definition:
LcioEventSource.cc:45
slic::LcioEventSource::readNextEvent
void readNextEvent()
Definition:
LcioEventSource.cc:33
slic::LcioEventSource::beginEvent
void beginEvent(const G4Event *anEvent)
Definition:
LcioEventSource.cc:54
slic::LcioEventSource::open
void open()
Definition:
LcioEventSource.cc:20
slic::LcioEventSource::~LcioEventSource
virtual ~LcioEventSource()
Definition:
LcioEventSource.cc:15
slic::LcioEventSource::LcioEventSource
LcioEventSource(const std::string &fname="")
Definition:
LcioEventSource.cc:11
slic::LcioEventSource::beginRun
void beginRun(const G4Run *aRun)
Definition:
LcioEventSource.cc:49
slic::LcioEventSource::m_eventGenerator
MCParticleGenerator * m_eventGenerator
Definition:
LcioEventSource.hh:74
slic::MCParticleGenerator
Converts from MCParticle collection into a G4Event.
Definition:
MCParticleGenerator.hh:31
slic
Definition:
CommandLineOption.hh:9
Generated by
1.9.1