Skip to content

Commit a48a4b2

Browse files
committed
Merge pull request cms-sw#175 from mandrenguyen/tp_fix_HI
Switch from triplet only tracks to all tracks, to avoid problems with tr...
2 parents 7c9bf4e + 5c02aae commit a48a4b2

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

Validation/RecoHI/plugins/HitPixelLayersTPSelector.h

+2-19
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,8 @@ 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-
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
100+
118101
return hitpattern;
119102
}
120103

Validation/RecoHI/python/TrackValidationHeavyIons_cff.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# setup multi-track validator
2525
from Validation.RecoTrack.MultiTrackValidator_cff import *
2626
hiTrackValidator = multiTrackValidator.clone(
27-
label_tp_effic = cms.InputTag("findableSimTracks"),
27+
label_tp_effic = cms.InputTag("primaryChgSimTracks"),
2828
label_tp_fake = cms.InputTag("cutsTPFake"),
2929
signalOnlyTP = cms.bool(False),
3030
skipHistoFit = cms.untracked.bool(True), # done in post-processing
@@ -40,11 +40,11 @@
4040

4141
# track prevalidation
4242
hiTrackPrevalidation = cms.Sequence(
43-
findableSimTracks
44-
* cutsTPFake
45-
* cutsRecoTracks
46-
* cutsRecoTracksHP
47-
)
43+
primaryChgSimTracks
44+
* cutsTPFake
45+
* cutsRecoTracks
46+
* cutsRecoTracksHP
47+
)
4848

4949
# track validation sequence
5050
hiTrackValidation = cms.Sequence( hiTrackValidator )

Validation/RecoHI/python/selectSimTracks_cff.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import FWCore.ParameterSet.Config as cms
22

3+
# Not actually functioning at the moment, use primaryChgSimTracks - Matt Nguyen, 24/7/2013
34
findableSimTracks = cms.EDFilter("HitPixelLayersTPSelection",
45
src = cms.InputTag("mix","MergedTrackTruth"),
56
tripletSeedOnly = cms.bool(True),

0 commit comments

Comments
 (0)