261 TFile
f1(
"EndTofQElecPar.root");
262 TTree* t11=(TTree*)
f1.Get(
"QElecEndPar");
263 if(0==t11) { std::cerr<<
" can't get tree :QElecEndPar in file EndTofQElecPar.root"<<std::endl;
return false;}
264 TTree* t12=(TTree*)
f1.Get(
"EndBoardNum");
265 if(0==t12) { std::cerr<<
" can't get tree :EndBoardNum in file EndTofQElecPar.root"<<std::endl;
return false;}
267 TFile f2(
"BarTofQElecPar.root");
268 TTree* t21=(TTree*)f2.Get(
"QElecBarParEast");
269 if(0==t21) { std::cerr<<
" can't get tree :QElecBarParEast in file BarTofQElecPar.root"<<std::endl;
return false;}
270 TTree* t22=(TTree*)f2.Get(
"QElecBarParWest");
271 if(0==t22) { std::cerr<<
" can't get tree :QElecBarParWest in file BarTofQElecPar.root"<<std::endl;
return false;}
272 TTree* t23=(TTree*)f2.Get(
"BarBoardNum");
273 if(0==t23) { std::cerr<<
" can't get tree :BarBoardNum in file BarTofQElecPar.root"<<std::endl;
return false;}
275 TFile f3(
"SimEndTofQElecPar.root");
276 TTree* t31=(TTree*)f3.Get(
"SimQElecEndPar");
277 if(0==t31) { std::cerr<<
" can't get tree :SimQElecEndPar in file SimEndTofQElecPar.root"<<std::endl;
return false;}
279 TFile f4(
"SimBarTofQElecPar.root");
280 TTree* t41=(TTree*)f4.Get(
"SimQElecBarParEast");
281 if(0==t41) { std::cerr<<
" can't get tree :SimQElecBarParEast in file SimBarTofQElecPar.root"<<std::endl;
return false;}
282 TTree* t42=(TTree*)f4.Get(
"SimQElecBarParWest");
283 if(0==t42) { std::cerr<<
" can't get tree :SimQElecBarParWest in file SimBarTofQElecPar.root"<<std::endl;
return false;}
285 TFile fnew(
"TofQElecConst.root",
"RECREATE");
sprintf(cut,"kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)