35 #include "HistoMessenger.hh"
54 fFactoryCmd->
SetGuidance(
"set name for the histograms file");
57 fFileCmd->
SetGuidance(
"set type (hbook, XML) for the histograms file");
59 fHistoCmd =
new G4UIcommand(
"/testhadr/histo/setHisto",
this);
60 fHistoCmd->
SetGuidance(
"Set bining of the histo number ih :");
61 fHistoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
64 ih->
SetGuidance(
"histo number : from 0 to MaxHisto-1");
81 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
101 if (command == fFactoryCmd) { fHisto->
SetFileName(newValues); }
103 if (command == fFileCmd) { fHisto->
SetFileType(newValues); }
105 if (command == fHistoCmd) {
108 std::istringstream is(newValues);
110 is >> ih >> nbBins >> vmin >> vmax >> unts;
114 if(vUnit <= 0.0) { vUnit = 1.; }
115 fHisto->
SetHisto1D(ih,nbBins,vmin,vmax,vUnit);