1#include "MrpcRecDBS/MrpcDBSTrack.h"
2#include "MrpcRecDBS/MrpcDBSCount.h"
58 mrpc_trans_with_ext_true_2=0;
59 mrpc_trans_with_ext_false_2=0;
60 mrpc_trans_with_dbs_true_2=0;
61 mrpc_trans_with_dbs_false_2=0;
62 mrpc_trans_with_ext_true_3=0;
63 mrpc_trans_with_ext_false_3=0;
64 mrpc_trans_with_dbs_true_3=0;
65 mrpc_trans_with_dbs_false_3=0;
66 mrpc_trans_with_ext_true_4=0;
67 mrpc_trans_with_ext_false_4=0;
68 mrpc_trans_with_dbs_true_4=0;
69 mrpc_trans_with_dbs_false_4=0;
129 mrpc_trans_with_ext_true_2=0;
130 mrpc_trans_with_ext_false_2=0;
131 mrpc_trans_with_dbs_true_2=0;
132 mrpc_trans_with_dbs_false_2=0;
134 mrpc_trans_with_ext_true_3=0;
135 mrpc_trans_with_ext_false_3=0;
136 mrpc_trans_with_dbs_true_3=0;
137 mrpc_trans_with_dbs_false_3=0;
139 mrpc_trans_with_ext_true_4=0;
140 mrpc_trans_with_ext_false_4=0;
141 mrpc_trans_with_dbs_true_4=0;
142 mrpc_trans_with_dbs_false_4=0;
148 extTrkNum = extTrkNum + ntrk;
169 TofTrackVec::iterator iter_tof = tofTrackVec->begin();
170 for( ; iter_tof!=tofTrackVec->end(); iter_tof++ ) {
215 else mrpc_trans_with_dbs_false_3++;
245 else mrpc_trans_with_dbs_false_4++;
255 std::cout<<
"############################# TofRec Summary #####################################" << std::endl;
256 std::cout<<
" ===> Number of Extrapolated tracks: " << extTrkNum <<std::endl;
257 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;
258 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;
259 std::cout<<
" ===> Inner Layer hit only in total: " << inner1 <<
" \t" << inner2 <<
" \t" << inner3 <<
" \t" << inner4 << std::endl;
260 std::cout<<
" ===> Outer Layer hit only in total: " << outer1 <<
"\t" << outer2 <<
" \t" << outer3 <<
" \t" << outer4 << std::endl;
261 std::cout<<
" ===> Double Layer hit in total: " << double1 <<
" \t" << double2 <<
" \t" << double3 <<
" \t" << double4 << std::endl;
262 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;
263 std::cout<<
" ===> East endcap tracks in total: " << east1 <<
" \t" << east2 <<
" \t" << east3 <<
" \t" << east4 << std::endl;
264 std::cout<<
" ===> West endcap tracks in total: " << west1 <<
" \t" << west2 <<
" \t" << west3 <<
" \t" << west4 << std::endl;
265 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;
266 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;
267 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;
268 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;
270 std::cout<<
" ===> The invalid Extend tracks in total: "<< nohit1 <<
" \t" << nohit2 <<
" \t" << nohit3 <<
" \t" << nohit4 <<std::endl;
272 if((mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3) >0)
274 std::cout<<
" ==> MRPC extrapolation (before calibration): " << endl;
275 std::cout<<
" Determine transmision time without extrapolation : "<< setprecision(3) << (double)mrpc_trans_with_dbs_true_3*100.0/((
double)(mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3)*1.0)<<
" % "<<endl ;
276 std::cout<<
" Determine transmision time with extrapolation : "<< setprecision(3) << (double)mrpc_trans_with_ext_true_3*100.0/((
double)(mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3)*1.0)<<
" % "<<endl ;
277 std::cout<<
" Determine transmision time with average value : "<< setprecision(3) <<
278 ((double)(mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3)-mrpc_trans_with_dbs_true_3-mrpc_trans_with_ext_true_3)*100.0/((
double)(mrpc_east1_3+mrpc_east2_3+mrpc_west1_3+mrpc_west2_3)*1.0)<<
" % "<<endl ;
280 if((mrpc_east1_4+mrpc_east2_4+mrpc_west1_4+mrpc_west2_4) >0)
282 std::cout<<
" ==> MRPC extrapolation (after calibration): " << endl;
283 std::cout<<
" Determine transmision time without extrapolation : "<< setprecision(3) << (double)mrpc_trans_with_dbs_true_4*100.0/((
double)(mrpc_east1_4+mrpc_east2_4+mrpc_west1_4+mrpc_west2_4)*1.0)<<
" % "<<endl ;
284 std::cout<<
" Determine transmision time with extrapolation : "<< setprecision(3) << (double)mrpc_trans_with_ext_true_4*100.0/((
double)(mrpc_east1_4+mrpc_east2_4+mrpc_west1_4+mrpc_west2_4)*1.0)<<
" % "<<endl ;
285 std::cout<<
" Determine transmision time with average value : "<< setprecision(3) <<
286 ((double)(mrpc_east1_4+mrpc_east2_4+mrpc_west1_4+mrpc_west2_4)-mrpc_trans_with_dbs_true_4-mrpc_trans_with_ext_true_4)*100.0/((
double)(mrpc_east1_4+mrpc_east2_4+mrpc_west1_4+mrpc_west2_4)*1.0)<<
" % "<<endl ;
291 std::cout<<
"############################# End Summary #######################################" <<std::endl;
void setTrack1(MrpcDBSTrack *&tof)
void setTrack2(MrpcDBSTrack *&tof)
void setTrack1Col(std::vector< MrpcDBSTrack * > *&tofTrackVec)
void setExtTrackNum(unsigned int ntrk)
void setTrack3(MrpcDBSTrack *&tof)
void setTrack4(MrpcDBSTrack *&tof)
ExtTrackCase hitCase() const
bool trans_with_dbs_info(void)
bool trans_with_extrap_track(void)