34 #include "HistoMessenger.hh"
53 fFactoryCmd->
SetGuidance(
"set name for the histograms file");
56 fFileCmd->
SetGuidance(
"set type (hbook, XML) for the histograms file");
58 fHistoCmd =
new G4UIcommand(
"/testem/histo/setHisto",
this);
59 fHistoCmd->
SetGuidance(
"Set bining of the histo number ih :");
60 fHistoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
63 ih->
SetGuidance(
"histo number : from 0 to MaxHisto-1");
80 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
100 if (command == fFactoryCmd) { fHisto->
SetFileName(newValues); }
102 if (command == fFileCmd) { fHisto->
SetFileType(newValues); }
104 if (command == fHistoCmd) {
107 std::istringstream is(newValues);
109 is >> ih >> nbBins >> vmin >> vmax >> unts;
113 if(vUnit <= 0.0) { vUnit = 1.; }
114 fHisto->
SetHisto1D(ih,nbBins,vmin,vmax,vUnit);