53 <<
"\" parameters: " << nofParameters
108 h1Nbins0->
SetGuidance(
"Number of bins (default = 100)");
109 h1Nbins0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
113 h1ValMin0->
SetGuidance(
"Minimum value, expressed in unit (default = 0.)");
114 h1ValMin0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
118 h1ValMax0->
SetGuidance(
"Maximum value, expressed in unit (default = 1.)");
119 h1ValMax0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
123 h1ValUnit0->
SetGuidance(
"The unit of valMin0 and valMax0");
127 G4String fcnGuidance =
"The function applied to filled values (log, log10, exp).\n";
128 fcnGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
129 fcnGuidance +=
"but none value should be used insted.";
135 G4String binSchemeGuidance =
"The binning scheme (linear, log).\n";
138 +=
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
139 binSchemeGuidance +=
"but none value should be used insted.";
168 h1ValMin->
SetGuidance(
"Minimum value, expressed in unit");
171 h1ValMax->
SetGuidance(
"Maximum value, expressed in unit");
174 h1ValUnit->
SetGuidance(
"The unit of valMin and valMax");
179 G4String fcnGuidance =
"The function applied to filled values (log, log10, exp, none).\n";
180 fcnGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
181 fcnGuidance +=
"but none value should be used insted.";
187 G4String binSchemeGuidance =
"The binning scheme (linear, log).\n";
189 +=
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
190 binSchemeGuidance +=
"but none value should be used insted.";
269 std::vector<G4String> parameters;
281 G4String title = parameters[counter++];
285 G4String sunit = parameters[counter++];
286 G4String sfcn = parameters[counter++];
287 G4String sbinScheme = parameters[counter++];
288 fManager->
CreateH1(name, title, nbins, vmin, vmax, sunit, sfcn, sbinScheme);
296 G4String sunit = parameters[counter++];
297 G4String sfcn = parameters[counter++];
298 G4String sbinScheme = parameters[counter++];
299 fManager->
SetH1(
id, nbins, vmin, vmax, sunit, sfcn, sbinScheme);
304 G4String title = parameters[counter++];
310 G4String xaxis = parameters[counter++];
316 G4String yaxis = parameters[counter++];
void SetParameter(G4UIparameter *const newParameter)
std::ostringstream G4ExceptionDescription
G4int CreateH1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
void SetParameterRange(const char *theRange)
void SetParameterCandidates(const char *theString)
G4UIcommand * fSetH1YAxisCmd
void SetDefaultValue(const char *theDefaultValue)
G4UIcommand * fCreateH1Cmd
void SetGuidance(const char *aGuidance)
static G4double ConvertToDouble(const char *st)
G4bool SetH1(G4int id, G4int nbins, G4double xmin, G4double xmax, const G4String &unitName="none", const G4String &fcnName="none", const G4String &binSchemeName="linear")
void AvailableForStates(G4ApplicationState s1)
G4UIcommand * fSetH1XAxisCmd
G4bool SetH1YAxisTitle(G4int id, const G4String &title)
G4UIcommand * fSetH1TitleCmd
static G4int ConvertToInt(const char *st)
virtual void SetNewValue(G4UIcommand *command, G4String value)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetCommandName() const
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4H1Messenger(G4VAnalysisManager *manager)
void Exception(const char *originOfException, const char *exceptionCode, ExceptionSeverity severity, int level, const char *description)
void SetGuidance(const char *theGuidance)
G4bool SetH1Title(G4int id, const G4String &title)
G4int GetParameterEntries() const
G4bool SetH1XAxisTitle(G4int id, const G4String &title)
G4VAnalysisManager * fManager
Associated class.