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

Constructor & Destructor Documentation

QPrimaryGeneratorAction::QPrimaryGeneratorAction ( )

Definition at line 41 of file QPrimaryGeneratorAction.cc.

References particleGun.

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

Definition at line 48 of file QPrimaryGeneratorAction.cc.

References particleGun.

50 {
51  delete particleGun;
52 }

Member Function Documentation

void QPrimaryGeneratorAction::GeneratePrimaries ( G4Event *  anEvent)
virtual

Definition at line 55 of file QPrimaryGeneratorAction.cc.

References particleGun.

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

Definition at line 60 of file QPrimaryGeneratorAction.hh.

References particleGun.

Referenced by BOOST_PYTHON_MODULE().

61 { return particleGun; }

Member Data Documentation

G4ParticleGun* QPrimaryGeneratorAction::particleGun
private

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