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

Change of strategy in Pixel Charge Reweighting #34181

Merged
merged 3 commits into from Jun 24, 2021

Conversation

carolinecollard
Copy link
Contributor

PR description:

This PR modifies the strategy of which SimHit is used for the Charge Reweighting (CR) in Pixels.

The original strategy for the case of a non-Primary particle is to use the first hit of the collection for that detID. In general this hit has no overlap with the cluster and the CR is not applied.
The new strategy for the case of a non-Primary particle is to search for the primary hit with same trackID and use it for the CR. In case no such hit is found, then use the first hit of the collection for that detID, as in the original strategy.
The Consequence: The new strategy allows to apply CR in more cases than with the original one -> a lower averaged value of the charge and more digis in total. But only a small fraction of the hits are impacted by this change of strategy.

Latest indico presentation in Pixel offline meeting:
https://indico.cern.ch/event/1000811/contributions/4410111/attachments/2265215/3846024/20210616_PRinPreparation.pdf

PR validation:

Validation of the charge profile on 100k ttbar events :
https://indico.cern.ch/event/1000810/contributions/4389223/attachments/2256939/3829798/Pixel_Charge_profiles.pdf

Some additional validation checks have been performed as shown in the slides, and discussed in meeting:
https://indico.cern.ch/event/1000811/contributions/4410111/attachments/2265215/3846024/20210616_PRinPreparation.pdf

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34181/23392

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @carolinecollard for master.

It involves the following packages:

SimTracker/SiPixelDigitizer

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@makortel, @mtosi, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @OzAmram, @dkotlins, @ferencek, @threus, @dgulhan, @tvami this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

using std::cerr;
using std::cout;
using std::endl;
// using std::cerr;
Copy link
Contributor

Choose a reason for hiding this comment

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

@carolinecollard , please, remove these lines forever, because std::cout,... allowed only in analyzers and unit tests.


// cout << " map size " << calmap.size() << endl;
// edm::LogInfo("PixelDigitizer ") << " map size " << calmap.size() << "\n";
// map<int,CalParameters,std::less<int> >::iterator ix,it;
Copy link
Contributor

Choose a reason for hiding this comment

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

@carolinecollard , we keep commented lines as an exception. AN alternative LogDebug instead of edm::LogInfo - this code will not be executed unless you start debugging. For debug purpose instead of uncommenting you may substitute LogDebug by edm::LogVerbatim

@mmusich
Copy link
Contributor

mmusich commented Jun 21, 2021

enable profiling

@mmusich
Copy link
Contributor

mmusich commented Jun 21, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c8ab06/16127/summary.html
COMMIT: e90c092
CMSSW: CMSSW_12_0_X_2021-06-20-2300/slc7_amd64_gcc900
Additional Tests: PROFILING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34181/16127/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: 25284 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2785631
  • DQMHistoTests: Total failures: 31936
  • DQMHistoTests: Total nulls: 2
  • DQMHistoTests: Total successes: 2753671
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.866 KiB( 37 files compared)
  • DQMHistoSizes: changed ( 10224.0 ): -0.308 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 250202.181 ): 1.178 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: found differences in 5 / 37 workflows

@carolinecollard
Copy link
Contributor Author

@civanch, I have modified the code according to your comments (I hope I understood them correctly). So no more cout, cerr, endl (even if commented) and replacement of the commented printed messages by use of LogDebug.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34181/23425

  • This PR adds an extra 36KB to repository

@cmsbuild
Copy link
Contributor

Pull request #34181 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again.

@civanch
Copy link
Contributor

civanch commented Jun 22, 2021

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c8ab06/16163/summary.html
COMMIT: 58a21ee
CMSSW: CMSSW_12_0_X_2021-06-22-1100/slc7_amd64_gcc900
Additional Tests: PROFILING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34181/16163/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: 25280 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2785631
  • DQMHistoTests: Total failures: 31934
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2753674
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.87 KiB( 37 files compared)
  • DQMHistoSizes: changed ( 10224.0 ): -0.308 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 250202.181 ): 1.178 KiB SiStrip/MechanicalView
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: found differences in 5 / 37 workflows

@civanch
Copy link
Contributor

civanch commented Jun 22, 2021

+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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Jun 23, 2021

@carolinecollard Just to confirm whether all the changes brought by this PR are as expected?
https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_12_0_X_2021-06-22-1100+c8ab06/43602/validateJR.html

@carolinecollard
Copy link
Contributor Author

@qliphy Yes, the changes are as expected.

@qliphy
Copy link
Contributor

qliphy commented Jun 24, 2021

+1

@cmsbuild cmsbuild merged commit 31a387e into cms-sw:master Jun 24, 2021
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.

None yet

6 participants