SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
EventSource.cc
Go to the documentation of this file.
1 #include "EventSource.hh"
2 
3 // Geant4
4 #include "G4Run.hh"
5 #include "G4Event.hh"
6 
7 namespace slic {
8 
10 }
11 
12 EventSource::EventSource(const std::string& name) :
13  Module(name), m_name(name), nEventsGenerated(0) {
14 }
15 
17  // no-op -- implement if generator can be reset to event 0 or new file/source
18 }
19 
20 unsigned int EventSource::skipEvents(unsigned int) {
21  // no-op -- implement if generator can "skip" an event
22  return 0;
23 }
24 
25 void EventSource::beginEvent(const G4Event*) {
26  // no-op -- implement if generator has an action at beginning of event
27 }
28 
29 void EventSource::endEvent(const G4Event*) {
30  // no-op -- implement if generator has an action at end of event
31 }
32 
33 void EventSource::beginRun(const G4Run*) {
34  // no-op -- implement if generator has an action at beginning of run
35 }
36 
37 void EventSource::endRun(const G4Run*) {
38  // no-op -- implement if generator has an action at end of run
39 }
40 }
virtual void endRun(const G4Run *run)
Definition: EventSource.cc:37
EventSource(const std::string &name)
Definition: EventSource.cc:12
virtual unsigned int skipEvents(unsigned int n)
Definition: EventSource.cc:20
virtual void beginRun(const G4Run *run)
Definition: EventSource.cc:33
virtual ~EventSource()
Definition: EventSource.cc:9
virtual void beginEvent(const G4Event *event)
Definition: EventSource.cc:25
virtual void reset()
Definition: EventSource.cc:16
virtual void endEvent(const G4Event *event)
Definition: EventSource.cc:29
Base class for slic code modules that provides common functionality, such as logging to an output str...
Definition: Module.hh:25
@ name
Definition: LogStream.hh:26