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

#include "QPrimaryGeneratorAction.hh"

Inheritance diagram for QPrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGun * particleGun
 

Detailed Description

Definition at line 44 of file QPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

QPrimaryGeneratorAction::QPrimaryGeneratorAction ( )

Definition at line 42 of file QPrimaryGeneratorAction.cc.

References particleGun.

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

Definition at line 49 of file QPrimaryGeneratorAction.cc.

References particleGun.

51 {
52  delete particleGun;
53 }

Member Function Documentation

void QPrimaryGeneratorAction::GeneratePrimaries ( G4Event *  anEvent)
virtual

Definition at line 56 of file QPrimaryGeneratorAction.cc.

References particleGun.

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

Definition at line 61 of file QPrimaryGeneratorAction.hh.

References particleGun.

Referenced by BOOST_PYTHON_MODULE().

62 { return particleGun; }

Member Data Documentation

G4ParticleGun* QPrimaryGeneratorAction::particleGun
private

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