Skip to content

Commit

Permalink
code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
fabferro committed Jul 19, 2023
1 parent aee3564 commit 327e166
Show file tree
Hide file tree
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
Expand Up @@ -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;
Expand All @@ -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
Expand Up @@ -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
Expand Up @@ -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) {
Expand Down

0 comments on commit 327e166

Please sign in to comment.