SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
GPSEventSource.hh
Go to the documentation of this file.
1 #ifndef SLIC_GPSEVENTSOURCE_HH_
2 #define SLIC_GPSEVENTSOURCE_HH_ 1
3 
4 // SLIC
5 #include "EventSource.hh"
6 
7 // Geant4
8 #include "G4GeneralParticleSource.hh"
9 
10 namespace slic {
11 
16 class GPSEventSource: public EventSource {
17 
18  public:
19 
24 
28  virtual ~GPSEventSource();
29 
30  public:
31 
36  void generate(G4Event* event);
37 
41  void printCurrentEvent();
42 
47  G4GeneralParticleSource* getGPS();
48 
49  private:
50 
55 
56  private:
57 
58  G4GeneralParticleSource* m_generator;
59 
60 };
61 }
62 
63 #endif
The virtual base class for a physics event source such as a StdHep file.
Definition: EventSource.hh:19
Wrapper for Geant4's general particle source.
G4GeneralParticleSource * getGPS()
G4GeneralParticleSource * m_generator
void generate(G4Event *event)