8 os<<
'\t' <<setw(40)<<
"MdcDigi"<<setw(30)<<
"TofDigi"<<setw(29)<<
"EmcDigi"<<
"MucDig"<<endl;
9 os<<
'\t' <<
"(layer , wire, trkIndex)"<<
" "<<
"(B/EC, layer, phi_module, trkIndex)"<<
" "<<
"(B/EC, theta, phi, trkIndex)"<<
" "<<
"(B/EC, segment, layer, strip, trkIndex)"<<endl;
12 SmartDataPtr<MdcDigiCol> mdcCol(eventSvc(),
"/Event/Digi/MdcDigiCol");
13 SmartDataPtr<TofDigiCol> tofCol(eventSvc(),
"/Event/Digi/TofDigiCol");
14 SmartDataPtr<EmcDigiCol> emcCol(eventSvc(),
"/Event/Digi/EmcDigiCol");
15 SmartDataPtr<MucDigiCol> mucCol(eventSvc(),
"/Event/Digi/MucDigiCol");
17 MdcDigiCol::const_iterator it_mdc = mdcCol->begin();
18 TofDigiCol::const_iterator it_tof = tofCol->begin();
19 EmcDigiCol::const_iterator it_emc = emcCol->begin();
20 MucDigiCol::const_iterator it_muc = mucCol->begin();
22 vector<MdcDigiCol::const_iterator> vmdc;
23 vector<TofDigiCol::const_iterator> vtof;
24 vector<EmcDigiCol::const_iterator> vemc;
25 vector<MucDigiCol::const_iterator> vmuc;
28 if(mdcCol->size() != 0)
30 for(;it_mdc != mdcCol->end();it_mdc++)
32 vmdc.push_back(it_mdc);
35 if(tofCol->size() != 0)
37 for(;it_tof != tofCol->end();it_tof++)
39 vtof.push_back(it_tof);
43 if(emcCol->size() != 0)
45 for(;it_emc != emcCol->end();it_emc++)
47 vemc.push_back(it_emc);
51 if(mucCol->size() != 0)
53 for(;it_muc != mucCol->end();it_muc++)
55 vmuc.push_back(it_muc);
62 bool bmdc=(i>vmdc.size())?
true:
false;
63 bool btof=(i>vtof.size())?
true:
false;
64 bool bemc=(i>vemc.size())?
true:
false;
65 bool bmuc=(i>vmuc.size())?
true:
false;
66 if((i>=vmdc.size())&&(i>=vtof.size())&&(i>=vemc.size())&&(i>=vmuc.size()))
break;
67 for (
int m = 0; m < 8; m++) os<<
" ";
72 const Identifier ident_mdc = (*vmdc[i])->identify();
75 os<<setw(15)<<(*vmdc[i])->getTrackIndex();
76 }
else{
for (
int m = 0; m < 27; m++) os<<
" ";}
77 }
else{
for (
int m = 0; m < 27; m++) os<<
" ";}
84 const Identifier ident_tof =(*vtof[i])->identify();
90 os<<setw(22)<<(*vtof[i])->getTrackIndex();
91 }
else{
for (
int m = 0; m < 39; m++) os<<
" ";}
92 }
else{
for (
int m = 0; m < 39; m++) os<<
" ";}
99 const Identifier ident_emc = (*vemc[i])->identify();
105 os<<setw(12)<<(*vemc[i])->getTrackIndex();
106 }
else{
for (
int m = 0; m < 29; m++) os<<
" ";}
107 }
else{
for (
int m = 0; m < 29; m++) os<<
" ";}
113 const Identifier ident_muc = (*vmuc[i])->identify();
120 os<<setw(6)<<(*vmuc[i])->getTrackIndex();