Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

perrotta
Copy link
Contributor

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 to true before the loop that starts at L442: therefore, if set to false during any of the iterations, it will remain false till the end of the loop. I have the impression that it should have been initialized to true 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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35058/24937

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @perrotta (Andrea Perrotta) for master.

It involves the following packages:

  • DQM/SiPixelPhase1Track (dqm)

@andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @jfernan2, @rvenditti can you please review it and eventually sign? Thanks.
@arossi83, @hdelanno, @sroychow, @fioriNTU, @jandrea, @idebruyn, @threus this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@perrotta
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1780ca/18110/summary.html
COMMIT: 918dcd6
CMSSW: CMSSW_12_1_X_2021-08-27-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35058/18110/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000318
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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)

@perrotta
Copy link
Contributor Author

@jfernan2 , any comment about:
"Still, I have doubts about the logic of the code that follows L439: there passcuts_hit is initialized to true before the loop that starts at L442: therefore, if set to false during any of the iterations, it will remain false till the end of the loop. I have the impression that it should have been initialized to true within every iteration of that loop. Could the responsibles of the code (@cms-sw/dqm-l2 should know how to contact them) have a look at it?"

@jfernan2
Copy link
Contributor

@mmusich @sroychow any comment for Andrea's question?

@mmusich
Copy link
Contributor

mmusich commented Aug 30, 2021

assign trk-dpg

@mmusich
Copy link
Contributor

mmusich commented Aug 30, 2021

hold

@cmsbuild
Copy link
Contributor

New categories assigned: trk-dpg

@mmusich,@tsusa you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

Pull request has been put on hold by @mmusich
They need to issue an unhold command to remove the hold state or L1 can unhold it for all

@mmusich
Copy link
Contributor

mmusich commented Aug 30, 2021

@tsusa is going to have a more in-depth analysis.
From a quick look, the part of the code affected is related only to BPix Layer 1 and the size of the vector which is being looped upon expTrajMeasurements

for (uint p = 0; p < expTrajMeasurements.size(); p++) {

when running step3 with runTheMatrix.py -l 11634.0 -t 4 -j 8 is (almost) always 2, but out of the two trajectory crossings, both on same DetId, only one (the first) seems to be meaningful (the other one has row = 0 and col = 0), so at the end of the day the bug (if it's formally there) is not affecting anything excepted overlaps.
I don't quite understand yet why the

  expTrajMeasurements =
          theLayerMeasurements_->measurements(*pxbLayer1_, tsosPXB2, *trackerPropagator_, *chi2MeasurementEstimator_)

returns a vector of size 2.

@tsusa
Copy link
Contributor

tsusa commented Sep 6, 2021

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).

@perrotta
Copy link
Contributor Author

perrotta commented Sep 7, 2021

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?
A) Merging this trivial PR, and you can submit your fixes on top of it
B) Add yourself a commit with the fixes to this PR (having ticked "Allow edit by maintainers", this should be allowed: you can just try it)
C) Make yourself another complete PR, and close this one

Please let us know, so that we can proceed

@tsusa
Copy link
Contributor

tsusa commented Sep 7, 2021

@perrotta I would propose option C

@perrotta
Copy link
Contributor Author

perrotta commented Sep 7, 2021

@perrotta I would propose option C

FIne. Please go ahead.
I'll close this one as soon as your new PR will appear on github.

@perrotta
Copy link
Contributor Author

@perrotta I would propose option C

@tsusa do you hVW any news, or plan for it?

@perrotta
Copy link
Contributor Author

perrotta commented Oct 5, 2021

@tsusa please let us know if you have any update about the possible replacement for this PR.

@smuzaffar smuzaffar modified the milestones: CMSSW_12_1_X, CMSSW_12_2_X Oct 29, 2021
@perrotta
Copy link
Contributor Author

@tsusa @mmusich is there any news on this?

@mmusich
Copy link
Contributor

mmusich commented Nov 19, 2021

unhold

@cmsbuild cmsbuild removed the hold label Nov 19, 2021
@smuzaffar smuzaffar modified the milestones: CMSSW_12_2_X, CMSSW_12_3_X Dec 6, 2021
@mmusich
Copy link
Contributor

mmusich commented Jan 27, 2022

@tsusa

is there still anything holding this back?

@smuzaffar smuzaffar modified the milestones: CMSSW_12_3_X, CMSSW_12_4_X Mar 11, 2022
@mmusich
Copy link
Contributor

mmusich commented Mar 14, 2022

@qliphy

ping https://github.com/orgs/cms-sw/teams/tracking-pog-l2

This is not Tracking POG code

@qliphy
Copy link
Contributor

qliphy commented Mar 14, 2022

@qliphy

ping https://github.com/orgs/cms-sw/teams/tracking-pog-l2

This is not Tracking POG code

Ok, now removed.

@tsusa
Copy link
Contributor

tsusa commented Mar 14, 2022

We will x-check this week

@perrotta
Copy link
Contributor Author

We will x-check this week

@tsusa is there any news here?

@mmusich
Copy link
Contributor

mmusich commented May 3, 2022

@perrotta
Copy link
Contributor Author

perrotta commented May 3, 2022

-1

Great! Thank you @tsusa and @mmusich
We can close this one, then

@perrotta perrotta closed this May 3, 2022
@perrotta perrotta deleted the passcutHitAdjusted branch May 3, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants