Geant4  10.01.p03
Em10PrimaryGeneratorAction Class Reference

#include <Em10PrimaryGeneratorAction.hh>

+ Inheritance diagram for Em10PrimaryGeneratorAction:
+ Collaboration diagram for Em10PrimaryGeneratorAction:

Public Member Functions

 Em10PrimaryGeneratorAction (Em10DetectorConstruction *)
 
 ~Em10PrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *)
 
void SetRndmFlag (G4String val)
 
void Setxvertex (G4double x)
 
void Setyvertex (G4double y)
 
void Setzvertex (G4double z)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Static Public Member Functions

static G4String GetPrimaryName ()
 

Private Attributes

G4ParticleGunparticleGun
 
Em10PrimaryGeneratorMessengergunMessenger
 
G4String rndmFlag
 
G4double xvertex
 
G4double yvertex
 
G4double zvertex
 
G4bool vertexdefined
 

Static Private Attributes

static G4String thePrimaryParticleName ="proton"
 

Detailed Description

Definition at line 50 of file Em10PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

Em10PrimaryGeneratorAction::Em10PrimaryGeneratorAction ( Em10DetectorConstruction )
Em10PrimaryGeneratorAction::~Em10PrimaryGeneratorAction ( )

Definition at line 89 of file Em10PrimaryGeneratorAction.cc.

References gunMessenger, and particleGun.

Member Function Documentation

void Em10PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 97 of file Em10PrimaryGeneratorAction.cc.

References G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::GetParticleDefinition(), particleGun, G4VPrimaryGenerator::SetParticlePosition(), and thePrimaryParticleName.

+ Here is the call graph for this function:

G4String Em10PrimaryGeneratorAction::GetPrimaryName ( )
static

Definition at line 133 of file Em10PrimaryGeneratorAction.cc.

References thePrimaryParticleName.

void Em10PrimaryGeneratorAction::SetRndmFlag ( G4String  val)
inline

Definition at line 58 of file Em10PrimaryGeneratorAction.hh.

References rndmFlag.

Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void Em10PrimaryGeneratorAction::Setxvertex ( G4double  x)

Definition at line 150 of file Em10PrimaryGeneratorAction.cc.

References G4cout, G4endl, mm, vertexdefined, and xvertex.

Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void Em10PrimaryGeneratorAction::Setyvertex ( G4double  y)

Definition at line 160 of file Em10PrimaryGeneratorAction.cc.

References G4cout, G4endl, mm, vertexdefined, and yvertex.

Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void Em10PrimaryGeneratorAction::Setzvertex ( G4double  z)

Definition at line 140 of file Em10PrimaryGeneratorAction.cc.

References G4cout, G4endl, mm, vertexdefined, z, and zvertex.

Referenced by Em10PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

Em10PrimaryGeneratorMessenger* Em10PrimaryGeneratorAction::gunMessenger
private
G4ParticleGun* Em10PrimaryGeneratorAction::particleGun
private
G4String Em10PrimaryGeneratorAction::rndmFlag
private

Definition at line 70 of file Em10PrimaryGeneratorAction.hh.

Referenced by SetRndmFlag().

G4String Em10PrimaryGeneratorAction::thePrimaryParticleName ="proton"
staticprivate
G4bool Em10PrimaryGeneratorAction::vertexdefined
private

Definition at line 74 of file Em10PrimaryGeneratorAction.hh.

Referenced by Setxvertex(), Setyvertex(), and Setzvertex().

G4double Em10PrimaryGeneratorAction::xvertex
private

Definition at line 73 of file Em10PrimaryGeneratorAction.hh.

Referenced by Em10PrimaryGeneratorAction(), and Setxvertex().

G4double Em10PrimaryGeneratorAction::yvertex
private

Definition at line 73 of file Em10PrimaryGeneratorAction.hh.

Referenced by Em10PrimaryGeneratorAction(), and Setyvertex().

G4double Em10PrimaryGeneratorAction::zvertex
private

Definition at line 73 of file Em10PrimaryGeneratorAction.hh.

Referenced by Em10PrimaryGeneratorAction(), and Setzvertex().


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