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

#include <geant4/tree/geant4-10.6-release/examples/advanced/purging_magnet/include/PurgMagPrimaryGeneratorAction.hh>

+ Inheritance diagram for PurgMagPrimaryGeneratorAction:
+ Collaboration diagram for PurgMagPrimaryGeneratorAction:

Public Member Functions

 PurgMagPrimaryGeneratorAction ()
 
 ~PurgMagPrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *)
 
void SetRndmVertex (G4bool val)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunparticleGun
 
G4bool rndmVertex
 

Detailed Description

Definition at line 51 of file PurgMagPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 51 of file PurgMagPrimaryGeneratorAction.hh

Constructor & Destructor Documentation

PurgMagPrimaryGeneratorAction::PurgMagPrimaryGeneratorAction ( )

Definition at line 57 of file PurgMagPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 57 of file PurgMagPrimaryGeneratorAction.cc

References G4Electron::Definition(), MeV, particle, particleGun, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().

+ Here is the call graph for this function:

PurgMagPrimaryGeneratorAction::~PurgMagPrimaryGeneratorAction ( )

Definition at line 77 of file PurgMagPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 77 of file PurgMagPrimaryGeneratorAction.cc

References particleGun.

Member Function Documentation

void PurgMagPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 84 of file PurgMagPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 84 of file PurgMagPrimaryGeneratorAction.cc

References cm, G4BestUnit, G4cout, G4ParticleGun::GeneratePrimaryVertex(), particleGun, G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.

+ Here is the call graph for this function:

void PurgMagPrimaryGeneratorAction::SetRndmVertex ( G4bool  val)
inline

Definition at line 59 of file PurgMagPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 59 of file PurgMagPrimaryGeneratorAction.hh

References rndmVertex.

Member Data Documentation

G4ParticleGun* PurgMagPrimaryGeneratorAction::particleGun
private

Definition at line 62 of file PurgMagPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 62 of file PurgMagPrimaryGeneratorAction.hh

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

G4bool PurgMagPrimaryGeneratorAction::rndmVertex
private

Definition at line 63 of file PurgMagPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 63 of file PurgMagPrimaryGeneratorAction.hh

Referenced by SetRndmVertex().


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