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

#include <geant4/tree/geant4-10.6-release/examples/extended/eventgenerator/userPrimaryGenerator/include/PrimaryGenerator.hh>

+ Inheritance diagram for PrimaryGenerator:
+ Collaboration diagram for PrimaryGenerator:

Public Member Functions

 PrimaryGenerator ()
 
 ~PrimaryGenerator ()
 
virtual void GeneratePrimaryVertex (G4Event *)
 
- Public Member Functions inherited from G4VPrimaryGenerator
 G4VPrimaryGenerator ()
 
virtual ~G4VPrimaryGenerator ()
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 
void SetParticleTime (G4double aTime)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPrimaryGenerator
static G4bool CheckVertexInsideWorld (const G4ThreeVector &pos)
 
- Protected Attributes inherited from G4VPrimaryGenerator
G4ThreeVector particle_position
 
G4double particle_time
 

Detailed Description

Definition at line 43 of file PrimaryGenerator.hh.

View newest version in sPHENIX GitHub at line 43 of file PrimaryGenerator.hh

Constructor & Destructor Documentation

PrimaryGenerator::PrimaryGenerator ( )

Definition at line 47 of file PrimaryGenerator.cc.

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

PrimaryGenerator::~PrimaryGenerator ( )

Definition at line 53 of file PrimaryGenerator.cc.

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

Member Function Documentation

void PrimaryGenerator::GeneratePrimaryVertex ( G4Event event)
virtual

Implements G4VPrimaryGenerator.

Definition at line 58 of file PrimaryGenerator.cc.

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

References alpha, deg, G4ParticleTable::FindParticle(), G4UniformRand, G4ParticleTable::GetParticleTable(), GeV, keV, MeV, mm, pi, r, G4PrimaryParticle::SetKineticEnergy(), G4PrimaryParticle::SetMomentumDirection(), G4PrimaryVertex::SetPrimary(), twopi, ux, uy, and z.

+ Here is the call graph for this function:


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