89 h1Nbins0->
SetGuidance(
"Number of bins (default = 100)");
90 h1Nbins0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
94 h1ValMin0->
SetGuidance(
"Minimum value, expressed in unit (default = 0.)");
95 h1ValMin0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
99 h1ValMax0->
SetGuidance(
"Maximum value, expressed in unit (default = 1.)");
100 h1ValMax0->
SetGuidance(
"Can be reset with /analysis/h1/set command");
104 h1ValUnit0->
SetGuidance(
"The unit of valMin0 and valMax0");
108 G4String fcnGuidance =
"The function applied to filled values (log, log10, exp).\n";
109 fcnGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
110 fcnGuidance +=
"but none value should be used insted.";
116 G4String binSchemeGuidance =
"The binning scheme (linear, log).\n";
119 +=
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
120 binSchemeGuidance +=
"but none value should be used insted.";
149 h1ValMin->
SetGuidance(
"Minimum value, expressed in unit");
152 h1ValMax->
SetGuidance(
"Maximum value, expressed in unit");
155 h1ValUnit->
SetGuidance(
"The unit of valMin and valMax");
160 G4String fcnGuidance =
"The function applied to filled values (log, log10, exp, none).\n";
161 fcnGuidance +=
"Note that the unit parameter cannot be omitted in this case,\n";
162 fcnGuidance +=
"but none value should be used insted.";
168 G4String binSchemeGuidance =
"The binning scheme (linear, log).\n";
170 +=
"Note that the unit and fcn parameters cannot be omitted in this case,\n";
171 binSchemeGuidance +=
"but none value should be used insted.";
256 std::istringstream is(newValues.
data());
257 is >> name >> title >> nbins >> vmin >> vmax >> sunit >> sfcn >> sbinScheme;
258 fManager->
CreateH1(name, title, nbins, vmin, vmax, sunit, sfcn, sbinScheme);
267 std::istringstream is(newValues.
data());
268 is >>
id >> nbins >> vmin >> vmax >> sunit >> sfcn >> sbinScheme;
269 fManager->
SetH1(
id, nbins, vmin, vmax, sunit, sfcn, sbinScheme);
274 std::istringstream is(newValues.
data());
282 std::istringstream is(newValues.
data());
290 std::istringstream is(newValues.
data());
void SetParameter(G4UIparameter *const newParameter)
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)
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
virtual void SetNewValue(G4UIcommand *command, G4String value)
const char * data() const
G4H1Messenger(G4VAnalysisManager *manager)
void SetGuidance(const char *theGuidance)
G4bool SetH1Title(G4int id, const G4String &title)
G4bool SetH1XAxisTitle(G4int id, const G4String &title)
G4VAnalysisManager * fManager
Associated class.