71{
72 if(numberOfEvent == 0)
73 return;
74 auto TotNbofEvents = G4double(numberOfEvent);
75
79 if(rmsTIR > 0.)
80 rmsTIR = std::sqrt(rmsTIR);
81 else
82 rmsTIR = 0.;
83
87 if(rmsExiting > 0.)
88 rmsExiting = std::sqrt(rmsExiting);
89 else
90 rmsExiting = 0.;
91
95 if(rmsEscapedEnd > 0.)
96 rmsEscapedEnd = std::sqrt(rmsEscapedEnd);
97 else
98 rmsEscapedEnd = 0.;
99
103 if(rmsEscapedMid > 0.)
104 rmsEscapedMid = std::sqrt(rmsEscapedMid);
105 else
106 rmsEscapedMid = 0.;
107
111 if(rmsBounce > 0.)
112 rmsBounce = std::sqrt(rmsBounce);
113 else
114 rmsBounce = 0.;
115
119 if(rmsWLSBounce > 0.)
120 rmsWLSBounce = std::sqrt(rmsWLSBounce);
121 else
122 rmsWLSBounce = 0.;
123
127 if(rmsClad1Bounce > 0.)
128 rmsClad1Bounce = std::sqrt(rmsClad1Bounce);
129 else
130 rmsClad1Bounce = 0.;
131
135 if(rmsClad2Bounce > 0.)
136 rmsClad2Bounce = std::sqrt(rmsClad2Bounce);
137 else
138 rmsClad2Bounce = 0.;
139
143 if(rmsReflected > 0.)
144 rmsReflected = std::sqrt(rmsReflected);
145 else
146 rmsReflected = 0.;
147
151 if(rmsEscaped > 0.)
152 rmsEscaped = std::sqrt(rmsEscaped);
153 else
154 rmsEscaped = 0.;
155
159 if(rmsMirror > 0.)
160 rmsMirror = std::sqrt(rmsMirror);
161 else
162 rmsMirror = 0.;
163
167 if(rmsDetectorHits > 0.)
168 rmsDetectorHits = std::sqrt(rmsDetectorHits);
169 else
170 rmsDetectorHits = 0.;
171
172 G4int prec = G4cout.precision(3);
173 G4cout << "\n ======================== run summary =====================\n";
174 G4cout << "Average number per event:" << G4endl;
175 G4cout <<
" TIR: " <<
fNTIR <<
" +- " << rmsTIR << G4endl
176 <<
" Exiting: " <<
fNExiting <<
" +- " << rmsExiting << G4endl
177 <<
" Escaped Mid: " <<
fEscapedMid <<
" +- " << rmsEscapedMid
178 << G4endl <<
" Escaped End: " <<
fEscapedEnd <<
" +- "
179 << rmsEscapedEnd << G4endl <<
" Bounced: " <<
fBounce <<
" +- "
180 << rmsBounce << G4endl <<
" WLS Bounce: " <<
fWLSBounce <<
" +- "
181 << rmsWLSBounce << G4endl <<
" Clad1 Bounce: " <<
fClad1Bounce
182 << " +- " << rmsClad1Bounce << G4endl
183 <<
" Clad2 Bounce: " <<
fClad2Bounce <<
" +- " << rmsClad2Bounce
184 << G4endl <<
" Reflected: " <<
fReflected <<
" +- " << rmsReflected
185 << G4endl <<
" Escaped: " <<
fEscaped <<
" +- " << rmsEscaped
186 << G4endl <<
" Mirror: " <<
fMirror <<
" +- " << rmsMirror
188 << rmsDetectorHits << G4endl;
189
190 G4cout << G4endl;
191 G4cout.precision(prec);
192}