34 #include "HistoMessenger.hh"
61 fFactoryCmd->
SetGuidance(
"set name for the histograms file");
64 fFileCmd->
SetGuidance(
"set type (root, XML) for the histograms file");
66 fHistoCmd =
new G4UIcommand(
"/testhadr/histo/setHisto",
this);
67 fHistoCmd->
SetGuidance(
"Set bining of the histo number ih :");
68 fHistoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
71 ih->
SetGuidance(
"histo number : from 0 to MaxHisto-1");
88 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
108 if (command == fFactoryCmd) { fHisto->
SetFileName(newValues); }
110 if (command == fFileCmd) { fHisto->
SetFileType(newValues); }
112 if (command == fHistoCmd) {
115 std::istringstream is(newValues);
117 is >> ih >> nbBins >> vmin >> vmax >> unts;
121 if(vUnit <= 0.0) { vUnit = 1.; }
122 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 &)