-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Decoupling charge reweighting from SiPixelDigitizerAlgorithm #31622
Decoupling charge reweighting from SiPixelDigitizerAlgorithm #31622
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31622/18691
|
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 |
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.
Thanks @carolinecollard!
I have just a couple of minor comments, see below.
//class SiPixelChargeReweightingAlgorithm SimTracker/SiPixelDigitizer/src/SiPixelChargeReweightingAlgorithm.cc | ||
|
||
// Original Author Caroline Collard | ||
// September 2020 : Extraction of the code for cluster charge reweighting from SiPixelDigitizerAlgoithm to a new class |
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.
minor typo: "SiPixelDigitizerAlgoithm" -> "SiPixelDigitizerAlgorithm"
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.
ok. corrected.
|
||
#include "SimTracker/SiPixelDigitizer/plugins/SiPixelDigitizerAlgorithm.h" | ||
|
||
typedef boost::multi_array<float, 2> array_2d; |
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.
is this needed as it's already defined at line 63?
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.
Line 6 is not needed --> removed.
But line 4 is really needed because it is used for
typedef std::map<int, SiPixelDigitizerAlgorithm::Amplitude, std::less > signal_map_type;
on new line 42.
@emiglior FYI |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31622/18695
|
Pull request #31622 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again. |
UseReweighting(conf.getParameter<bool>("UseReweighting")), | ||
PrintClusters(conf.getParameter<bool>("PrintClusters")), | ||
PrintTemplates(conf.getParameter<bool>("PrintTemplates")) { | ||
LogInfo("PixelDigitizer ") << "SiPixelChargeReweightingAlgorithm constructed" |
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 , better to use edm::LogVerbatim
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.
ok. I am changing it. I will update on git in a few minutes.
} | ||
|
||
if (PrintClusters) { | ||
std::cout << "Cluster after reweighting: " << std::endl; |
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.
use #ifdef TP_DEBUG or LogDEbug
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.
@civanch I disagree with this proposal. The purpose of the "PrintClusters" bool on line 303 (and 326 on your next comment) is to activate specifically this print out. By default this variable is set to false in the python, so there is no risk to get print out messages in standard running. It was coded like that by the original author when it was included in SiPixelDigitizerAlgorithm.cc. I prefer not to change.
} | ||
|
||
if (PrintClusters) { | ||
std::cout << std::endl; |
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.
the same cout
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.
see previous reply.
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31622/18739
|
Pull request #31622 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again. |
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+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 I know |
@silviodonato Ok, I understand. Unfortunately, I will have no time to make any change before October 12. |
|
+1 |
PR description:
Add a new class (SiPixelChargeReweightingAlgorithm) to extract the charge reweighting functions from SiPixelDigitizerAlgorithm.
Correct a typo in SiPixelDigitizerAlgorithm.
These are requested by the DPG Tracker conveners and the Pixel Offline conveners
PR validation:
Two tests have been run:
runTheMatrix.py -l 11834.0 --command='-n 100'
runTheMatrix.py -l 11834.99 --command='-n 100'
Results comparing the default one with the proposed ("decouple") version: there is perfect agreement.
---> https://tinyurl.com/y3gctmqs for standard mixing
---> https://tinyurl.com/y6pzmu8r for pre-mixing