34 #include "HistoMessenger.hh"
57 fFactoryCmd->
SetGuidance(
"set name for the histograms file");
60 fFileCmd->
SetGuidance(
"set type (hbook, XML) for the histograms file");
62 fHistoCmd =
new G4UIcommand(
"/testem/histo/setHisto",
this);
63 fHistoCmd->
SetGuidance(
"Set bining of the histo number ih :");
64 fHistoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
67 ih->
SetGuidance(
"histo number : from 0 to MaxHisto-1");
84 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
104 if (command == fFactoryCmd) { fHisto->
SetFileName(newValues); }
106 if (command == fFileCmd) { fHisto->
SetFileType(newValues); }
108 if (command == fHistoCmd) {
111 std::istringstream is(newValues);
113 is >> ih >> nbBins >> vmin >> vmax >> unts;
117 if(vUnit <= 0.0) { vUnit = 1.; }
118 fHisto->
SetHisto1D(ih,nbBins,vmin,vmax,vUnit);
void SetParameter(G4UIparameter *const newParameter)
virtual void SetNewValue(G4UIcommand *, G4String)
void SetParameterRange(const char *theRange)
void SetDefaultValue(const char *theDefaultValue)
HistoMessenger(HistoManager *)
void SetGuidance(const char *aGuidance)
static G4double ValueOf(const char *unitName)
void SetHisto1D(G4int, G4int, G4double, G4double, G4double)
void SetFileType(const G4String &)
void SetGuidance(const char *theGuidance)
void SetFileName(const G4String &)