29 declareInterface<IInDetAlignOverlapTool>(
this);
37 if (
sc.isFailure())
return sc;
44 return StatusCode::SUCCESS;
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;
92 for (std::vector<AlignSiHit>::const_iterator Allhit = hit;
94 int Allindex = Allhit->index() - 1;
131 nPixelBarrelOverlapPhi++;
154 nPixelBarrelOverlapEta++;
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;
236 for (std::vector<AlignSiHit>::const_iterator Allhit = hit;
238 int Allindex = Allhit->index() - 1;
270 nSCTBarrelOverlapPhi++;
288 nSCTBarrelOverlapEta++;
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;
462 if (isPIXOverlap || isSCTOverlap) {