Geant4  10.00.p02
CCalPrimaryGeneratorAction Class Reference

#include <CCalPrimaryGeneratorAction.hh>

+ Inheritance diagram for CCalPrimaryGeneratorAction:
+ Collaboration diagram for CCalPrimaryGeneratorAction:

Public Member Functions

 CCalPrimaryGeneratorAction ()
 
 ~CCalPrimaryGeneratorAction ()
 
void GeneratePrimaries (G4Event *anEvent)
 
void SetVerboseLevel (G4int val)
 
void SetRandom (G4String val)
 
void SetScan (G4String val)
 
void SetMinimumEnergy (G4double p)
 
void SetMaximumEnergy (G4double p)
 
void SetMinimumPhi (G4double p)
 
void SetMaximumPhi (G4double p)
 
void SetStepsPhi (G4int val)
 
void SetMinimumEta (G4double p)
 
void SetMaximumEta (G4double p)
 
void SetStepsEta (G4int val)
 
void SetGunPosition (const G4ThreeVector &pos) const
 
void SetRunNo (G4int val)
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleEnergy ()
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Member Functions

void initialize ()
 
void print (G4int val)
 

Private Attributes

CCalPrimaryGeneratorMessengergunMessenger
 
G4ParticleGunparticleGun
 
generatorInputType generatorInput
 
G4int verboseLevel
 
G4int n_particle
 
G4String particleName
 
G4double particleEnergy
 
G4ThreeVector particlePosition
 
G4ThreeVector particleDir
 
G4double energyMin
 
G4double energyMax
 
G4double etaMin
 
G4double etaMax
 
G4double phiMin
 
G4double phiMax
 
G4int etaSteps
 
G4int phiSteps
 
G4int isInitialized
 
G4double etaValue
 
G4double phiValue
 
G4int scanSteps
 

Detailed Description

Definition at line 66 of file CCalPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

CCalPrimaryGeneratorAction::~CCalPrimaryGeneratorAction ( )

Definition at line 81 of file CCalPrimaryGeneratorAction.cc.

References gunMessenger, and particleGun.

Member Function Documentation

void CCalPrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual
G4double CCalPrimaryGeneratorAction::GetParticleEnergy ( )
inline

Definition at line 91 of file CCalPrimaryGeneratorAction.hh.

References G4ParticleGun::GetParticleEnergy(), and particleGun.

Referenced by CCalEndOfEventAction::EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector CCalPrimaryGeneratorAction::GetParticlePosition ( )
inline

Definition at line 90 of file CCalPrimaryGeneratorAction.hh.

References G4VPrimaryGenerator::GetParticlePosition(), and particleGun.

Referenced by CCalEndOfEventAction::EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::initialize ( )
private

Definition at line 336 of file CCalPrimaryGeneratorAction.cc.

References isInitialized, and print().

Referenced by GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::print ( G4int  val)
private

Definition at line 344 of file CCalPrimaryGeneratorAction.cc.

References degree, energyMax, energyMin, etaMax, etaMin, etaSteps, G4cout, G4endl, generatorInput, G4ParticleGun::GetNumberOfParticles(), G4ParticleGun::GetParticleDefinition(), G4ParticleGun::GetParticleEnergy(), G4ParticleGun::GetParticleMomentumDirection(), G4ParticleDefinition::GetParticleName(), G4VPrimaryGenerator::GetParticlePosition(), GeV, particleGun, phiMax, phiMin, phiSteps, singleFixed, singleRandom, singleScan, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), initialize(), SetRandom(), and SetScan().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetGunPosition ( const G4ThreeVector pos) const

Definition at line 327 of file CCalPrimaryGeneratorAction.cc.

References particleGun, and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

void CCalPrimaryGeneratorAction::SetMaximumEnergy ( G4double  p)

Definition at line 215 of file CCalPrimaryGeneratorAction.cc.

References energyMax, G4cerr, G4cout, G4endl, GeV, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetMaximumEta ( G4double  p)

Definition at line 299 of file CCalPrimaryGeneratorAction.cc.

References etaMax, G4cout, G4endl, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetMaximumPhi ( G4double  p)

Definition at line 251 of file CCalPrimaryGeneratorAction.cc.

References G4cerr, G4cout, G4endl, phiMax, G4INCL::Math::pi, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetMinimumEnergy ( G4double  p)

Definition at line 197 of file CCalPrimaryGeneratorAction.cc.

References energyMin, G4cerr, G4cout, G4endl, GeV, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetMinimumEta ( G4double  p)

Definition at line 287 of file CCalPrimaryGeneratorAction.cc.

References etaMin, G4cout, G4endl, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetMinimumPhi ( G4double  p)

Definition at line 233 of file CCalPrimaryGeneratorAction.cc.

References G4cerr, G4cout, G4endl, phiMin, G4INCL::Math::pi, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetRandom ( G4String  val)

Definition at line 172 of file CCalPrimaryGeneratorAction.cc.

References generatorInput, print(), singleFixed, and singleRandom.

Referenced by CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetRunNo ( G4int  val)

Definition at line 332 of file CCalPrimaryGeneratorAction.cc.

References G4RunManager::GetRunManager(), and G4RunManager::SetRunIDCounter().

Referenced by CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetScan ( G4String  val)

Definition at line 184 of file CCalPrimaryGeneratorAction.cc.

References generatorInput, print(), scanSteps, singleFixed, and singleScan.

Referenced by CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetStepsEta ( G4int  val)

Definition at line 311 of file CCalPrimaryGeneratorAction.cc.

References etaSteps, G4cerr, G4cout, G4endl, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetStepsPhi ( G4int  val)

Definition at line 269 of file CCalPrimaryGeneratorAction.cc.

References G4cerr, G4cout, G4endl, phiSteps, and verboseLevel.

Referenced by CCalPrimaryGeneratorAction(), and CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CCalPrimaryGeneratorAction::SetVerboseLevel ( G4int  val)

Definition at line 167 of file CCalPrimaryGeneratorAction.cc.

References verboseLevel.

Referenced by CCalPrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4double CCalPrimaryGeneratorAction::energyMax
private

Definition at line 105 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetMaximumEnergy().

G4double CCalPrimaryGeneratorAction::energyMin
private

Definition at line 105 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetMinimumEnergy().

G4double CCalPrimaryGeneratorAction::etaMax
private

Definition at line 106 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetMaximumEta().

G4double CCalPrimaryGeneratorAction::etaMin
private

Definition at line 106 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetMinimumEta().

G4int CCalPrimaryGeneratorAction::etaSteps
private

Definition at line 108 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetStepsEta().

G4double CCalPrimaryGeneratorAction::etaValue
private

Definition at line 111 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

generatorInputType CCalPrimaryGeneratorAction::generatorInput
private

Definition at line 96 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), SetRandom(), and SetScan().

CCalPrimaryGeneratorMessenger* CCalPrimaryGeneratorAction::gunMessenger
private
G4int CCalPrimaryGeneratorAction::isInitialized
private

Definition at line 110 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), and initialize().

G4int CCalPrimaryGeneratorAction::n_particle
private

Definition at line 99 of file CCalPrimaryGeneratorAction.hh.

Referenced by CCalPrimaryGeneratorAction().

G4ThreeVector CCalPrimaryGeneratorAction::particleDir
private

Definition at line 103 of file CCalPrimaryGeneratorAction.hh.

Referenced by CCalPrimaryGeneratorAction(), and GeneratePrimaries().

G4double CCalPrimaryGeneratorAction::particleEnergy
private

Definition at line 101 of file CCalPrimaryGeneratorAction.hh.

Referenced by CCalPrimaryGeneratorAction(), and GeneratePrimaries().

G4String CCalPrimaryGeneratorAction::particleName
private

Definition at line 100 of file CCalPrimaryGeneratorAction.hh.

Referenced by CCalPrimaryGeneratorAction().

G4ThreeVector CCalPrimaryGeneratorAction::particlePosition
private

Definition at line 102 of file CCalPrimaryGeneratorAction.hh.

Referenced by CCalPrimaryGeneratorAction().

G4double CCalPrimaryGeneratorAction::phiMax
private

Definition at line 107 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetMaximumPhi().

G4double CCalPrimaryGeneratorAction::phiMin
private

Definition at line 107 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetMinimumPhi().

G4int CCalPrimaryGeneratorAction::phiSteps
private

Definition at line 108 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), print(), and SetStepsPhi().

G4double CCalPrimaryGeneratorAction::phiValue
private

Definition at line 111 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

G4int CCalPrimaryGeneratorAction::scanSteps
private

Definition at line 112 of file CCalPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), and SetScan().


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