49 fDirectory->
SetGuidance(
"Global uniform magnetic field UI commands");
52 fSetValueCmd->
SetGuidance(
"Set uniform magnetic field value.");
60 fSetVerboseCmd->
SetGuidance(
" 1: printing new field value");
62 fSetVerboseCmd->
SetRange(
"globalFieldVerbose>=0");
69 SetField(value,
"G4GlobalMagFieldMessenger::G4GlobalMagFieldMessenger");
78 delete fSetVerboseCmd;
84void G4GlobalMagFieldMessenger::SetField(
const G4ThreeVector& value,
97 if ( fVerboseLevel > 0 )
99 G4cout <<
"Magnetic field is inactive, fieldValue = (0,0,0)." <<
G4endl;
108 if ( fVerboseLevel > 0 )
110 G4cout <<
"Magnetic field is active, fieldValue = ("
121 if ( command == fSetValueCmd )
124 "G4GlobalMagFieldMessenger::SetNewValue");
126 else if ( command == fSetVerboseCmd )
136 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)
G4ThreeVector GetFieldValue() const
G4GlobalMagFieldMessenger(const G4ThreeVector &value=G4ThreeVector())
virtual ~G4GlobalMagFieldMessenger()
void SetFieldValue(const G4ThreeVector &value)
virtual void SetNewValue(G4UIcommand *, G4String)
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)