Skip to content

Commit

Permalink
code-format
Browse files Browse the repository at this point in the history
fabferro committed Jul 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d6e8160 commit 5f47558
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions EventFilter/CTPPSRawToDigi/interface/CTPPSPixelErrorSummary.h
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@

class CTPPSPixelErrorSummary {
public:
CTPPSPixelErrorSummary(const std::string& category, const std::string& name, bool debug = false)
: m_debug(debug), m_category(category), m_name(name) {}
CTPPSPixelErrorSummary(const std::string& category, const std::string& name, bool debug = false)
: m_debug(debug), m_category(category), m_name(name) {}

void add(const std::string& message, const std::string& details = "");
void printSummary() const;
@@ -18,4 +18,4 @@ CTPPSPixelErrorSummary(const std::string& category, const std::string& name, boo
std::string m_name;
std::map<std::string, std::size_t> m_errors;
};
#endif
#endif
4 changes: 1 addition & 3 deletions EventFilter/CTPPSRawToDigi/plugins/CTPPSPixelRawToDigi.cc
Original file line number Diff line number Diff line change
@@ -122,8 +122,6 @@ void CTPPSPixelRawToDigi::produce(edm::Event& ev, const edm::EventSetup& es) {
}
}

void CTPPSPixelRawToDigi::endStream() {
eSummary_.printSummary();
}
void CTPPSPixelRawToDigi::endStream() { eSummary_.printSummary(); }

DEFINE_FWK_MODULE(CTPPSPixelRawToDigi);
6 changes: 3 additions & 3 deletions EventFilter/CTPPSRawToDigi/src/CTPPSPixelErrorSummary.cc
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ void CTPPSPixelErrorSummary::add(const std::string& message, const std::string&
if (eIt == m_errors.end()) {
m_errors.emplace(message, 1);
edm::LogError(m_category) << message << ": " << details
<< (m_debug ? ""
: "\nNote: further warnings of this type will be suppressed (this can be "
"changed by enabling debugging printout)");
<< (m_debug ? ""
: "\nNote: further warnings of this type will be suppressed (this can be "
"changed by enabling debugging printout)");
} else {
++(eIt->second);
if (m_debug) {

0 comments on commit 5f47558

Please sign in to comment.