Geant4  10.00.p01
eRositaPrimaryGeneratorAction Class Reference

#include <eRositaPrimaryGeneratorAction.hh>

+ Inheritance diagram for eRositaPrimaryGeneratorAction:
+ Collaboration diagram for eRositaPrimaryGeneratorAction:

Public Member Functions

 eRositaPrimaryGeneratorAction (eRositaDetectorConstruction *)
 
 ~eRositaPrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunparticleGun
 
eRositaDetectorConstructionmyDetector
 
G4double xposition
 
G4double yposition
 
G4double zposition
 
G4double xdirection
 
G4double ydirection
 
G4double zdirection
 

Detailed Description

Definition at line 44 of file eRositaPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

eRositaPrimaryGeneratorAction::eRositaPrimaryGeneratorAction ( eRositaDetectorConstruction myDC)

Definition at line 44 of file eRositaPrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), G4ParticleTable::GetParticleTable(), MeV, particleGun, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), xdirection, ydirection, and zdirection.

+ Here is the call graph for this function:

eRositaPrimaryGeneratorAction::~eRositaPrimaryGeneratorAction ( )

Definition at line 69 of file eRositaPrimaryGeneratorAction.cc.

References particleGun.

Member Function Documentation

void eRositaPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 76 of file eRositaPrimaryGeneratorAction.cc.

References cm, G4ParticleGun::GeneratePrimaryVertex(), particleGun, G4VPrimaryGenerator::SetParticlePosition(), xposition, yposition, and zposition.

+ Here is the call graph for this function:

Member Data Documentation

eRositaDetectorConstruction* eRositaPrimaryGeneratorAction::myDetector
private

Definition at line 55 of file eRositaPrimaryGeneratorAction.hh.

G4ParticleGun* eRositaPrimaryGeneratorAction::particleGun
private
G4double eRositaPrimaryGeneratorAction::xdirection
private

Definition at line 61 of file eRositaPrimaryGeneratorAction.hh.

Referenced by eRositaPrimaryGeneratorAction().

G4double eRositaPrimaryGeneratorAction::xposition
private

Definition at line 57 of file eRositaPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4double eRositaPrimaryGeneratorAction::ydirection
private

Definition at line 62 of file eRositaPrimaryGeneratorAction.hh.

Referenced by eRositaPrimaryGeneratorAction().

G4double eRositaPrimaryGeneratorAction::yposition
private

Definition at line 58 of file eRositaPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4double eRositaPrimaryGeneratorAction::zdirection
private

Definition at line 63 of file eRositaPrimaryGeneratorAction.hh.

Referenced by eRositaPrimaryGeneratorAction().

G4double eRositaPrimaryGeneratorAction::zposition
private

Definition at line 59 of file eRositaPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().


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