35 #include "HistoMessenger.hh"
39 #include "HistoManager.hh"
59 fFileNameCmd->
SetGuidance(
"set name for the histograms file");
61 fHistoCmd =
new G4UIcommand(
"/testem/histo/setHisto",
this);
62 fHistoCmd->
SetGuidance(
"Set bining of the histo number ih :");
63 fHistoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
66 ih->
SetGuidance(
"histo number : from 1 to kMaxHisto");
84 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
89 fPrtHistoCmd->
SetGuidance(
"print histo #id on ascii file");
108 if (command == fFileNameCmd)
111 if (command == fHistoCmd)
113 const char* t = newValues;
114 std::istringstream is(t);
115 is >> ih >> nbBins >> vmin >> vmax >> unit;
116 fHistoManager->
SetHisto (ih,nbBins,vmin,vmax,unit);
119 if (command == fPrtHistoCmd)
void SetParameter(G4UIparameter *const newParameter)
virtual void SetNewValue(G4UIcommand *, G4String)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetParameterRange(const char *theRange)
void SetDefaultValue(const char *theDefaultValue)
HistoMessenger(HistoManager *)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetHisto(G4int, G4int, G4double, G4double, const G4String &unit="none")
void SetFileName(const G4String &name)
void SetGuidance(const char *theGuidance)