|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4GlobalMagFieldMessenger, a global uniform magnetic field messenger class. It creates/deletes the global uniform magnetic field and activates/inactivates it according to the set field value. The field value can be changed either interactively via the UI command or via the SetFieldValue() function. More...
#include <G4GlobalMagFieldMessenger.hh>
Public Member Functions | |
| G4GlobalMagFieldMessenger (const G4ThreeVector &value=G4ThreeVector()) | |
| ~G4GlobalMagFieldMessenger () override | |
| void | SetNewValue (G4UIcommand *, G4String) override |
| void | SetFieldValue (const G4ThreeVector &value) |
| G4ThreeVector | GetFieldValue () const |
| void | SetVerboseLevel (G4int verboseLevel) |
| G4int | GetVerboseLevel () const |
| Public Member Functions inherited from G4UImessenger | |
| G4UImessenger ()=default | |
| G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true) | |
| virtual | ~G4UImessenger () |
| virtual G4String | GetCurrentValue (G4UIcommand *command) |
| G4bool | CommandsShouldBeInMaster () const |
Additional Inherited Members | |
| Protected Member Functions inherited from G4UImessenger | |
| G4String | ItoS (G4int i) |
| G4String | LtoS (G4long l) |
| G4String | DtoS (G4double a) |
| G4String | BtoS (G4bool b) |
| G4int | StoI (const G4String &s) |
| G4long | StoL (const G4String &s) |
| G4double | StoD (const G4String &s) |
| G4bool | StoB (const 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 = nullptr |
| G4String | baseDirName = "" |
| G4bool | commandsShouldBeInMaster = false |
G4GlobalMagFieldMessenger, a global uniform magnetic field messenger class. It creates/deletes the global uniform magnetic field and activates/inactivates it according to the set field value. The field value can be changed either interactively via the UI command or via the SetFieldValue() function.
Definition at line 62 of file G4GlobalMagFieldMessenger.hh.
| G4GlobalMagFieldMessenger::G4GlobalMagFieldMessenger | ( | const G4ThreeVector & | value = G4ThreeVector() | ) |
Constructor and Destructor.
Definition at line 43 of file G4GlobalMagFieldMessenger.cc.
|
override |
Definition at line 71 of file G4GlobalMagFieldMessenger.cc.
| G4ThreeVector G4GlobalMagFieldMessenger::GetFieldValue | ( | ) | const |
Definition at line 138 of file G4GlobalMagFieldMessenger.cc.
|
inline |
Definition at line 110 of file G4GlobalMagFieldMessenger.hh.
| void G4GlobalMagFieldMessenger::SetFieldValue | ( | const G4ThreeVector & | value | ) |
Setter and accessor for the field value.
Definition at line 131 of file G4GlobalMagFieldMessenger.cc.
|
overridevirtual |
Setter for UI command.
Reimplemented from G4UImessenger.
Definition at line 116 of file G4GlobalMagFieldMessenger.cc.
|
inline |
Verbosity control.
Definition at line 105 of file G4GlobalMagFieldMessenger.hh.
Referenced by SetNewValue().