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

#include <geant4/tree/geant4-10.6-release/examples/extended/runAndEvent/RE04/include/RE04PrimaryGeneratorAction.hh>

+ Inheritance diagram for RE04PrimaryGeneratorAction:
+ Collaboration diagram for RE04PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

User primary particle generator class

  • void GeneratePrimaries(G4Event*) an incident particle is mu- with 10 GeV energy at the position (-75 cm,y,0) toward the (1,0,0) direction. The y position is uniformly varied from 95.5 cm to 96.5 cm.

Definition at line 47 of file RE04PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 47 of file RE04PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

RE04PrimaryGeneratorAction::RE04PrimaryGeneratorAction ( )

Definition at line 40 of file RE04PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 40 of file RE04PrimaryGeneratorAction.cc

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

+ Here is the call graph for this function:

RE04PrimaryGeneratorAction::~RE04PrimaryGeneratorAction ( )
virtual

Definition at line 59 of file RE04PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 59 of file RE04PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void RE04PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 65 of file RE04PrimaryGeneratorAction.cc.

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

References cm, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4VPrimaryGenerator::SetParticlePosition(), and y.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* RE04PrimaryGeneratorAction::fParticleGun
private

Definition at line 57 of file RE04PrimaryGeneratorAction.hh.

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

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


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