-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 an unneeded assignment for passcuts_hit in SiPixelPhase1TrackEfficiency #35058
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35058/24937
|
A new Pull Request was created by @perrotta (Andrea Perrotta) for master. It involves the following packages:
@andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @jfernan2, @rvenditti 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-1780ca/18110/summary.html Comparison SummarySummary:
|
+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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
@jfernan2 , any comment about: |
assign trk-dpg |
hold |
Pull request has been put on hold by @mmusich |
@tsusa is going to have a more in-depth analysis.
when running expTrajMeasurements =
theLayerMeasurements_->measurements(*pxbLayer1_, tsosPXB2, *trackerPropagator_, *chi2MeasurementEstimator_) returns a vector of size 2. |
There are also cases with three expected measurements, two belonging to the overlapping modules and the third one with row = 0, col = 0. For those cases, passcuts_hit initialization is done at the wrong place. It did not however impact the results, due to a fiducial cut in lines 466-468. There are also other parts of the code that should be changed/fixed (e.g. lines 494-499). |
Thank you @tsusa ! Then, a few further fixes are needed for the original code. What do you suggest? Please let us know, so that we can proceed |
@perrotta I would propose option C |
FIne. Please go ahead. |
@tsusa please let us know if you have any update about the possible replacement for this PR. |
unhold |
is there still anything holding this back? |
This is not Tracking POG code |
Ok, now removed. |
We will x-check this week |
@tsusa is there any news here? |
-1
|
Great! Thank you @tsusa and @mmusich |
PR description:
A dead assignment for the bool variable
passcuts_hit
was reported by the static aalyzer: fixed here (L223)I profited to move outside a loop a check on the same variable, which would have prevented anyhow any action inside that loop (L552)
Still, I have doubts about the logic of the code that follows L439: there
passcuts_hit
is initialized totrue
before the loop that starts at L442: therefore, if set tofalse
during any of the iterations, it will remainfalse
till the end of the loop. I have the impression that it should have been initialized totrue
within every iteration of that loop. Coul the responsibles of the code (@cms-sw/dqm-l2 should know how to contact them) have a look at it?PR validation:
It compiles