49 <<
"\" parameters: " << nofParameters
106 p1xNbins0->
SetGuidance(
"Number of x-bins (default = 100)");
107 p1xNbins0->
SetGuidance(
"Can be reset with /analysis/p1/set command");
111 p1xValMin0->
SetGuidance(
"Minimum x-value, expressed in unit (default = 0.)");
112 p1xValMin0->
SetGuidance(
"Can be reset with /analysis/p1/set command");
116 p1xValMax0->
SetGuidance(
"Maximum x-value, expressed in unit (default = 1.)");
117 p1xValMax0->
SetGuidance(
"Can be reset with /analysis/p1/set command");
121 p1xValUnit0->
SetGuidance(
"The unit applied to filled x-values and xvalMin0, xvalMax0");
125 G4String fcnxGuidance =
"The function applied to filled x-values (log, log10, exp, none).\n";
126 fcnxGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
127 fcnxGuidance +=
"but none value should be used insted.";
133 G4String binSchemeGuidance =
"The binning scheme (linear, log).\n";
136 +=
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
137 binSchemeGuidance +=
"but none value should be used insted.";
142 p1yValMin0->
SetGuidance(
"Minimum y-value, expressed in unit (default = 0.)");
143 p1yValMin0->
SetGuidance(
"Can be reset with /analysis/p1/set command");
147 p1yValMax0->
SetGuidance(
"Maximum y-value, expressed in unit (default = 1.)");
148 p1yValMax0->
SetGuidance(
"Can be reset with /analysis/p1/set command");
152 p1yValUnit0->
SetGuidance(
"The unit applied to filled y-values and yvalMin0, yvalMax0");
156 G4String fcnyGuidance =
"The function applied to filled y-values (log, log10, exp, none).\n";
157 fcnyGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
158 fcnyGuidance +=
"but none value should be used insted.";
192 p1xValMin->
SetGuidance(
"Minimum x-value, expressed in unit");
195 p1xValMax->
SetGuidance(
"Maximum x-value, expressed in unit");
198 p1xValUnit->
SetGuidance(
"The unit applied to filled x-values and xvalMin0, xvalMax0");
203 G4String fcnxGuidance =
"The function applied to filled x-values (log, log10, exp, none).\n";
204 fcnxGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
205 fcnxGuidance +=
"but none value should be used insted.";
210 G4String binSchemeGuidance =
"The binning scheme (linear, log).\n";
213 +=
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
214 binSchemeGuidance +=
"but none value should be used insted.";
219 p1yValMin->
SetGuidance(
"Minimum y-value, expressed in unit");
222 p1yValMax->
SetGuidance(
"Maximum y-value, expressed in unit");
225 p1yValUnit->
SetGuidance(
"The unit applied to filled y-values and yvalMin0, yvalMax0");
230 G4String fcnyGuidance =
"The function applied to filled y-values (log, log10, exp, none).\n";
231 fcnyGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
232 fcnyGuidance +=
"but none value should be used insted.";
316 std::vector<G4String> parameters;
328 G4String title = parameters[counter++];
332 G4String xsunit = parameters[counter++];
333 G4String xsfcn = parameters[counter++];
334 G4String xsbinScheme = parameters[counter++];
338 G4String ysunit = parameters[counter++];
339 G4String ysfcn = parameters[counter++];
342 xnbins, xvmin*xunit, xvmax*xunit,
343 yvmin*yunit, yvmax*yunit,
344 xsunit, ysunit, xsfcn, ysfcn, xsbinScheme);
352 G4String xsunit = parameters[counter++];
353 G4String xsfcn = parameters[counter++];
354 G4String xsbinScheme = parameters[counter++];
358 G4String ysunit = parameters[counter++];
359 G4String ysfcn = parameters[counter++];
362 xnbins, xvmin*xunit, xvmax*xunit,
363 yvmin*yunit, yvmax*yunit,
364 xsunit, ysunit, xsfcn, ysfcn, xsbinScheme);
369 G4String title = parameters[counter++];
375 G4String xaxis = parameters[counter++];
381 G4String yaxis = parameters[counter++];
void SetParameter(G4UIparameter *const newParameter)
std::ostringstream G4ExceptionDescription
void SetParameterRange(const char *theRange)
void SetParameterCandidates(const char *theString)
void SetDefaultValue(const char *theDefaultValue)
G4UIcommand * fSetP1YAxisCmd
G4int CreateP1(const G4String &name, const G4String &title, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear")
G4UIcommand * fSetP1TitleCmd
G4VAnalysisManager * fManager
Associated class.
G4bool SetP1YAxisTitle(G4int id, const G4String &title)
G4bool SetP1(G4int id, G4int nbins, G4double xmin, G4double xmax, G4double ymin=0, G4double ymax=0, const G4String &xunitName="none", const G4String &yunitName="none", const G4String &xfcnName="none", const G4String &yfcnName="none", const G4String &xbinSchemeName="linear")
virtual void SetNewValue(G4UIcommand *command, G4String value)
void SetGuidance(const char *aGuidance)
static G4double ConvertToDouble(const char *st)
void AvailableForStates(G4ApplicationState s1)
G4double GetUnitValue(const G4String &unit)
static G4int ConvertToInt(const char *st)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetCommandName() const
G4bool SetP1XAxisTitle(G4int id, const G4String &title)
void Exception(const char *originOfException, const char *exceptionCode, UExceptionSeverity severity, int level, const char *description)
void Tokenize(const G4String &line, std::vector< G4String > &tokens)
G4bool SetP1Title(G4int id, const G4String &title)
void SetGuidance(const char *theGuidance)
G4int GetParameterEntries() const
G4UIcommand * fCreateP1Cmd
G4UIcommand * fSetP1XAxisCmd
G4P1Messenger(G4VAnalysisManager *manager)