48 fDirectory->
SetGuidance(
"Global uniform magnetic field UI commands");
51 fSetValueCmd->
SetGuidance(
"Set uniform magnetic field value.");
59 fSetVerboseCmd->
SetGuidance(
" 1: printing new field value");
61 fSetVerboseCmd->
SetRange(
"globalFieldVerbose>=0");
68 SetField(value,
"G4GlobalMagFieldMessenger::G4GlobalMagFieldMessenger");
77 delete fSetVerboseCmd;
83void G4GlobalMagFieldMessenger::SetField(
const G4ThreeVector& value,
96 if ( fVerboseLevel > 0 )
98 G4cout <<
"Magnetic field is inactive, fieldValue = (0,0,0)." <<
G4endl;
107 if ( fVerboseLevel > 0 )
109 G4cout <<
"Magnetic field is active, fieldValue = ("
120 if ( command == fSetValueCmd )
123 "G4GlobalMagFieldMessenger::SetNewValue");
125 else if ( command == fSetVerboseCmd )
135 SetField(value,
"G4GlobalMagFieldMessenger::SetFieldValue");
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cout
G4bool SetDetectorField(G4Field *detectorField, G4int failMode=0)
void CreateChordFinder(G4MagneticField *detectorMagField)
void SetVerboseLevel(G4int verboseLevel)
~G4GlobalMagFieldMessenger() override
void SetNewValue(G4UIcommand *, G4String) override
G4ThreeVector GetFieldValue() const
G4GlobalMagFieldMessenger(const G4ThreeVector &value=G4ThreeVector())
void SetFieldValue(const G4ThreeVector &value)
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetUnitCategory(const char *unitCategory)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)