219 {
220 std::cout << "$$$$$$$ Summary of Bhabha Selection Criteria $$$$$$$$$$$$$$$$$$$$$"
221 << std::endl;
222 std::cout << "0 Total umber of events: " << nbb[0] << "\t"
223 << "Ratio1: " << setprecision( 4 ) << double( nbb[0] ) * 100.0 / double( nbb[0] )
224 << "%"
225 << "\t"
226 << "Ratio2: " << setprecision( 4 ) << double( nbb[0] ) * 100.0 / double( nbb[0] )
227 << "%" << std::endl;
228 std::cout << "1 Event Start Time: " << nbb[1] << "\t"
229 << "Ratio1: " << setprecision( 4 ) << double( nbb[1] ) * 100.0 / double( nbb[0] )
230 << "%"
231 << "\t"
232 << "Ratio2: " << setprecision( 4 ) << double( nbb[1] ) * 100.0 / double( nbb[0] )
233 << "%" << std::endl;
234 std::cout << "2 N_ext_track = 2: " << nbb[2] << "\t"
235 << "Ratio1: " << setprecision( 4 ) << double( nbb[2] ) * 100.0 / double( nbb[1] )
236 << "%"
237 << "\t"
238 << "Ratio2: " << setprecision( 4 ) << double( nbb[2] ) * 100.0 / double( nbb[0] )
239 << "%" << std::endl;
240 std::cout << "3 N_mdc_track = 2: " << nbb[3] << "\t"
241 << "Ratio1: " << setprecision( 4 ) << double( nbb[3] ) * 100.0 / double( nbb[2] )
242 << "%"
243 << "\t"
244 << "Ratio2: " << setprecision( 4 ) << double( nbb[3] ) * 100.0 / double( nbb[0] )
245 << "%" << std::endl;
246 std::cout << "4 EMC reconstructed: " << nbb[4] << "\t"
247 << "Ratio1: " << setprecision( 4 ) << double( nbb[4] ) * 100.0 / double( nbb[3] )
248 << "%"
249 << "\t"
250 << "Ratio2: " << setprecision( 4 ) << double( nbb[4] ) * 100.0 / double( nbb[0] )
251 << "%" << std::endl;
252 std::cout << "5 N_shower >= 2: " << nbb[5] << "\t"
253 << "Ratio1: " << setprecision( 4 ) << double( nbb[5] ) * 100.0 / double( nbb[4] )
254 << "%"
255 << "\t"
256 << "Ratio2: " << setprecision( 4 ) << double( nbb[5] ) * 100.0 / double( nbb[0] )
257 << "%" << std::endl;
258 std::cout << "6 Total charge = 0: " << nbb[6] << "\t"
259 << "Ratio1: " << setprecision( 4 ) << double( nbb[6] ) * 100.0 / double( nbb[5] )
260 << "%"
261 << "\t"
262 << "Ratio2: " << setprecision( 4 ) << double( nbb[6] ) * 100.0 / double( nbb[0] )
263 << "%" << std::endl;
264 std::cout << "7 Back to back: " << nbb[7] << "\t"
265 << "Ratio1: " << setprecision( 4 ) << double( nbb[7] ) * 100.0 / double( nbb[6] )
266 << "%"
267 << "\t"
268 << "Ratio2: " << setprecision( 4 ) << double( nbb[7] ) * 100.0 / double( nbb[0] )
269 << "%" << std::endl;
270 std::cout << "8 Kalman Filter: " << nbb[8] << "\t"
271 << "Ratio1: " << setprecision( 4 ) << double( nbb[8] ) * 100.0 / double( nbb[7] )
272 << "%"
273 << "\t"
274 << "Ratio2: " << setprecision( 4 ) << double( nbb[8] ) * 100.0 / double( nbb[0] )
275 << "%" << std::endl;
276 std::cout << "9 Distance of ext-shower: " << nbb[9] << "\t"
277 << "Ratio1: " << setprecision( 4 ) << double( nbb[9] ) * 100.0 / double( nbb[8] )
278 << "%"
279 << "\t"
280 << "Ratio2: " << setprecision( 4 ) << double( nbb[9] ) * 100.0 / double( nbb[0] )
281 << "%" << std::endl;
282 std::cout << "10 Vertex cut of 1st trk: " << nbb[10] << "\t"
283 << "Ratio1: " << setprecision( 4 ) << double( nbb[10] ) * 100.0 / double( nbb[9] )
284 << "%"
285 << "\t"
286 << "Ratio2: " << setprecision( 4 ) << double( nbb[10] ) * 100.0 / double( nbb[0] )
287 << "%" << std::endl;
288 std::cout << "11 Vertex cut of 2nd trk: " << nbb[11] << "\t"
289 << "Ratio1: " << setprecision( 4 ) << double( nbb[11] ) * 100.0 / double( nbb[10] )
290 << "%"
291 << "\t"
292 << "Ratio2: " << setprecision( 4 ) << double( nbb[11] ) * 100.0 / double( nbb[0] )
293 << "%" << std::endl;
294 std::cout << "12 Delta phi: " << nbb[12] << "\t"
295 << "Ratio1: " << setprecision( 4 ) << double( nbb[12] ) * 100.0 / double( nbb[11] )
296 << "%"
297 << "\t"
298 << "Ratio2: " << setprecision( 4 ) << double( nbb[12] ) * 100.0 / double( nbb[0] )
299 << "%" << std::endl;
300 std::cout << "13 Energy of Shower: " << nbb[13] << "\t"
301 << "Ratio1: " << setprecision( 4 ) << double( nbb[13] ) * 100.0 / double( nbb[12] )
302 << "%"
303 << "\t"
304 << "Ratio2: " << setprecision( 4 ) << double( nbb[13] ) * 100.0 / double( nbb[0] )
305 << "%" << std::endl;
306 if ( calibData == "Bhabha" )
307 {
308 std::cout << "14 Energy of others: " << nbb[14] << "\t"
309 << "Ratio1: " << setprecision( 4 )
310 << double( nbb[14] ) * 100.0 / double( nbb[13] ) << "%"
311 << "\t"
312 << "Ratio2: " << setprecision( 4 )
313 << double( nbb[14] ) * 100.0 / double( nbb[0] ) << "%" << std::endl;
314 }
315 else if ( calibData == "Dimu" ) {}
316 std::cout << "$$$$$$$ End of Summary $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"
317 << std::endl;
318 return;
319}