-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Payload Inspector: introduce maps for SiPixelDynamicInefficiency
input factors
#40495
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40495/33675
|
A new Pull Request was created by @mmusich (Marco Musich) for master. It involves the following packages:
@malbouis, @pmandrik, @emanueleusai, @ahmad3213, @tvami, @cmsbuild, @saumyaphor4252, @syuvivida, @ggovi, @francescobrivio, @micsucmed, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild , please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40495/33680
|
Pull request #40495 was updated. @malbouis, @pmandrik, @emanueleusai, @ahmad3213, @tvami, @cmsbuild, @saumyaphor4252, @syuvivida, @ggovi, @francescobrivio, @micsucmed, @rvenditti can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8a022c/29946/summary.html Comparison SummaryThere are some workflows for which there are errors in the baseline: Summary:
|
+db
|
+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. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
} | ||
|
||
/* | ||
//(Not used for the moment) |
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.
Even if currently not used, I wonder what is the purpose of commenting out the definition of this method: was it giving problems while building?
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.
indeed, it leads to the following compilation warning:
/tmp/musich/CMSSW_13_0_X_2023-01-10-2300/src/CondCore/SiPixelPlugins/plugins/SiPixelDynamicInefficiency_PayloadInspector.cc:169:10: warning: 'bool {anonymous}::SiPixDynIneff::matches(const DetId&, const DetId&, const std::vector<unsigned int>&)' defined but not used [-Wunused-function]
169 | bool matches(const DetId& detid, const DetId& db_id, const std::vector<uint32_t>& DetIdmasks) {
| ^~~~~~~
which is a bit annoying.
OTOH with these changes
diff --git a/CondCore/SiPixelPlugins/plugins/SiPixelDynamicInefficiency_PayloadInspector.cc b/CondCore/SiPixelPlugins/plugins/SiPixelDynamicInefficiency_PayloadInspector.cc
index 043b6459248..9c8d1701cd3 100644
--- a/CondCore/SiPixelPlugins/plugins/SiPixelDynamicInefficiency_PayloadInspector.cc
+++ b/CondCore/SiPixelPlugins/plugins/SiPixelDynamicInefficiency_PayloadInspector.cc
@@ -164,10 +164,9 @@ namespace {
return pufactors_db;
}
- /*
//(Not used for the moment)
//_________________________________________________
- bool matches(const DetId& detid, const DetId& db_id, const std::vector<uint32_t>& DetIdmasks) {
+ [[maybe_unused]] bool matches(const DetId& detid, const DetId& db_id, const std::vector<uint32_t>& DetIdmasks) {
if (detid.subdetId() != db_id.subdetId())
return false;
for (size_t i = 0; i < DetIdmasks.size(); ++i) {
@@ -180,7 +179,6 @@ namespace {
}
return true;
}
- */
//_________________________________________________
bool checkPhase(const SiPixelPI::phase phase, const std::vector<uint32_t>& masks_db) {
I see that the warning goes away.
I can apply this in the next iteration (if it will still be unused).
+1 |
PR description:
The purpose of this PR is introduce Pixel Tracker Maps (via
Phase1PixelSummaryMap
) of the input factors for the computation of the dynamic inefficiency used in the pixel digitizer. This is done separately for geometrical and PU factors.Provision for the further expansion are laid out, but currently not used (and therefore commented)
The package unit tests are also expanded accordingly.
PR validation:
Run the following script:
and obtained sensible plots. An example is the following plot:
Also tested the package unit tests via
scram b runtests
.If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
N/A