58 mrpc_extrapolation_good_3=0;
59 mrpc_extrapolation_false_3=0;
116 mrpc_extrapolation_good_3=0;
117 mrpc_extrapolation_false_3=0;
123 extTrkNum = extTrkNum + ntrk;
144 TofTrackVec::iterator iter_tof = tofTrackVec->begin();
145 for( ; iter_tof!=tofTrackVec->end(); iter_tof++ ) {
188 else mrpc_extrapolation_false_3++;
230 std::cout<<
"############################# TofRec Summary #####################################" << std::endl;
231 std::cout<<
" ===> Number of Extrapolated tracks: " << extTrkNum <<std::endl;
232 std::cout<<
" ===> Number of valid Extraploated tracks: " << (inner1+outer1+double1+east1+west1+mrpc_east1_1+mrpc_east2_1+mrpc_west1_1+mrpc_west2_1) <<
" Barrel: " << (inner1+outer1+double1) <<
" Endcap: " << (east1+west1+mrpc_east1_1+mrpc_east2_1+mrpc_west1_1+mrpc_west2_1) << std::endl;
233 std::cout<<
" ===> TofRec: number of barrel tracks: " << (inner3+outer3+double3) <<
" Efficiency: " << setprecision(4) << (inner3+outer3+double3)*100.0/((inner1+outer1+double1)*1.0) <<
"%" << std::endl;
234 std::cout<<
" ===> Inner Layer hit only in total: " << inner1 <<
" \t" << inner2 <<
" \t" << inner3 <<
" \t" << inner4 << std::endl;
235 std::cout<<
" ===> Outer Layer hit only in total: " << outer1 <<
"\t" << outer2 <<
" \t" << outer3 <<
" \t" << outer4 << std::endl;
236 std::cout<<
" ===> Double Layer hit in total: " << double1 <<
" \t" << double2 <<
" \t" << double3 <<
" \t" << double4 << std::endl;
237 std::cout<<
" ===> TofRec: number of endcap tracks: " << (east3+west3+mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3) <<
" Efficiency: " << setprecision(4) << (east3+west3+mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3)*100.0/((east1+west1+mrpc_east1_1+mrpc_east2_1+mrpc_west1_1+mrpc_west2_1)*1.0) <<
"%" << std::endl;
238 std::cout<<
" ===> East endcap tracks in total: " << east1 <<
" \t" << east2 <<
" \t" << east3 <<
" \t" << east4 << std::endl;
239 std::cout<<
" ===> West endcap tracks in total: " << west1 <<
" \t" << west2 <<
" \t" << west3 <<
" \t" << west4 << std::endl;
240 std::cout<<
" ===> East 1 mrpc tracks in total: " << mrpc_east1_1 <<
" \t" << mrpc_east1_2 <<
" \t" << mrpc_east1_3 <<
" \t" << mrpc_east1_4 << std::endl;
241 std::cout<<
" ===> West 1 mrpc tracks in total: " << mrpc_west1_1 <<
" \t" << mrpc_west1_2 <<
" \t" << mrpc_west1_3 <<
" \t" << mrpc_west1_4 << std::endl;
242 std::cout<<
" ===> East 2 mrpc tracks in total: " << mrpc_east2_1 <<
" \t" << mrpc_east2_2 <<
" \t" << mrpc_east2_3 <<
" \t" << mrpc_east2_4 << std::endl;
243 std::cout<<
" ===> West 2 mrpc tracks in total: " << mrpc_west2_1 <<
" \t" << mrpc_west2_2 <<
" \t" << mrpc_west2_3 <<
" \t" << mrpc_west2_4 << std::endl;
245 std::cout<<
" ===> The invalid Extend tracks in total: "<< nohit1 <<
" \t" << nohit2 <<
" \t" << nohit3 <<
" \t" << nohit4 <<std::endl;
247 std::cout<<
" ==> Correct MRPC extrapolation: " << (mrpc_extrapolation_good_3*100.0)/((mrpc_extrapolation_good_3+mrpc_extrapolation_false_3)*1.0)<<
"%" << std::endl;
249 std::cout<<
"############################# End Summary #######################################" <<std::endl;
272 std::cout<<
"$$$$$$$ Summary of Bhabha Selection Criteria $$$$$$$$$$$$$$$$$$$$$"<<std::endl;
273 std::cout <<
"0 Total umber of events: "<<nbb[0]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[0])*100.0/double(nbb[0])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[0])*100.0/double(nbb[0])<<
"%"<<std::endl;
274 std::cout <<
"1 Event Start Time: "<<nbb[1]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[1])*100.0/double(nbb[0])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[1])*100.0/double(nbb[0])<<
"%"<<std::endl;
275 std::cout <<
"2 N_ext_track = 2: "<<nbb[2]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[2])*100.0/double(nbb[1])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[2])*100.0/double(nbb[0])<<
"%"<<std::endl;
276 std::cout <<
"3 N_mdc_track = 2: "<<nbb[3]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[3])*100.0/double(nbb[2])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[3])*100.0/double(nbb[0])<<
"%"<<std::endl;
277 std::cout <<
"4 EMC reconstructed: "<<nbb[4]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[4])*100.0/double(nbb[3])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[4])*100.0/double(nbb[0])<<
"%"<<std::endl;
278 std::cout <<
"5 N_shower >= 2: "<<nbb[5]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[5])*100.0/double(nbb[4])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[5])*100.0/double(nbb[0])<<
"%"<<std::endl;
279 std::cout <<
"6 Total charge = 0: "<<nbb[6]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[6])*100.0/double(nbb[5])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[6])*100.0/double(nbb[0])<<
"%"<<std::endl;
280 std::cout <<
"7 Back to back: "<<nbb[7]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[7])*100.0/double(nbb[6])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[7])*100.0/double(nbb[0])<<
"%"<<std::endl;
281 if( calibData==
"Bhabha" ) {
282 std::cout <<
"8 Kalman Filter: "<<nbb[8]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[8])*100.0/double(nbb[7])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[8])*100.0/double(nbb[0])<<
"%"<<std::endl;
283 std::cout <<
"9 Distance of ext-shower: "<<nbb[9]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[9])*100.0/double(nbb[8])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[9])*100.0/double(nbb[0])<<
"%"<<std::endl;
284 std::cout <<
"10 Vertex cut of 1st trk: "<<nbb[10]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[10])*100.0/double(nbb[9])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[10])*100.0/double(nbb[0])<<
"%"<<std::endl;
285 std::cout <<
"11 Vertex cut of 2nd trk: "<<nbb[11]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[11])*100.0/double(nbb[10])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[11])*100.0/double(nbb[0])<<
"%"<<std::endl;
286 std::cout <<
"12 Delta phi: "<<nbb[12]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[12])*100.0/double(nbb[11])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[12])*100.0/double(nbb[0])<<
"%"<<std::endl;
287 std::cout <<
"13 Energy of Shower: "<<nbb[13]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[13])*100.0/double(nbb[12])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[13])*100.0/double(nbb[0])<<
"%"<<std::endl;
288 std::cout <<
"14 Energy of others: "<<nbb[14]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[14])*100.0/double(nbb[13])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[14])*100.0/double(nbb[0])<<
"%"<<std::endl;
290 else if( calibData==
"Dimu") {
291 std::cout <<
"8 Kalman Filter: "<<nbb[8]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[8])*100.0/double(nbb[7])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[8])*100.0/double(nbb[0])<<
"%"<<std::endl;
292 std::cout <<
"9 Energy of Showers: "<<nbb[9]<<
"\t"<<
"Ratio1: "<<setprecision(4)<<double(nbb[9])*100.0/double(nbb[8])<<
"%"<<
"\t"<<
"Ratio2: "<<setprecision(4)<<double(nbb[9])*100.0/double(nbb[0])<<
"%"<<std::endl;
294 std::cout<<
"$$$$$$$ End of Summary $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"<<std::endl;
const unsigned int nParBhabha
void setExtTrackNum(unsigned int ntrk)
void setTrack4(MrpcTrack *&tof)
void setTrack1(MrpcTrack *&tof)
void setTrack3(MrpcTrack *&tof)
void setTrack2(MrpcTrack *&tof)
void setTrack1Col(std::vector< MrpcTrack * > *&tofTrackVec)
void addNumber(unsigned int i)
void finalBhabha(std::string calibData)
ExtTrackCase hitCase() const
bool is_mrpc_extrapolation_good()