34 #include "HistoManager.hh"
35 #include "HistoMessenger.hh"
88 G4cout <<
"\n---> HistoManager::book(): cannot open " <<
fileName[1]
117 analysisManager->
Write();
131 if (ih > kMaxHisto) {
132 G4cout <<
"---> warning from HistoManager::FillHisto() : histo " << ih
133 <<
"does not fExist; e= " << e <<
" w= " << weight <<
G4endl;
145 if (ih > kMaxHisto) {
146 G4cout <<
"---> warning from HistoManager::SetHisto() : histo " << ih
147 <<
"does not fExist" <<
G4endl;
151 const G4String id[] = {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
152 "10",
"11",
"12",
"13",
"14"};
154 "log10(Eloss/Emu) muIonization",
155 "log10(Eloss/Emu) muPair",
156 "log10(Eloss/Emu) muBrems",
157 "log10(Eloss/Emu) muNuclear",
158 "log10(Eloss/Emu) hIonization",
159 "log10(Eloss/Emu) hPair",
160 "log10(Eloss/Emu) hBrems",
164 "log10(Eloss/Emu) muIonization",
165 "log10(Eloss/Emu) muPair",
166 "log10(Eloss/Emu) muBrems",
167 "log10(Eloss/Emu) muNuclear"
173 if (unit !=
"none") {
174 titl = title[ih] +
" (" + unit +
")";
188 G4cout <<
"----> SetHisto " << ih <<
": " << titl <<
"; "
189 << nbins <<
" bins from "
190 << vmin <<
" " << unit <<
" to " << vmax <<
" " << unit <<
G4endl;
198 if (ih >= kMaxHisto) {
199 G4cout <<
"---> warning from HistoManager::Normalize() : histo " << ih
200 <<
" fac= " << fac <<
G4endl;
211 if (ih < kMaxHisto) {
fAscii[ih] =
true;
fAscii[0] =
true; }
213 G4cout <<
"---> warning from HistoManager::PrintHisto() : histo " << ih
214 <<
"does not exist" <<
G4endl;
226 std::ofstream File(name, std::ios::out);
229 <<
"\n---> HistoManager::saveAscii(): cannot open " << name <<
G4endl;
233 File.setf( std::ios::scientific, std::ios::floatfield );
239 File <<
"\n 1D histogram " << ih <<
": " <<
fTitle[ih]
240 <<
"\n \n \t X \t\t Y" <<
G4endl;
243 File <<
" " << iBin <<
"\t"
244 <<
fHistPt[ih]->axis().bin_center(iBin) <<
"\t"
245 <<
fHistPt[ih]->bin_height(iBin)