34 #include "DetectorConstruction.hh"
35 #include "PrimaryGeneratorAction.hh"
36 #include "HistoManager.hh"
133 const Run* localRun =
static_cast<const Run*
>(run);
161 G4cout <<
"Histo: End of run actions are started" <<
G4endl;
164 G4cout<<
"========================================================"<<
G4endl;
166 if(
fNevt > 0) { x = 1.0/
x; }
177 G4cout <<
"Number of events "
180 << std::setprecision(4) <<
"Average number of e- "
183 << std::setprecision(4) <<
"Average number of gamma "
186 << std::setprecision(4) <<
"Average number of e+ "
189 << std::setprecision(4) <<
"Average number of steps in the phantom "
192 << std::setprecision(4) <<
"Average number of e- steps in the target "
195 << std::setprecision(4) <<
"Average number of g produced in the target "
198 << std::setprecision(4) <<
"Average number of e- produced in the target "
201 << std::setprecision(4) <<
"Average number of g produced in the phantom "
204 << std::setprecision(4) <<
"Average number of e- produced in the phantom "
207 << std::setprecision(4) <<
"Total fGamma fluence in front of the phantom "
209 G4cout<<
"========================================================"<<
G4endl;
229 if(nr > 0.0) { nr = 1./nr; }
233 if(nr > 0.0) { nr = 1./nr; }
244 "Cannot write ROOT file.");
246 G4cout <<
"### Histo::Save: Histograms are saved" <<
G4endl;
316 G4cout <<
"TrackingAction: Primary "
320 <<
"; pos= " << pos <<
"; dir= " << dir <<
G4endl;
324 else if (0 < pid && particle ==
fElectron)
327 G4cout <<
"TrackingAction: Secondary electron " <<
G4endl;
335 else if (0 < pid && particle ==
fPositron) {
337 G4cout <<
"TrackingAction: Secondary positron " <<
G4endl;
343 else if (0 < pid && particle ==
fGamma) {
345 G4cout <<
"TrackingAction: Secondary gamma; parentID= " << pid
365 if(bin1 >= fNBinsR) { bin1 = fNBinsR-1; }
381 G4cout <<
"Histo: edep(MeV)= " << edep/
MeV <<
" at binz= " << nzbin
382 <<
" r1= " << r1 <<
" z1= " << z1
383 <<
" r2= " << r2 <<
" z2= " << z2
384 <<
" r0= " << r0 <<
" z0= " << z0
389 if(bin >= fNBinsR) { bin = fNBinsR-1; }
408 if(r2 > fStepR) { w *= (fStepR -
r1)/(r2 - r1); }
428 G4double rr2 = r1 + dr*(zz2-zz1)/dz;
429 for(bin=bin1; bin<=bin2; bin++) {
436 if(rr2 > fStepR) w *= (fStepR - rr1)/(rr2 - rr1);
443 rr2 = rr1 + dr*(zz2 - zz1)/dz;