LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ParticleGunAction Class Reference

#include "ParticleGunAction.hh"

Inheritance diagram for ParticleGunAction:

Public Member Functions

 ParticleGunAction ()
 
 ~ParticleGunAction ()
 
G4ParticleGun * GetParticleGun () const
 
virtual void GeneratePrimaries (G4Event *anEvent)
 

Private Attributes

G4ParticleGun * particleGun
 

Detailed Description

Definition at line 44 of file ParticleGunAction.hh.

Constructor & Destructor Documentation

ParticleGunAction::ParticleGunAction ( )

Definition at line 42 of file ParticleGunAction.cc.

References particleGun.

44 {
45  particleGun= new G4ParticleGun;
46 }
G4ParticleGun * particleGun
ParticleGunAction::~ParticleGunAction ( )

Definition at line 49 of file ParticleGunAction.cc.

References particleGun.

51 {
52  delete particleGun;
53 }
G4ParticleGun * particleGun

Member Function Documentation

void ParticleGunAction::GeneratePrimaries ( G4Event *  anEvent)
virtual

Definition at line 56 of file ParticleGunAction.cc.

References particleGun.

58 {
59  particleGun-> GeneratePrimaryVertex(anEvent);
60 }
G4ParticleGun * particleGun
G4ParticleGun * ParticleGunAction::GetParticleGun ( ) const
inline

Definition at line 61 of file ParticleGunAction.hh.

References particleGun.

Referenced by BOOST_PYTHON_MODULE().

62 { return particleGun; }
G4ParticleGun * particleGun

Member Data Documentation

G4ParticleGun* ParticleGunAction::particleGun
private

The documentation for this class was generated from the following files: