46 #include "HistoManager.hh"
92 : fPrimaryDef(nullptr),
95 fPrimaryKineticEnergy(0.0),
121 fHisto->Add1D(
"1",
"Energy deposition (MeV/mm/event) in the target",
123 fHisto->Add1D(
"2",
"Log10 Energy (MeV) of gammas",
fNBinsE,-5.,5.,1.0);
124 fHisto->Add1D(
"3",
"Log10 Energy (MeV) of electrons",
fNBinsE,-5.,5.,1.0);
125 fHisto->Add1D(
"4",
"Log10 Energy (MeV) of positrons",
fNBinsE,-5.,5.,1.0);
126 fHisto->Add1D(
"5",
"Log10 Energy (MeV) of protons",
fNBinsE,-5.,5.,1.0);
127 fHisto->Add1D(
"6",
"Log10 Energy (MeV) of neutrons",
fNBinsE,-5.,5.,1.0);
128 fHisto->Add1D(
"7",
"Log10 Energy (MeV) of charged pions",
fNBinsE,-4.,6.,1.0);
129 fHisto->Add1D(
"8",
"Log10 Energy (MeV) of pi0",
fNBinsE,-4.,6.,1.0);
130 fHisto->Add1D(
"9",
"Log10 Energy (MeV) of charged kaons",
fNBinsE,-4.,6.,1.0);
131 fHisto->Add1D(
"10",
"Log10 Energy (MeV) of neutral kaons",
fNBinsE,-4.,6.,1.0);
132 fHisto->Add1D(
"11",
"Log10 Energy (MeV) of deuterons and tritons",
134 fHisto->Add1D(
"12",
"Log10 Energy (MeV) of He3 and alpha",
fNBinsE,-5.,5.,1.0);
135 fHisto->Add1D(
"13",
"Log10 Energy (MeV) of Generic Ions",
fNBinsE,-5.,5.,1.0);
136 fHisto->Add1D(
"14",
"Log10 Energy (MeV) of muons",
fNBinsE,-4.,6.,1.0);
137 fHisto->Add1D(
"15",
"log10 Energy (MeV) of side-leaked neutrons",
139 fHisto->Add1D(
"16",
"log10 Energy (MeV) of forward-leaked neutrons",
141 fHisto->Add1D(
"17",
"log10 Energy (MeV) of backward-leaked neutrons",
143 fHisto->Add1D(
"18",
"log10 Energy (MeV) of leaking protons",
145 fHisto->Add1D(
"19",
"log10 Energy (MeV) of leaking charged pions",
147 fHisto->Add1D(
"20",
"Log10 Energy (MeV) of pi+",
fNBinsE,-4.,6.,1.0);
148 fHisto->Add1D(
"21",
"Log10 Energy (MeV) of pi-",
fNBinsE,-4.,6.,1.0);
150 "Energy deposition in the target normalized to beam energy",
153 "EM energy deposition in the target normalized to beam energy",
156 "Pion energy deposition in the target normalized to beam energy",
159 "Proton energy deposition in the target normalized to beam energy",
161 fHisto->Add1D(
"26",
"Energy (MeV) of pi+",
fNBinsE,0.,500.,1.0);
162 fHisto->Add1D(
"27",
"Energy (MeV) of pi-",
fNBinsE,0.,500.,1.0);
163 fHisto->Add1D(
"28",
"Energy (MeV) of pi0",
fNBinsE,0.,500.,1.0);
200 G4cout <<
"HistoManager: Histograms are booked and run has been started"
210 G4cout <<
"HistoManager: End of run actions are started" <<
G4endl;
213 G4cout<<
"========================================================"<<
G4endl;
216 if(
fNevt > 0) { x = 1.0/
x; }
244 G4cout <<
"Beam particle "
246 G4cout <<
"Beam Energy(MeV) "
248 G4cout <<
"Number of events "
250 G4cout << std::setprecision(4) <<
"Average energy deposit (MeV) "
253 G4cout << std::setprecision(4) <<
"Average number of steps "
255 G4cout << std::setprecision(4) <<
"Average number of gamma "
257 G4cout << std::setprecision(4) <<
"Average number of e- "
259 G4cout << std::setprecision(4) <<
"Average number of e+ "
261 G4cout << std::setprecision(4) <<
"Average number of neutrons "
263 G4cout << std::setprecision(4) <<
"Average number of protons "
265 G4cout << std::setprecision(4) <<
"Average number of antiprotons "
267 G4cout << std::setprecision(4) <<
"Average number of pi+ & pi- "
269 G4cout << std::setprecision(4) <<
"Average number of pi0 "
271 G4cout << std::setprecision(4) <<
"Average number of kaons "
273 G4cout << std::setprecision(4) <<
"Average number of muons "
275 G4cout << std::setprecision(4) <<
"Average number of deuterons+tritons "
277 G4cout << std::setprecision(4) <<
"Average number of He3+alpha "
279 G4cout << std::setprecision(4) <<
"Average number of ions "
281 G4cout << std::setprecision(4) <<
"Average number of forward neutrons "
283 G4cout << std::setprecision(4) <<
"Average number of reflected neutrons "
285 G4cout << std::setprecision(4) <<
"Average number of leaked neutrons "
287 G4cout << std::setprecision(4) <<
"Average number of proton leak "
289 G4cout << std::setprecision(4) <<
"Average number of pion leak "
291 G4cout<<
"========================================================"<<
G4endl;
341 G4cout <<
"### Primary " << name
342 <<
" kinE(MeV)= " << e/
MeV
351 G4cout <<
"=== Secondary " << name
352 <<
" kinE(MeV)= " << e/
MeV
357 e = std::log10(e/
MeV);
424 G4cout <<
"TargetSD::ProcessHits: beta1= "
456 G4cout <<
"HistoManager::AddEnergy: e(keV)= " << fEdep/
keV
457 <<
"; z(mm)= " << z/
mm
483 if(z > -
fAbsZ0 && dir.
z() > 0.0) {
488 }
else isLeaking =
true;
491 }
else if (z <
fAbsZ0 && dir.
z() < 0.0) {
496 }
else isLeaking =
true;
504 }
else isLeaking =
true;