Geant4  10.02.p01
F02PrimaryGeneratorAction Class Reference

#include <F02PrimaryGeneratorAction.hh>

+ Inheritance diagram for F02PrimaryGeneratorAction:
+ Collaboration diagram for F02PrimaryGeneratorAction:

Public Member Functions

 F02PrimaryGeneratorAction (F02DetectorConstruction *)
 
virtual ~F02PrimaryGeneratorAction ()
 
virtual 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

G4ParticleGunfParticleGun
 
F02DetectorConstructionfDetector
 
F02PrimaryGeneratorMessengerfGunMessenger
 
G4String fRndmFlag
 
G4double fXVertex
 
G4double fYVertex
 
G4double fZVertex
 
G4bool fVertexDefined
 

Static Private Attributes

static G4ParticleDefinitionfgPrimaryParticle = 0
 

Detailed Description

Definition at line 50 of file F02PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

F02PrimaryGeneratorAction::F02PrimaryGeneratorAction ( F02DetectorConstruction det)
F02PrimaryGeneratorAction::~F02PrimaryGeneratorAction ( )
virtual

Definition at line 94 of file F02PrimaryGeneratorAction.cc.

References fGunMessenger, and fParticleGun.

Member Function Documentation

void F02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual
G4String F02PrimaryGeneratorAction::GetPrimaryName ( )
static

Definition at line 137 of file F02PrimaryGeneratorAction.cc.

References fgPrimaryParticle, and G4ParticleDefinition::GetParticleName().

+ Here is the call graph for this function:

void F02PrimaryGeneratorAction::SetRndmFlag ( G4String  val)
inline

Definition at line 58 of file F02PrimaryGeneratorAction.hh.

References fRndmFlag.

Referenced by F02PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void F02PrimaryGeneratorAction::SetXVertex ( G4double  x)

Definition at line 144 of file F02PrimaryGeneratorAction.cc.

References fVertexDefined, fXVertex, G4cout, G4endl, mm, and x.

Referenced by F02PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void F02PrimaryGeneratorAction::SetYVertex ( G4double  y)

Definition at line 154 of file F02PrimaryGeneratorAction.cc.

References fVertexDefined, fYVertex, G4cout, G4endl, and mm.

Referenced by F02PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void F02PrimaryGeneratorAction::SetZVertex ( G4double  z)

Definition at line 164 of file F02PrimaryGeneratorAction.cc.

References fVertexDefined, fZVertex, G4cout, G4endl, mm, and z.

Referenced by F02PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

F02DetectorConstruction* F02PrimaryGeneratorAction::fDetector
private

Definition at line 67 of file F02PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4ParticleDefinition * F02PrimaryGeneratorAction::fgPrimaryParticle = 0
staticprivate
F02PrimaryGeneratorMessenger* F02PrimaryGeneratorAction::fGunMessenger
private
G4ParticleGun* F02PrimaryGeneratorAction::fParticleGun
private
G4String F02PrimaryGeneratorAction::fRndmFlag
private

Definition at line 70 of file F02PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), and SetRndmFlag().

G4bool F02PrimaryGeneratorAction::fVertexDefined
private

Definition at line 74 of file F02PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), SetXVertex(), SetYVertex(), and SetZVertex().

G4double F02PrimaryGeneratorAction::fXVertex
private
G4double F02PrimaryGeneratorAction::fYVertex
private
G4double F02PrimaryGeneratorAction::fZVertex
private

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