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");
88 delete fSetVerboseCmd;
113 if ( fVerboseLevel > 0 ) {
114 G4cout <<
"Magnetic field is inactive, fieldValue = (0,0,0)." <<
G4endl;
122 if ( fVerboseLevel > 0 ) {
123 G4cout <<
"Magnetic field is active, fieldValue = ("
134 if ( command == fSetValueCmd ) {
136 "G4GlobalMagFieldMessenger::SetNewValue");
138 else if ( command == fSetVerboseCmd ) {
147 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
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
const XML_Char int const XML_Char * value
void CreateChordFinder(G4MagneticField *detectorMagField)