Geant4  10.01.p01
G4ParticleGunMessenger Class Reference

#include <G4ParticleGunMessenger.hh>

+ Inheritance diagram for G4ParticleGunMessenger:
+ Collaboration diagram for G4ParticleGunMessenger:

Public Member Functions

 G4ParticleGunMessenger (G4ParticleGun *fPtclGun)
 
 ~G4ParticleGunMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
G4String GetCurrentValue (G4UIcommand *command)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Member Functions

void IonCommand (G4String newValues)
 
void IonLevelCommand (G4String newValues)
 

Private Attributes

G4ParticleGunfParticleGun
 
G4ParticleTableparticleTable
 
G4UIdirectorygunDirectory
 
G4UIcmdWithoutParameterlistCmd
 
G4UIcmdWithAStringparticleCmd
 
G4UIcmdWith3VectordirectionCmd
 
G4UIcmdWithADoubleAndUnitenergyCmd
 
G4UIcmdWithADoubleAndUnitmomAmpCmd
 
G4UIcmdWith3VectorAndUnitmomCmd
 
G4UIcmdWith3VectorAndUnitpositionCmd
 
G4UIcmdWithADoubleAndUnittimeCmd
 
G4UIcmdWith3VectorpolCmd
 
G4UIcmdWithAnIntegernumberCmd
 
G4UIcommandionCmd
 
G4UIcommandionLvlCmd
 
G4bool fShootIon
 
G4int fAtomicNumber
 
G4int fAtomicMass
 
G4int fIonCharge
 
G4double fIonExciteEnergy
 
G4int fIonEnergyLevel
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 54 of file G4ParticleGunMessenger.hh.

Constructor & Destructor Documentation

G4ParticleGunMessenger::~G4ParticleGunMessenger ( )

Member Function Documentation

void G4ParticleGunMessenger::IonCommand ( G4String  newValues)
private

Definition at line 317 of file G4ParticleGunMessenger.cc.

References eplus, fAtomicMass, fAtomicNumber, fIonCharge, fIonExciteEnergy, fParticleGun, fShootIon, G4cout, G4endl, G4IonTable::GetIon(), G4IonTable::GetIonTable(), G4String::isNull(), keV, G4ParticleGun::SetParticleCharge(), G4ParticleGun::SetParticleDefinition(), G4UImessenger::StoD(), and G4UImessenger::StoI().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ParticleGunMessenger::IonLevelCommand ( G4String  newValues)
private

Definition at line 283 of file G4ParticleGunMessenger.cc.

References eplus, fAtomicMass, fAtomicNumber, fIonCharge, fIonEnergyLevel, fParticleGun, fShootIon, G4cout, G4endl, G4IonTable::GetIon(), G4IonTable::GetIonTable(), G4String::isNull(), G4ParticleGun::SetParticleCharge(), G4ParticleGun::SetParticleDefinition(), and G4UImessenger::StoI().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4UIcmdWith3Vector* G4ParticleGunMessenger::directionCmd
private
G4UIcmdWithADoubleAndUnit* G4ParticleGunMessenger::energyCmd
private
G4int G4ParticleGunMessenger::fAtomicMass
private

Definition at line 91 of file G4ParticleGunMessenger.hh.

Referenced by GetCurrentValue(), IonCommand(), and IonLevelCommand().

G4int G4ParticleGunMessenger::fAtomicNumber
private

Definition at line 90 of file G4ParticleGunMessenger.hh.

Referenced by GetCurrentValue(), IonCommand(), and IonLevelCommand().

G4int G4ParticleGunMessenger::fIonCharge
private

Definition at line 92 of file G4ParticleGunMessenger.hh.

Referenced by GetCurrentValue(), IonCommand(), and IonLevelCommand().

G4int G4ParticleGunMessenger::fIonEnergyLevel
private

Definition at line 94 of file G4ParticleGunMessenger.hh.

Referenced by IonLevelCommand().

G4double G4ParticleGunMessenger::fIonExciteEnergy
private

Definition at line 93 of file G4ParticleGunMessenger.hh.

Referenced by IonCommand().

G4ParticleGun* G4ParticleGunMessenger::fParticleGun
private
G4bool G4ParticleGunMessenger::fShootIon
private
G4UIdirectory* G4ParticleGunMessenger::gunDirectory
private

Definition at line 73 of file G4ParticleGunMessenger.hh.

Referenced by G4ParticleGunMessenger(), and ~G4ParticleGunMessenger().

G4UIcommand* G4ParticleGunMessenger::ionCmd
private
G4UIcommand* G4ParticleGunMessenger::ionLvlCmd
private
G4UIcmdWithoutParameter* G4ParticleGunMessenger::listCmd
private
G4UIcmdWithADoubleAndUnit* G4ParticleGunMessenger::momAmpCmd
private
G4UIcmdWith3VectorAndUnit* G4ParticleGunMessenger::momCmd
private
G4UIcmdWithAnInteger* G4ParticleGunMessenger::numberCmd
private
G4UIcmdWithAString* G4ParticleGunMessenger::particleCmd
private
G4ParticleTable* G4ParticleGunMessenger::particleTable
private

Definition at line 70 of file G4ParticleGunMessenger.hh.

Referenced by G4ParticleGunMessenger(), and SetNewValue().

G4UIcmdWith3Vector* G4ParticleGunMessenger::polCmd
private
G4UIcmdWith3VectorAndUnit* G4ParticleGunMessenger::positionCmd
private
G4UIcmdWithADoubleAndUnit* G4ParticleGunMessenger::timeCmd
private

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