-
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
Run3-hcx328 Replace cout with LogVerbatim and update the cfg's in Geometry/HcalCommonData #36372
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36372/27144
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
@cmsbuild Please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36372/27146
|
A new Pull Request was created by @bsunanda (Sunanda Banerjee) for master. It involves the following packages:
@civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d7e3c/21015/summary.html Comparison SummarySummary:
|
In the comparison test workflow 10042.0 ZMM 2017 had several unexpected differences. How can any change in this PR cause those differences? |
@@ -117,8 +121,8 @@ int HcalLayerDepthMap::getDepth( | |||
depth = itr->second; | |||
} | |||
#ifdef EDM_ML_DEBUG | |||
std::cout << "getDepth::Input " << subdet << ":" << ieta << ":" << iphi << ":" << zside << ":" << layer << " Output " | |||
<< depth << std::endl; | |||
edm::LogVerbatim("HCalGeom") << "getDepth::Input " << subdet << ":" << ieta << ":" << iphi << ":" << zside << ":" |
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.
edm::LogVerbatim("HCalGeom") << "getDepth::Input " << subdet << ":" << ieta << ":" << iphi << ":" << zside << ":" | |
edm::LogVerbatim("HCalGeom") << "Debug info -- getDepth::Input " << subdet << ":" << ieta << ":" << iphi << ":" << zside << ":" |
@@ -128,31 +132,31 @@ int HcalLayerDepthMap::getDepth16(const int subdet, const int iphi, const int zs | |||
if (isValid(subdet, iphi, zside)) | |||
depth = dep16C_; | |||
#ifdef EDM_ML_DEBUG | |||
std::cout << "getDepth16::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth << std::endl; | |||
edm::LogVerbatim("HCalGeom") << "getDepth16::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; |
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.
edm::LogVerbatim("HCalGeom") << "getDepth16::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; | |
edm::LogVerbatim("HCalGeom") << "Debug info -- getDepth16::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; |
#endif | ||
return depth; | ||
} | ||
|
||
int HcalLayerDepthMap::getDepthMin(const int subdet, const int iphi, const int zside) const { | ||
int depth = (isValid(subdet, iphi, zside)) ? depthMin_ : -1; | ||
#ifdef EDM_ML_DEBUG | ||
std::cout << "getDepthMin::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth << std::endl; | ||
edm::LogVerbatim("HCalGeom") << "getDepthMin::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; |
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.
edm::LogVerbatim("HCalGeom") << "getDepthMin::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; | |
edm::LogVerbatim("HCalGeom") << "Debug info -- getDepthMin::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; |
#endif | ||
return depth; | ||
} | ||
|
||
int HcalLayerDepthMap::getDepthMax(const int subdet, const int iphi, const int zside) const { | ||
int depth = (isValid(subdet, iphi, zside)) ? depthMax_ : -1; | ||
#ifdef EDM_ML_DEBUG | ||
std::cout << "getDepthMax::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth << std::endl; | ||
edm::LogVerbatim("HCalGeom") << "getDepthMax::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; |
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.
edm::LogVerbatim("HCalGeom") << "getDepthMax::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; | |
edm::LogVerbatim("HCalGeom") << "Debug info -- getDepthMax::Input " << subdet << ":" << iphi << ":" << zside << " Output " << depth; |
To explain my suggestions above: As I mentioned in issue #34294, some of the debug messages from |
Comparison differences in reco quantities for workflow 10042.0 have appeared again. These differences don't appear in recent tests in other PRs, but I don't see any change in this PR that could cause these differences. |
@cvuosalo Please approve this PR |
@bsunanda What is the explanation of the comparison differences? If they are caused by this PR, then the PR needs to be changed to prevent such differences.
|
@cvuosalo This PR only modifies the print statements from out to LogVerbatim and use uniform token name "HCalGeom" rather than a mixture of "HCalGeom" and "HcalGeom". Please approve this PR |
Let's try the comparison test again. |
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d7e3c/21276/summary.html Comparison SummarySummary:
|
The comparison differences have disappeared in the latest test. They were not related to this PR but may have briefly been in the IB used for previous tests. |
+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, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6d7e3c/21300/summary.html Comparison SummarySummary:
|
+1 |
PR description:
Replace cout with LogVerbatim and update the cfg's in Geometry/HcalCommonData
PR validation:
Use the runTheMatrix test workflows and cfg's in the test directory
if this PR is a backport please specify the original PR and why you need to backport that PR:
Nothing special