33 #include "RunAction.hh"
35 #include "DetectorConstruction.hh"
36 #include "PrimaryGeneratorAction.hh"
37 #include "HistoManager.hh"
95 while ((i<nbProc)&&((*
fProcCounter)[i]->GetName()!=procName)) i++;
98 (*fProcCounter)[i]->Count();
106 if (NbOfEvents == 0)
return;
117 G4cout <<
"\n The run consists of " << NbOfEvents <<
" "<< Particle <<
" of "
120 << material->
GetName() <<
" (density: "
124 G4cout <<
"\n Process calls frequency --->";
126 G4String procName = (*fProcCounter)[i]->GetName();
127 G4int count = (*fProcCounter)[i]->GetCounter();
128 G4cout <<
"\t" << procName <<
" = " << count;
137 G4double rmsTPL = std::sqrt(std::fabs(MeanTPL2 - MeanTPL*MeanTPL));
141 G4double rmsGPL = std::sqrt(std::fabs(MeanGPL2 - MeanGPL*MeanGPL));
145 G4double rmsLaD = std::sqrt(std::fabs(MeanLaD2 - MeanLaD*MeanLaD));
149 G4double rmsPsi = std::sqrt(std::fabs(MeanPsi2 - MeanPsi*MeanPsi));
153 G4double rmsTeta = std::sqrt(std::fabs(MeanTeta2 - MeanTeta*MeanTeta));
158 std::sqrt(std::fabs(MeanCorrel2-MeanCorrel*MeanCorrel));
162 <<
"\n geomPathLength :\t" <<
G4BestUnit(MeanGPL,
"Length")
164 <<
"\n lateralDisplac :\t" <<
G4BestUnit(MeanLaD,
"Length")
166 <<
"\n Psi :\t" << MeanPsi/
mrad <<
" mrad"
167 <<
" +- " << rmsPsi /
mrad <<
" mrad"
168 <<
" (" << MeanPsi/
deg <<
" deg"
169 <<
" +- " << rmsPsi /
deg <<
" deg)"
172 G4cout <<
"\n Theta_plane :\t" << rmsTeta/
mrad <<
" mrad"
173 <<
" (" << rmsTeta/
deg <<
" deg)"
174 <<
"\n phi correlation:\t" << MeanCorrel
175 <<
" +- " << rmsCorrel
176 <<
" (std::cos(phi_pos - phi_dir))"
182 G4cout <<
"\n Verification from G4EmCalculator. \n";
194 if (MeanTPL/range >= 0.99) efFacrange = 1.;
197 <<
"\n range from restrict dE/dx:\t" <<
G4BestUnit(range,
"Length")
198 <<
"\n ---> effective facRange :\t" << efFacrange
201 G4cout <<
"\n compute theta0 from Highland :\t"
222 if ( analysisManager->
IsActive() ) {
223 analysisManager->
Write();
248 G4double teta0 = 13.6*
MeV*z*std::sqrt(t)*(1.+0.038*std::log(t))/bpc;