LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 43 of file ParticleGunAction.hh.

Constructor & Destructor Documentation

ParticleGunAction::ParticleGunAction ( )

Definition at line 41 of file ParticleGunAction.cc.

References particleGun.

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

Definition at line 48 of file ParticleGunAction.cc.

References particleGun.

50 {
51  delete particleGun;
52 }
G4ParticleGun * particleGun

Member Function Documentation

void ParticleGunAction::GeneratePrimaries ( G4Event *  anEvent)
virtual

Definition at line 55 of file ParticleGunAction.cc.

References particleGun.

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

Definition at line 60 of file ParticleGunAction.hh.

References particleGun.

Referenced by BOOST_PYTHON_MODULE().

61 { return particleGun; }
G4ParticleGun * particleGun

Member Data Documentation

G4ParticleGun* ParticleGunAction::particleGun
private

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