SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
ParticleGunEventSource.hh
Go to the documentation of this file.
1 #ifndef SLIC_PARTICLEGUNEVENTSOURCE_HH_
2 #define SLIC_PARTICLEGUNEVENTSOURCE_HH_ 1
3 
4 // slic
5 #include "EventSource.hh"
6 
7 // geant4
8 #include "G4ParticleGun.hh"
9 
10 namespace slic {
11 
17 
18  public:
19 
24 
28  virtual ~ParticleGunEventSource();
29 
30  public:
31 
36  virtual void generate(G4Event* event);
37 
41  void printCurrentEvent();
42 
47  G4ParticleGun* getParticleGun();
48 
49  private:
50  G4ParticleGun* m_generator;
51 };
52 }
53 
54 #endif
The virtual base class for a physics event source such as a StdHep file.
Definition: EventSource.hh:19
Wrapper for the Geant4 particle gun.
virtual void generate(G4Event *event)