|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Wrapper for the Geant4 particle gun. More...
#include <ParticleGunEventSource.hh>
Public Member Functions | |
| ParticleGunEventSource () | |
| virtual | ~ParticleGunEventSource () |
| virtual void | generate (G4Event *event) |
| G4ParticleGun * | getParticleGun () |
| void | printCurrentEvent () |
Public Member Functions inherited from EventSource | |
| virtual | ~EventSource () |
| virtual void | beginEvent (const G4Event *event) |
| virtual void | beginRun (const G4Run *run) |
| virtual void | endEvent (const G4Event *event) |
| virtual void | endRun (const G4Run *run) |
| virtual void | reset () |
| virtual unsigned int | skipEvents (unsigned int n) |
Public Member Functions inherited from Module | |
| virtual | ~Module () |
| virtual void | cleanup () |
| bool | deleteOnExit () |
| const std::string & | getName () const |
| ModuleStatus | getStatus () const |
| virtual void | initialize () |
| LogStream & | log () |
| virtual void | postTracking (const G4Track *) |
| virtual void | preTracking (const G4Track *) |
| virtual void | stepping (const G4Step *) |
Private Attributes | |
| G4ParticleGun * | m_generator |
Additional Inherited Members | |
Public Types inherited from Module | |
| enum | ModuleStatus { eOkay = 0 , eNotInitialized = 1 , eBadState = 2 , eFatalError = 3 } |
Public Attributes inherited from Module | |
| bool | m_deleteOnExit |
| LogStream * | m_log |
| std::string | m_name |
| ModuleStatus | m_status |
Protected Member Functions inherited from EventSource | |
| EventSource (const std::string &name) | |
Protected Member Functions inherited from Module | |
| Module (const std::string &name, bool deleteOnExit=true, bool autoRegister=true) | |
Wrapper for the Geant4 particle gun.
Definition at line 16 of file ParticleGunEventSource.hh.
Class constructor.
Definition at line 8 of file ParticleGunEventSource.cc.
References ParticleGunEventSource::m_generator.
|
virtual |
Class destructor.
Definition at line 13 of file ParticleGunEventSource.cc.
References ParticleGunEventSource::m_generator.
|
virtual |
Generate an event.
| [in] | event | The target G4Event to fill. |
Implements EventSource.
Definition at line 17 of file ParticleGunEventSource.cc.
References ParticleGunEventSource::m_generator.
| G4ParticleGun * getParticleGun | ( | ) |
Get the associated G4ParticleGun.
Definition at line 34 of file ParticleGunEventSource.cc.
References ParticleGunEventSource::m_generator.
Referenced by EventSourceManager::getParticleGun().
|
virtual |
Dump information on the current event to the log.
Implements EventSource.
Definition at line 21 of file ParticleGunEventSource.cc.
References LOG::done, Module::log(), ParticleGunEventSource::m_generator, and LOG::okay.
|
private |