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
Add muon ID selectors for packed candidate collections #30253
Add muon ID selectors for packed candidate collections #30253
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30253/16154
|
A new Pull Request was created by @stahlleiton (Andre Stahl) for master. It involves the following packages: PhysicsTools/PatAlgos @perrotta, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
// check if candidate and muon are compatible | ||
const auto& candTrack = cand->pseudoTrack(); | ||
if (muonTrack.charge() == candTrack.charge() && muonTrack.numberOfValidHits() == candTrack.numberOfValidHits() && | ||
std::abs(muonTrack.eta() - candTrack.eta()) < 1E-3 && std::abs(muonTrack.phi() - candTrack.phi()) < 1E-3 && |
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.
Is this phi subtraction safe in case of wraparound? I think one might also use a deltaR
method from the framework: https://github.com/cms-sw/cmssw/blob/master/DataFormats/Math/interface/deltaR.h
In addition, perhaps it can be considered to put these cutoffs 1E-3, 1E-2 at the top of the file as a static const, or otherwise as a configurable parameter in a visible spot?
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.
Thanks for the suggestions. I replaced the deltaPhi and deltaEta for a deltaR, and changed the cutoffs to be configurable parameters.
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
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 will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2) |
@silviodonato |
+1 |
PR description:
This PR adds muon ID selectors (isTrackerMuon and TMOneStationTight), as PackedCandidateRefVectors, associated the packedPFCandidates and lostTracks collections.
These are part of the HIN developments for MiniAOD event content.
Running over ~1000 events from the HIDoubleMuon PD of 2018 PbPb data, the average compressed size of the output collections (PackedCandidateRefVectors) were ~9 bytes/event for packedPFCandidates and ~6 bytes/event for lostTracks.
PR validation:
Tested with workflow 159
if this PR is a backport please specify the original PR and why you need to backport that PR:
@mandrenguyen