55 ATH_MSG_DEBUG(
" InDetAlignOverlapTool::get getNumberOverlapPIX inizialized");
57 int nPixelBarrelOverlapEta = 0;
58 int nPixelBarrelOverlapPhi = 0;
59 int nPixelECOverlapPhi = 0;
60 int PixelSector[3] = {
63 int ECPixelSector = 48;
75 for (std::vector<AlignSiHit>::const_iterator hit = trk.
hitlist_cbegin();
77 int index = hit->index() - 1;
79 if (
msgLvl(MSG::VERBOSE)) {
81 msg().setColor(MSG::GREEN);
82 msg(MSG::VERBOSE) <<
"Index " <<
index <<
" Detector: " << (
p_modlist->vec[
index]).dettype() <<
" layer : " <<
92 for (std::vector<AlignSiHit>::const_iterator Allhit = hit;
94 int Allindex = Allhit->index() - 1;
96 if (
msgLvl(MSG::VERBOSE)) {
97 if ((
p_modlist->vec[Allindex]).bec() == 0 && (
p_modlist->vec[Allindex]).dettype() == 1) {
98 msg().setColor(MSG::BLUE);
99 msg(MSG::VERBOSE) <<
"Index " << Allindex <<
endmsg;
112 std::abs((
p_modlist->vec[Allindex]).sector() -
116 msg().setColor(MSG::RED);
121 msg().setColor(MSG::RED);
122 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
123 " ring " << (
p_modlist->vec[Allindex]).ring() <<
127 msg().setColor(MSG::RED);
128 msg(MSG::DEBUG) <<
"Pixel Overlap in Phi found" <<
endmsg;
131 nPixelBarrelOverlapPhi++;
139 msg().setColor(MSG::RED);
144 msg().setColor(MSG::RED);
145 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
146 " ring " << (
p_modlist->vec[Allindex]).ring() <<
150 msg().setColor(MSG::RED);
151 msg(MSG::DEBUG) <<
"Pixel Overlap in Eta found" <<
endmsg;
154 nPixelBarrelOverlapEta++;
165 msg().setColor(MSG::RED);
169 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
170 " ring " << (
p_modlist->vec[Allindex]).ring() <<
172 msg(MSG::DEBUG) <<
"EC Pixel Overlap in Phi found" <<
endmsg;
175 nPixelECOverlapPhi++;
182 nOverlapPIX = nPixelBarrelOverlapPhi + nPixelBarrelOverlapEta + nPixelECOverlapPhi;
183 ATH_MSG_DEBUG(
" Total number of Pixel overlaps in eta " << nPixelBarrelOverlapEta);
184 ATH_MSG_DEBUG(
" Total number of Pixel overlaps in phi " << nPixelBarrelOverlapPhi);
185 ATH_MSG_DEBUG(
" Total number of Pixel EC overlaps in phi " << nPixelECOverlapPhi);
194 ATH_MSG_DEBUG(
" InDetAlignOverlapTool::get getNumberOverlapSCT initialized");
197 int nSCTBarrelOverlapEta = 0;
198 int nSCTBarrelOverlapPhi = 0;
199 int nSCTECOverlapPhi = 0;
200 int nSCTECOverlapEta = 0;
205 int ECSCTSector = 52;
210 nhits2 = trk.
nhits();
218 for (std::vector<AlignSiHit>::const_iterator hit = trk.
hitlist_cbegin();
220 int index = hit->index() - 1;
222 if (
msgLvl(MSG::VERBOSE)) {
224 msg().setColor(MSG::GREEN);
225 msg(MSG::VERBOSE) <<
"Index " <<
index <<
" Detector: " << (
p_modlist->vec[
index]).dettype() <<
" layer : " <<
236 for (std::vector<AlignSiHit>::const_iterator Allhit = hit;
238 int Allindex = Allhit->index() - 1;
240 if (
msgLvl(MSG::VERBOSE)) {
241 if ((
p_modlist->vec[Allindex]).bec() == 0 && (
p_modlist->vec[Allindex]).dettype() == 1) {
242 msg().setColor(MSG::BLUE);
243 msg(MSG::VERBOSE) <<
"Index " << Allindex <<
endmsg;
256 std::abs((
p_modlist->vec[Allindex]).sector() -
259 msg().setColor(MSG::RED);
263 msg().setColor(MSG::RED);
264 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
265 " ring " << (
p_modlist->vec[Allindex]).ring() <<
267 msg().setColor(MSG::RED);
268 msg(MSG::DEBUG) <<
"SCT Overlap in Phi found" <<
endmsg;
270 nSCTBarrelOverlapPhi++;
277 msg().setColor(MSG::RED);
281 msg().setColor(MSG::RED);
282 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
283 " ring " << (
p_modlist->vec[Allindex]).ring() <<
285 msg().setColor(MSG::RED);
286 msg(MSG::DEBUG) <<
"SCT Overlap in Eta found" <<
endmsg;
288 nSCTBarrelOverlapEta++;
304 msg().setColor(MSG::RED);
308 msg().setColor(MSG::RED);
309 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
310 " ring " << (
p_modlist->vec[Allindex]).ring() <<
313 msg(MSG::DEBUG) <<
"EC SCT Overlap in Phi found" <<
endmsg;
322 msg().setColor(MSG::GREEN);
326 msg().setColor(MSG::GREEN);
327 msg(MSG::DEBUG) <<
" AllIndex:" << Allindex <<
" layer " << (
p_modlist->vec[Allindex]).layer() <<
328 " ring " << (
p_modlist->vec[Allindex]).ring() <<
331 msg(MSG::DEBUG) <<
"EC SCT Overlap in Eta found" <<
endmsg;
340 nOverlapSCT = nSCTBarrelOverlapPhi + nSCTBarrelOverlapEta + nSCTECOverlapPhi + nSCTECOverlapEta;
342 ATH_MSG_DEBUG(
" Total number of STC overlaps in eta " << nSCTBarrelOverlapEta);
343 ATH_MSG_DEBUG(
" Total number of SCT overlaps in phi " << nSCTBarrelOverlapPhi);
344 ATH_MSG_DEBUG(
" Total number of STC EC overlaps in phi " << nSCTECOverlapPhi);
345 ATH_MSG_DEBUG(
" Total number of STC EC overlaps in Eta " << nSCTECOverlapEta);
354 ATH_MSG_DEBUG(
" InDetAlignOverlapTool::get getOverlapHit inizialized");
356 bool isPIXOverlap =
false;
357 bool isSCTOverlap =
false;
360 int PixelSector[3] = {
363 int ECPixelSector = 48;
367 int ECSCTSector = 52;
372 for (std::vector<AlignSiHit>::const_iterator hit = trk.
hitlist_cbegin();
374 int index = hit->index() - 1;
376 isPIXOverlap =
false;
377 isSCTOverlap =
false;
383 for (std::vector<AlignSiHit>::const_iterator hit2 = trk.
hitlist_cbegin();
385 int newindex = hit2->index() - 1;
395 std::abs((
p_modlist->vec[newindex]).sector() -
427 std::abs((
p_modlist->vec[newindex]).sector() -
462 if (isPIXOverlap || isSCTOverlap) {
463 msg().setColor(MSG::GREEN);