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

#include <geant4/tree/geant4-10.6-release/examples/basic/B4/B4a/include/B4PrimaryGeneratorAction.hh>

+ Inheritance diagram for B4PrimaryGeneratorAction:
+ Collaboration diagram for B4PrimaryGeneratorAction:

Public Member Functions

 B4PrimaryGeneratorAction ()
 
virtual ~B4PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *event)
 
void SetRandomFlag (G4bool value)
 
 B4PrimaryGeneratorAction ()
 
virtual ~B4PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *event)
 
void SetRandomFlag (G4bool value)
 
 B4PrimaryGeneratorAction ()
 
virtual ~B4PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *event)
 
void SetRandomFlag (G4bool value)
 
 B4PrimaryGeneratorAction ()
 
virtual ~B4PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *event)
 
void SetRandomFlag (G4bool value)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

The primary generator action class with particle gum.

It defines a single particle which hits the calorimeter perpendicular to the input face. The type of the particle can be changed via the G4 build-in commands of G4ParticleGun class (see the macros provided with this example).

Definition at line 46 of file B4PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 46 of file B4PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

B4PrimaryGeneratorAction::B4PrimaryGeneratorAction ( )

Definition at line 45 of file B4PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 45 of file B4PrimaryGeneratorAction.cc

References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), MeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().

+ Here is the call graph for this function:

B4PrimaryGeneratorAction::~B4PrimaryGeneratorAction ( )
virtual

Definition at line 63 of file B4PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 63 of file B4PrimaryGeneratorAction.cc

References fParticleGun.

B4PrimaryGeneratorAction::B4PrimaryGeneratorAction ( )
virtual B4PrimaryGeneratorAction::~B4PrimaryGeneratorAction ( )
virtual
B4PrimaryGeneratorAction::B4PrimaryGeneratorAction ( )
virtual B4PrimaryGeneratorAction::~B4PrimaryGeneratorAction ( )
virtual
B4PrimaryGeneratorAction::B4PrimaryGeneratorAction ( )
virtual B4PrimaryGeneratorAction::~B4PrimaryGeneratorAction ( )
virtual

Member Function Documentation

void B4PrimaryGeneratorAction::GeneratePrimaries ( G4Event event)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 70 of file B4PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 70 of file B4PrimaryGeneratorAction.cc

References fParticleGun, G4endl, G4Exception(), G4ParticleGun::GeneratePrimaryVertex(), G4LogicalVolumeStore::GetInstance(), G4LogicalVolumeStore::GetVolume(), G4Box::GetZHalfLength(), JustWarning, and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

virtual void B4PrimaryGeneratorAction::GeneratePrimaries ( G4Event event)
virtual
virtual void B4PrimaryGeneratorAction::GeneratePrimaries ( G4Event event)
virtual
virtual void B4PrimaryGeneratorAction::GeneratePrimaries ( G4Event event)
virtual
void B4PrimaryGeneratorAction::SetRandomFlag ( G4bool  value)
void B4PrimaryGeneratorAction::SetRandomFlag ( G4bool  value)
void B4PrimaryGeneratorAction::SetRandomFlag ( G4bool  value)
void B4PrimaryGeneratorAction::SetRandomFlag ( G4bool  value)

Member Data Documentation

G4ParticleGun * B4PrimaryGeneratorAction::fParticleGun
private

Definition at line 58 of file B4PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 58 of file B4PrimaryGeneratorAction.hh

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


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