45 fSetHnActivationCmd(0),
46 fSetHnActivationAllCmd(0)
51 SetHnActivationToAllCmd();
57 delete fSetHnAsciiCmd;
58 delete fSetHnActivationCmd;
59 delete fSetHnActivationAllCmd;
67 G4String G4HnMessenger::GetCmdDirectoryName()
const
78 G4String G4HnMessenger::GetHnDescription()
const
81 hnDescription.erase(0);
87 void G4HnMessenger::SetHnAsciiCmd()
94 guidance.append(GetHnDescription());
95 guidance.append(
" histogram of #Id on ascii file.");
104 void G4HnMessenger::SetHnActivationCmd()
106 G4String name = GetCmdDirectoryName();
107 name.
append(
"setActivationToAll");
110 G4String guidance(
"Set activation to all ");
111 guidance.append(GetHnDescription());
112 guidance.append(
" histograms.");
120 void G4HnMessenger::SetHnActivationToAllCmd()
130 G4String name = GetCmdDirectoryName();
131 name.
append(
"setActivation");
134 G4String guidance(
"Set activation for the ");
135 guidance.append(GetHnDescription());
136 guidance.append(
" histogram of #Id");
151 if ( command == fSetHnAsciiCmd ) {
155 else if ( command == fSetHnActivationCmd ) {
158 std::istringstream is(newValues.
data());
159 is >>
id >> sactivation;
163 else if ( command == fSetHnActivationAllCmd ) {
void SetParameter(G4UIparameter *const newParameter)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
G4String GetHnType() const
void SetParameterRange(const char *theRange)
void SetDefaultValue(const char *theDefaultValue)
static G4bool GetNewBoolValue(const char *paramString)
G4HnMessenger(G4HnManager *manager)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4bool ConvertToBool(const char *st)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetAscii(G4int id, G4bool ascii)
void AvailableForStates(G4ApplicationState s1)
const char * data() const
G4String & append(const G4String &)
void SetGuidance(const char *theGuidance)
void SetActivation(G4bool activation)
virtual void SetNewValue(G4UIcommand *command, G4String value)