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

#include <geant4/tree/geant4-10.6-release/examples/extended/field/field06/include/F06PrimaryGeneratorAction.hh>

+ Inheritance diagram for F06PrimaryGeneratorAction:
+ Collaboration diagram for F06PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 45 of file F06PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 45 of file F06PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

F06PrimaryGeneratorAction::F06PrimaryGeneratorAction ( void  )

Definition at line 48 of file F06PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 48 of file F06PrimaryGeneratorAction.cc

References CLHEP::c_squared, charge, CLHEP::eplus, G4ParticleTable::FindParticle(), fParticleGun, G4cout, G4endl, G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMagneticMoment(), G4ParticleDefinition::GetPDGMass(), CLHEP::hbar_Planck, particle, and G4ParticleGun::SetParticleDefinition().

+ Here is the call graph for this function:

F06PrimaryGeneratorAction::~F06PrimaryGeneratorAction ( )
virtual

Definition at line 120 of file F06PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 120 of file F06PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void F06PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 127 of file F06PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 127 of file F06PrimaryGeneratorAction.cc

References e, eV, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), phi, pi, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4ParticleGun::SetParticlePolarization(), G4VPrimaryGenerator::SetParticlePosition(), theta(), x, y, and z.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* F06PrimaryGeneratorAction::fParticleGun
private

Definition at line 56 of file F06PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 56 of file F06PrimaryGeneratorAction.hh

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


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