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

Recovery of missing hits for Strip Hit Efficiency #41970

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

DenkMybu
Copy link
Contributor

PR description:

These changes implement the recovery of missing hits for the mkFit trajectories. Without this, the hit efficiency is overestimated in single-sided layers.

Output changes : no changes in the output format
Other PRs : None
Indico page for results : https://indico.cern.ch/event/1271487/ (Update on hit efficiency)

PR validation:

Version comparisons checked (see indico page above), tested with/without changes

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41970/35932

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @DenkMybu (Raphael Haeberle) for master.

It involves the following packages:

  • CalibTracker/SiStripHitEfficiency (alca)

@cmsbuild, @tvami, @saumyaphor4252, @francescobrivio can you please review it and eventually sign? Thanks.
@echabert, @mmusich, @robervalwalsh, @gbenelli, @tocheng this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Jun 15, 2023

The May 23 slides have

  1. Sub-detector only
  2. Adding sub-detector transitions

this is the latter, with transitions, right?

@mmusich
Copy link
Contributor

mmusich commented Jun 15, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8a4735/33173/summary.html
COMMIT: 825ef90
CMSSW: CMSSW_13_2_X_2023-06-14-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/41970/33173/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 11 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3196062
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3196040
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41970/35940

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #41970 was updated. @cmsbuild, @tvami, @saumyaphor4252, @francescobrivio can you please check and sign again.

Copy link
Contributor

@tvami tvami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments on magic numbers and for loops + other cosmetic comments

CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
CalibTracker/SiStripHitEfficiency/plugins/HitEff.cc Outdated Show resolved Hide resolved
TrajectoryMeasurement TM_tmp(tmpTmeas.back());
unsigned int iidd_tmp = TM_tmp.recHit()->geographicalId().rawId();
if (iidd_tmp != 0) {
LogDebug("SiStripHitEfficiency:HitEff") << " hit actually being added to TM vector" << endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in general the LogInfo and LogDebug dont need the << endl for the ending

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally, please address also this comment @DenkMybu

Suggested change
LogDebug("SiStripHitEfficiency:HitEff") << " hit actually being added to TM vector" << endl;
LogDebug("SiStripHitEfficiency:HitEff") << " hit actually being added to TM vector";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment still needs to be addressed

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41970/36057

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

Pull request #41970 was updated. @cmsbuild, @tvami, @saumyaphor4252, @francescobrivio can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Jun 25, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8a4735/33377/summary.html
COMMIT: c8dcc34
CMSSW: CMSSW_13_2_X_2023-06-25-0000/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/41970/33377/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 11 lines to the logs
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3200270
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3200245
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@mmusich
Copy link
Contributor

mmusich commented Jun 26, 2023

I tried to compare the hit efficiency:

and it looks like the latter two deliver the exact same effciency:

Screenshot from 2023-06-26 13-38-03

is it expected?

@perrotta
Copy link
Contributor

is it expected?

I think so. Even if it is a bit counterintuitive to me, and certainly error prone, "-2" as uint is 4294967294 , but I've checked now that int(4294967294) = -2 (as it takes also into account the sign bit).
Therefore, my worries about differences of unsigned integers were probably not correct, at least for the code in this PR. Still, I'd fill a bit unconfortable in trusting in differences between unsigned integers, and the updates applied after the last commit clarify thinngs a bit, I guess.

@mmusich
Copy link
Contributor

mmusich commented Jun 26, 2023

@perrotta

I think so. Even if it is a bit counterintuitive to me, and certainly error prone, "-2" as uint is 4294967294 , but I've checked now that int(4294967294) = -2 (as it takes also into account the sign bit).

thank you for the check.

@cms-sw/alca-l2 please sign at earliest convenience, as already reported, this needs to be backported (and integrated in the PCL as well).

@francescobrivio
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, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

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.

8 participants