New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove tracker subdetector DetId in some Reco/Geometry ES products #19376
Remove tracker subdetector DetId in some Reco/Geometry ES products #19376
Conversation
- PFCheckHitPattern in RecoParticleFlow/PFTracking - SimpleDAFHitCollector in RecoTracker/SiTrackerMRHTools - TkGluedMeasurementDet in RecoTracker/MeasurementDet
A new Pull Request was created by @pieterdavid (Pieter David) for master. It involves the following packages: RecoParticleFlow/PFTracking @perrotta, @cmsbuild, @slava77, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
default: | ||
throw cms::Exception("RecoParticleFlow", "Found DetId that is not in Tracker"); | ||
} | ||
return DetInfo(subdetId, second); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this could be simplified to
return DetInfo(detId.subdetId(), tkerTopo->layer(detId));
Or maybe avoid this function altogether (AFAICT there is only a single call to this function)? e.g. in line 35
auto detId = dets[i]->geographicalId();
auto detInfo = DetInfo(detId.subdetId(), tkerTopo->layer(detId));
https://github.com/cms-sw/cmssw/blob/master/DataFormats/TrackerCommon/src/TrackerTopology.cc#L50-L67
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thanks for the suggestion, I pushed a new commit that implements it.
also removed PFCheckHitPattern::interpretDetId
@cmsbuild please test strange that the bot didn't notice the last commit |
@cmsbuild please test [this time without a typo] |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar |
tracked at #19398 |
+1 |
Purely technical change, no differences expected (part of the TIBDetId/TOBDetId/TIDDetId/TECDetID/PXBDetId/PXFDetId deprecation)
cc @OlivierBondu @alesaggio @vidalm