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
Conversation
…hting in the case of no primary particle
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34181/23392
|
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. cms-bot commands are listed here |
using std::cerr; | ||
using std::cout; | ||
using std::endl; | ||
// using std::cerr; |
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.
@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; |
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.
@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
enable profiling |
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c8ab06/16127/summary.html Comparison SummarySummary:
|
@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. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34181/23425
|
Pull request #34181 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c8ab06/16163/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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
@carolinecollard Just to confirm whether all the changes brought by this PR are as expected? |
@qliphy Yes, the changes are as expected. |
+1 |
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