34 #include "HistoMessenger.hh"
38 #include "HistoManager.hh"
48 :histoManager (manager)
54 factoryCmd->
SetGuidance(
"set name for the histograms file");
61 optionCmd->
SetGuidance(
"set option for the histograms file");
63 histoCmd =
new G4UIcommand(
"/testem/histo/setHisto",
this);
64 histoCmd->
SetGuidance(
"Set bining of the histo number ih :");
65 histoCmd->
SetGuidance(
" nbBins; valMin; valMax; unit (of vmin and vmax)");
68 ih->
SetGuidance(
"histo number : from 1 to MaxHisto");
86 unit->
SetGuidance(
"if omitted, vmin and vmax are assumed dimensionless");
112 if (command == factoryCmd)
115 if (command == typeCmd)
118 if (command == optionCmd)
121 if (command == histoCmd)
123 std::istringstream is(newValues.c_str());
124 is >> ih >> nbBins >> vmin >> vmax >> unts;
128 histoManager->
SetHisto (ih,nbBins,vmin*vUnit,vmax*vUnit,unit);
131 if (command == rmhistoCmd)
void SetParameter(G4UIparameter *const newParameter)
void SetNewValue(G4UIcommand *, G4String)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetParameterRange(const char *theRange)
void SetDefaultValue(const char *theDefaultValue)
void SetFileType(const G4String &name)
HistoMessenger(HistoManager *)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void SetHisto(G4int, G4int, G4double, G4double, const G4String &unit="none")
static G4double ValueOf(const char *unitName)
void SetFileOption(const G4String &name)
void SetFileName(const G4String &name)
void SetCandidates(const char *candidateList)
void SetGuidance(const char *theGuidance)