-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Added esConsumes to PhysicsTools/PatUtils #35680
Added esConsumes to PhysicsTools/PatUtils #35680
Conversation
The constructor of the class would never be able to be called properly from cmsRun.
-Also switched to using std::unique_ptr
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35680/25971
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-585fe9/19642/summary.html Comparison SummarySummary:
|
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.
all comments are for LeptonVertexSignificance
which has an alternative solution in #35612
perhaps completing the migration is more satisfactory, but I don't have a particularly strong preference.
~LeptonVertexSignificance(); | ||
LeptonVertexSignificance() = default; | ||
~LeptonVertexSignificance() = default; | ||
; |
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.
; |
reco::Vertex theVertex = vertexHandle.product()->front(); | ||
float LeptonVertexSignificance::calculate(const reco::Track& theTrack, | ||
const reco::VertexCollection& vertex, | ||
TransientTrackBuilder& builder) { |
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.
TransientTrackBuilder& builder) { | |
const TransientTrackBuilder& builder) { |
it looks like the build
(and apparently all) method is const
return 0; | ||
reco::Vertex theVertex = vertexHandle.product()->front(); | ||
float LeptonVertexSignificance::calculate(const reco::Track& theTrack, | ||
const reco::VertexCollection& vertex, |
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.
const reco::VertexCollection& vertex, | |
const reco::VertexCollection& vertices, |
would be less confusing (or vertexColl
float LeptonVertexSignificance::calculate(const reco::Track& theTrack, | ||
const reco::VertexCollection& vertex, | ||
TransientTrackBuilder& builder) { | ||
reco::Vertex const& theVertex = vertex.front(); |
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'm missing a check for vertexColl.empty()
reco::Vertex const& theVertex = vertex.front(); | |
if (vertex.empty()) return 0; | |
reco::Vertex const& theVertex = vertex.front(); |
Changes suggested by @slava77
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35680/25989
|
please test |
@cmsbuild please test the last attempt apparently got stuck in the network interruption |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-585fe9/19671/summary.html Comparison SummarySummary:
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
PR validation:
Code compiles.