58 fDirectory->
SetGuidance(
"Global uniform magnetic field UI commands");
61 fSetValueCmd->
SetGuidance(
"Set uniform magnetic field value.");
69 fSetVerboseCmd->
SetGuidance(
" 1: printing new field value");
71 fSetVerboseCmd->
SetRange(
"globalFieldVerbose>=0");
78 SetField(value,
"G4GlobalMagFieldMessenger::G4GlobalMagFieldMessenger");
87 delete fSetVerboseCmd;
106 if ( fVerboseLevel > 0 )
108 G4cout <<
"Magnetic field is inactive, fieldValue = (0,0,0)." <<
G4endl;
117 if ( fVerboseLevel > 0 )
119 G4cout <<
"Magnetic field is active, fieldValue = ("
130 if ( command == fSetValueCmd )
133 "G4GlobalMagFieldMessenger::SetNewValue");
135 else if ( command == fSetVerboseCmd )
145 SetField(value,
"G4GlobalMagFieldMessenger::SetFieldValue");
void SetVerboseLevel(G4int verboseLevel)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
G4GlobalMagFieldMessenger(const G4ThreeVector &value=G4ThreeVector())
static G4int GetNewIntValue(const char *paramString)
void SetUnitCategory(const char *unitCategory)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
virtual void SetNewValue(G4UIcommand *, G4String)
virtual ~G4GlobalMagFieldMessenger()
G4GLOB_DLL std::ostream G4cout
const XML_Char int const XML_Char * value
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetFieldValue(const G4ThreeVector &value)
void AvailableForStates(G4ApplicationState s1)
G4ThreeVector GetFieldValue() const
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
void CreateChordFinder(G4MagneticField *detectorMagField)