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
LOCAL_DEBUG in MuonBaseNumber.cc restored #28921
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
#include "Geometry/MuonNumbering/interface/MuonBaseNumber.h" | ||||||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||||||
|
||||||
//#define LOCAL_DEBUG | ||||||
#define LOCAL_DEBUG | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
void MuonBaseNumber::addBase(const LevelBaseNumber& num) { | ||||||
basenumber_type::iterator cur = sortedBaseNumber.begin(); | ||||||
|
@@ -29,7 +29,7 @@ void MuonBaseNumber::addBase(const LevelBaseNumber& num) { | |||||
} | ||||||
sortedBaseNumber.insert(cur, num); | ||||||
|
||||||
//#ifdef LOCAL_DEBUG | ||||||
#ifdef LOCAL_DEBUG | ||||||
cur = sortedBaseNumber.begin(); | ||||||
end = sortedBaseNumber.end(); | ||||||
edm::LogVerbatim("Geometry") << "MuonBaseNumber::AddBase "; | ||||||
|
@@ -39,7 +39,7 @@ void MuonBaseNumber::addBase(const LevelBaseNumber& num) { | |||||
cur++; | ||||||
++k; | ||||||
} | ||||||
//#endif | ||||||
#endif | ||||||
} | ||||||
|
||||||
void MuonBaseNumber::addBase(const int level, const int super, const int base) { | ||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@slomeo Please explain this change. It turns on the debug statements. The problem in #28796 was that the debug statements were effectively turned on. I think you want to turn OFF the debug statements, which means this line should remain commented out. Am I missing something?
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.
@cvuosalo : The change is made to answer to @fabiocos (see #28796)
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.
@slomeo But how does it answer Fabio's request? It seems to do the opposite of what he requested.
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.
@cvuosalo I could make a test: restore the version where only the line 4 is commented (i.e //#define LOCAL_DEBUG)
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.
Yes, as Fabio suggested, please make a version where only line 4 is commented.
It should appear like the left side of https://github.com/cms-sw/cmssw/pull/28796/files/a6175cdc9b547560bede5f274e12ca51e431d5dd#diff-47cb6cf59007852c622e5f745bab812dL4-L42
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.
@slomeo I am afraid you misinterpreted my suggestion, we want to silence the messages but keep the possibility to switch them on, not to enable them by default