Geant4
10.00.p03
|
#include <G4GlobalMagFieldMessenger.hh>
Public Member Functions | |
G4GlobalMagFieldMessenger (const G4ThreeVector &value=G4ThreeVector()) | |
virtual | ~G4GlobalMagFieldMessenger () |
virtual void | SetNewValue (G4UIcommand *, G4String) |
void | SetFieldValue (const G4ThreeVector &value) |
G4ThreeVector | GetFieldValue () const |
void | SetVerboseLevel (G4int verboseLevel) |
G4int | GetVerboseLevel () const |
Public Member Functions inherited from G4UImessenger | |
G4UImessenger () | |
G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true) | |
virtual | ~G4UImessenger () |
virtual G4String | GetCurrentValue (G4UIcommand *command) |
G4bool | operator== (const G4UImessenger &messenger) const |
Private Member Functions | |
void | SetField (const G4ThreeVector &value, const G4String &inFunction) |
Private Attributes | |
G4UniformMagField * | fMagField |
G4int | fVerboseLevel |
G4UIdirectory * | fDirectory |
G4UIcmdWith3VectorAndUnit * | fSetValueCmd |
G4UIcmdWithAnInteger * | fSetVerboseCmd |
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 | |
G4UIdirectory * | baseDir |
G4String | baseDirName |
Definition at line 56 of file G4GlobalMagFieldMessenger.hh.
G4GlobalMagFieldMessenger::G4GlobalMagFieldMessenger | ( | const G4ThreeVector & | value = G4ThreeVector() | ) |
Definition at line 49 of file G4GlobalMagFieldMessenger.cc.
References G4UIcommand::AvailableForStates(), fDirectory, fMagField, fSetValueCmd, fSetVerboseCmd, G4State_Idle, G4State_PreInit, SetField(), G4UIcommand::SetGuidance(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWith3VectorAndUnit::SetParameterName(), G4UIcommand::SetRange(), and G4UIcmdWith3VectorAndUnit::SetUnitCategory().
|
virtual |
Definition at line 83 of file G4GlobalMagFieldMessenger.cc.
References fDirectory, fMagField, fSetValueCmd, and fSetVerboseCmd.
G4ThreeVector G4GlobalMagFieldMessenger::GetFieldValue | ( | ) | const |
Definition at line 150 of file G4GlobalMagFieldMessenger.cc.
References fMagField, and G4UniformMagField::GetConstantFieldValue().
|
inline |
Definition at line 88 of file G4GlobalMagFieldMessenger.hh.
References fVerboseLevel.
|
private |
Definition at line 93 of file G4GlobalMagFieldMessenger.cc.
References G4FieldManager::CreateChordFinder(), fMagField, fVerboseLevel, G4BestUnit, G4cout, G4endl, G4TransportationManager::GetFieldManager(), G4TransportationManager::GetTransportationManager(), G4FieldManager::SetDetectorField(), and G4UniformMagField::SetFieldValue().
Referenced by G4GlobalMagFieldMessenger(), SetFieldValue(), and SetNewValue().
void G4GlobalMagFieldMessenger::SetFieldValue | ( | const G4ThreeVector & | value | ) |
Definition at line 143 of file G4GlobalMagFieldMessenger.cc.
References SetField().
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 128 of file G4GlobalMagFieldMessenger.cc.
References fSetValueCmd, fSetVerboseCmd, G4UIcmdWith3VectorAndUnit::GetNew3VectorValue(), G4UIcmdWithAnInteger::GetNewIntValue(), SetField(), and SetVerboseLevel().
|
inline |
Definition at line 85 of file G4GlobalMagFieldMessenger.hh.
References fVerboseLevel.
Referenced by B2aDetectorConstruction::ConstructSDandField(), B2bDetectorConstruction::ConstructSDandField(), B4DetectorConstruction::ConstructSDandField(), B4cDetectorConstruction::ConstructSDandField(), B4dDetectorConstruction::ConstructSDandField(), and SetNewValue().
|
private |
Definition at line 78 of file G4GlobalMagFieldMessenger.hh.
Referenced by G4GlobalMagFieldMessenger(), and ~G4GlobalMagFieldMessenger().
|
private |
Definition at line 75 of file G4GlobalMagFieldMessenger.hh.
Referenced by G4GlobalMagFieldMessenger(), GetFieldValue(), SetField(), and ~G4GlobalMagFieldMessenger().
|
private |
Definition at line 79 of file G4GlobalMagFieldMessenger.hh.
Referenced by G4GlobalMagFieldMessenger(), SetNewValue(), and ~G4GlobalMagFieldMessenger().
|
private |
Definition at line 80 of file G4GlobalMagFieldMessenger.hh.
Referenced by G4GlobalMagFieldMessenger(), SetNewValue(), and ~G4GlobalMagFieldMessenger().
|
private |
Definition at line 76 of file G4GlobalMagFieldMessenger.hh.
Referenced by GetVerboseLevel(), SetField(), and SetVerboseLevel().