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

#include <geant4/tree/geant4-10.6-release/examples/extended/medical/dna/svalue/include/MyPrimaryGeneratorActionFromFile.hh>

+ Inheritance diagram for MyPrimaryGeneratorActionFromFile:
+ Collaboration diagram for MyPrimaryGeneratorActionFromFile:

Public Member Functions

 MyPrimaryGeneratorActionFromFile ()
 
virtual ~MyPrimaryGeneratorActionFromFile ()
 
virtual G4bool Notify (G4ApplicationState requestedState)
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
G4ParticleGunGetParticleGun () const
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 
- Public Member Functions inherited from G4VStateDependent
 G4VStateDependent (G4bool bottom=false)
 
virtual ~G4VStateDependent ()
 
G4bool operator== (const G4VStateDependent &right) const
 
G4bool operator!= (const G4VStateDependent &right) const
 

Private Attributes

G4ParticleGunfParticleGun
 
const DetectorConstructionfDetector
 

Static Private Attributes

static MyFileReaderfileReader = 0
 

Detailed Description

Definition at line 48 of file MyPrimaryGeneratorActionFromFile.hh.

View newest version in sPHENIX GitHub at line 48 of file MyPrimaryGeneratorActionFromFile.hh

Constructor & Destructor Documentation

MyPrimaryGeneratorActionFromFile::MyPrimaryGeneratorActionFromFile ( )

Definition at line 62 of file MyPrimaryGeneratorActionFromFile.cc.

View newest version in sPHENIX GitHub at line 62 of file MyPrimaryGeneratorActionFromFile.cc

References fDetector, fileReader, G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), G4RunManager::GetRunManager(), G4RunManager::GetUserDetectorConstruction(), MeV, particle, G4ParticleGun::SetParticleDefinition(), and G4ParticleGun::SetParticleEnergy().

+ Here is the call graph for this function:

MyPrimaryGeneratorActionFromFile::~MyPrimaryGeneratorActionFromFile ( )
virtual

Definition at line 82 of file MyPrimaryGeneratorActionFromFile.cc.

View newest version in sPHENIX GitHub at line 82 of file MyPrimaryGeneratorActionFromFile.cc

References G4StateManager::DeregisterDependent(), fileReader, fParticleGun, and G4StateManager::GetStateManager().

+ Here is the call graph for this function:

Member Function Documentation

void MyPrimaryGeneratorActionFromFile::GeneratePrimaries ( G4Event anEvent)
virtual
G4ParticleGun* MyPrimaryGeneratorActionFromFile::GetParticleGun ( void  ) const
inline

Definition at line 60 of file MyPrimaryGeneratorActionFromFile.hh.

View newest version in sPHENIX GitHub at line 60 of file MyPrimaryGeneratorActionFromFile.hh

References fParticleGun.

G4bool MyPrimaryGeneratorActionFromFile::Notify ( G4ApplicationState  requestedState)
virtual

Implements G4VStateDependent.

Definition at line 134 of file MyPrimaryGeneratorActionFromFile.cc.

View newest version in sPHENIX GitHub at line 134 of file MyPrimaryGeneratorActionFromFile.cc

References eV, G4ParticleTable::FindParticle(), fParticleGun, G4State_Idle, G4ParticleTable::GetParticleTable(), particle, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

Member Data Documentation

const DetectorConstruction* MyPrimaryGeneratorActionFromFile::fDetector
private

Definition at line 68 of file MyPrimaryGeneratorActionFromFile.hh.

View newest version in sPHENIX GitHub at line 68 of file MyPrimaryGeneratorActionFromFile.hh

Referenced by GeneratePrimaries(), and MyPrimaryGeneratorActionFromFile().

MyFileReader * MyPrimaryGeneratorActionFromFile::fileReader = 0
staticprivate

Definition at line 66 of file MyPrimaryGeneratorActionFromFile.hh.

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

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

G4ParticleGun* MyPrimaryGeneratorActionFromFile::fParticleGun
private

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