12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Communication and ControlDefine the name of the boolean parameter and set the omittable flag. If omittable is true, you should define thedefault value using the next method.• void SetDefaultValue(G4bool defVal)Define the default value of the boolean parameter.• G4bool GetNewBoolValue(G4String paramString)Convert G4String parameter value given by the SetNewValue() method of your messenger into boolean.• G4String convertToString(G4bool currVal)Convert the current boolean value to G4String whichshould be returned by the GetCurrentValue() methodof your messenger.G4UIcmdWithAnIntegerThis is a G4UIcommand derived class which takes one integer type parameter.• G4UIcmdWithAnInteger(char* commandpath, G4UImanager* theMessenger)Constructor. Arguments are the (full-path) command name and the pointer to your messenger.• void SetParameterName(char* paramName, G4bool omittable)Define the name of the integer parameter and set the omittable flag. If omittable is true, you should define thedefault value using the next method.• void SetDefaultValue(G4int defVal)Define the default value of the integer parameter.• G4int GetNewIntValue(G4String paramString)Convert G4String parameter value given by the SetNewValue() method of your messenger into integer.• G4String convertToString(G4int currVal)Convert the current integer value to G4String, which should be returned by the GetCurrentValue() methodof your messenger.G4UIcmdWithADoubleThis is a G4UIcommand derived class which takes one double type parameter.• G4UIcmdWithADouble(char* commandpath, G4UImanager* theMessenger)Constructor. Arguments are the (full-path) command name and the pointer to your messenger.• void SetParameterName(char* paramName, G4bool omittable)Define the name of the double parameter and set the omittable flag. If omittable is true, you should define thedefault value using the next method.• void SetDefaultValue(G4double defVal)Define the default value of the double parameter.• G4double GetNewDoubleValue(G4String paramString)Convert G4String parameter value given by the SetNewValue() method of your messenger into double.• G4String convertToString(G4double currVal)Convert the current double value to G4String which should be returned by the GetCurrentValue() methodof your messenger.G4UIcmdWithAStringThis is a G4UIcommand derived class which takes one string type parameter.207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!