Skip to content

Commit 5c02aae

Browse files
committed
Clean up
1 parent d747509 commit 5c02aae

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

Validation/RecoHI/plugins/HitPixelLayersTPSelector.h

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,7 @@ class HitPixelLayersTPSelector
9696
std::vector<bool> pixelHitPattern( const TrackingParticleRef& simTrack, const TrackerTopology *tTopo )
9797
{
9898
std::vector<bool> hitpattern(5,false); // PXB 0,1,2 PXF 0,1
99-
/*
100-
#warning "This file has been modified just to get it to compile without any regard as to whether it still functions as intended"
101-
#ifdef REMOVED_JUST_TO_GET_IT_TO_COMPILE__THIS_CODE_NEEDS_TO_BE_CHECKED
102-
for(std::vector<PSimHit>::const_iterator simHit = simTrack->pSimHit_begin();simHit!= simTrack->pSimHit_end();simHit++){
103-
104-
DetId id = DetId(simHit->detUnitId());
105-
uint32_t detid = id.det();
106-
uint32_t subdet = id.subdetId();
107-
108-
if (detid == DetId::Tracker) {
109-
if (subdet == PixelSubdetector::PixelBarrel)
110-
hitpattern[tTopo->pxbLayer(id)-1]=true;
111-
else if (subdet == PixelSubdetector::PixelEndcap)
112-
hitpattern[tTopo->pxfDisk(id)+2]=true;
113-
}
114-
115-
}// end simhit loop
116-
#endif
117-
*/
118-
// Indeed this no longer functions as intended, but this code should no longer be accessed, since tripletSeedOnly_ has been changed to False. We will clean up when we figure out how to do this properly - Matt Nguyen, 24/7/2013
99+
// This currently will always return false, since we can no loger use the sim hits to check for triplets. This would need to be fixed if we want to enable this feature, but it's not being used at the moment, since tripletSeedOnly is always set to False - Matt Nguyen, 24/7/2013
119100

120101
return hitpattern;
121102
}

0 commit comments

Comments
 (0)