34 #include "HistoMessenger.hh"
58 fFactoryCmd->
SetGuidance(
"set name for the histograms file");
61 fFileCmd->
SetGuidance(
"set type (hbook, XML) for the histograms file");
63 fHistoCmd =
new G4UIcommand(
"/testem/histo/setHisto",
this);
64 fHistoCmd->
SetGuidance(
"Set bining of the histo number ih :");
65 fHistoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
68 ih->
SetGuidance(
"histo number : from 0 to MaxHisto-1");
85 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
105 if (command == fFactoryCmd) { fHisto->
SetFileName(newValues); }
107 if (command == fFileCmd) { fHisto->
SetFileType(newValues); }
109 if (command == fHistoCmd) {
112 std::istringstream is(newValues);
114 is >> ih >> nbBins >> vmin >> vmax >> unts;
118 if(vUnit <= 0.0) { vUnit = 1.; }
119 fHisto->
SetHisto1D(ih,nbBins,vmin,vmax,vUnit);
void SetParameter(G4UIparameter *const newParameter)
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 &)