35 #include "RunAction.hh"
36 #include "HistoManager.hh"
47 fSumEAbs(0.), fSum2EAbs(0.),
48 fSumEGap(0.), fSum2EGap(0.),
49 fSumLAbs(0.), fSum2LAbs(0.),
50 fSumLGap(0.), fSum2LGap(0.)
93 if (NbOfEvents == 0)
return;
99 if (rmsEAbs >0.) rmsEAbs = std::sqrt(rmsEAbs);
else rmsEAbs = 0.;
103 if (rmsEGap >0.) rmsEGap = std::sqrt(rmsEGap);
else rmsEGap = 0.;
107 if (rmsLAbs >0.) rmsLAbs = std::sqrt(rmsLAbs);
else rmsLAbs = 0.;
111 if (rmsLGap >0.) rmsLGap = std::sqrt(rmsLGap);
else rmsLGap = 0.;
116 <<
"\n--------------------End of Run------------------------------\n"
117 <<
"\n mean Energy in Absorber : " <<
G4BestUnit(fSumEAbs,
"Energy")
119 <<
"\n mean Energy in Gap : " <<
G4BestUnit(fSumEGap,
"Energy")
124 <<
"\n mean trackLength in Absorber : " <<
G4BestUnit(fSumLAbs,
"Length")
126 <<
"\n mean trackLength in Gap : " <<
G4BestUnit(fSumLGap,
"Length")
128 <<
"\n------------------------------------------------------------\n"
void EndOfRunAction(const G4Run *)
HistoManager * fHistoManager
void BeginOfRunAction(const G4Run *)
G4int GetNumberOfEvent() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
void FillPerEvent(G4double, G4double, G4double, G4double)