ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomPrimaryGeneratorAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/medical/DICOM/include/DicomPrimaryGeneratorAction.hh>

+ Inheritance diagram for DicomPrimaryGeneratorAction:
+ Collaboration diagram for DicomPrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 57 of file DicomPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 57 of file DicomPrimaryGeneratorAction.hh

Constructor & Destructor Documentation

DicomPrimaryGeneratorAction::DicomPrimaryGeneratorAction ( )

Definition at line 56 of file DicomPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 56 of file DicomPrimaryGeneratorAction.cc

References fParticleGun.

DicomPrimaryGeneratorAction::~DicomPrimaryGeneratorAction ( )

Definition at line 65 of file DicomPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 65 of file DicomPrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void DicomPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 71 of file DicomPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 71 of file DicomPrimaryGeneratorAction.cc

References dir, G4ParticleTable::FindParticle(), fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4ParticleTable::GetParticleTable(), CLHEP::Hep3Vector::mag(), MeV, particle, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* DicomPrimaryGeneratorAction::fParticleGun
private

Definition at line 66 of file DicomPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 66 of file DicomPrimaryGeneratorAction.hh

Referenced by DicomPrimaryGeneratorAction(), GeneratePrimaries(), and ~DicomPrimaryGeneratorAction().


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