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

#include <geant4/tree/geant4-10.6-release/examples/extended/eventgenerator/particleGun/include/PrimaryGeneratorAction1.hh>

+ Collaboration diagram for PrimaryGeneratorAction1:

Public Member Functions

 PrimaryGeneratorAction1 (G4ParticleGun *)
 
 ~PrimaryGeneratorAction1 ()
 
void GeneratePrimaries (G4Event *)
 

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Definition at line 45 of file PrimaryGeneratorAction1.hh.

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

Constructor & Destructor Documentation

PrimaryGeneratorAction1::PrimaryGeneratorAction1 ( G4ParticleGun gun)

Definition at line 47 of file PrimaryGeneratorAction1.cc.

View newest version in sPHENIX GitHub at line 47 of file PrimaryGeneratorAction1.cc

PrimaryGeneratorAction1::~PrimaryGeneratorAction1 ( )

Definition at line 53 of file PrimaryGeneratorAction1.cc.

View newest version in sPHENIX GitHub at line 53 of file PrimaryGeneratorAction1.cc

Member Function Documentation

void PrimaryGeneratorAction1::GeneratePrimaries ( G4Event anEvent)

Definition at line 58 of file PrimaryGeneratorAction1.cc.

View newest version in sPHENIX GitHub at line 58 of file PrimaryGeneratorAction1.cc

References alpha, deg, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4PrimaryVertex::GetNext(), G4Event::GetPrimaryVertex(), GeV, keV, MeV, mm, pi, r, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), G4PrimaryVertex::SetT0(), twopi, ux, uy, and z.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* PrimaryGeneratorAction1::fParticleGun
private

Definition at line 55 of file PrimaryGeneratorAction1.hh.

View newest version in sPHENIX GitHub at line 55 of file PrimaryGeneratorAction1.hh

Referenced by GeneratePrimaries().


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