Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
EventFilter
SiStripRawToDigi
plugins
WarningSummary.cc
Go to the documentation of this file.
1
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
2
#include "
EventFilter/SiStripRawToDigi/plugins/WarningSummary.h
"
3
4
#include <algorithm>
5
6
void
sistrip::WarningSummary::add
(
const
std::string
& message,
const
std::string
&
details
) {
7
const
auto
wIt = std::find_if(
8
std::begin
(
m_warnings
),
std::end
(
m_warnings
), [&message](
const
std::pair<std::string, std::size_t>&
item
) {
9
return
item
.first == message;
10
});
11
if
(
std::end
(
m_warnings
) == wIt) {
12
m_warnings
.emplace(message, 1);
13
edm::LogWarning
(
m_category
) << message <<
": "
<<
details
14
<< (
m_debug
?
""
15
:
"\nNote: further warnings of this type will be suppressed (this can be "
16
"changed by enabling debugging printout)"
);
17
}
else
{
18
++(wIt->second);
19
if
(
m_debug
) {
20
edm::LogWarning
(
m_category
) << message <<
": "
<<
details
;
21
}
22
}
23
}
24
25
void
sistrip::WarningSummary::printSummary
()
const
{
26
if
(!m_warnings.empty()) {
27
std::stringstream message;
28
message << m_name <<
" warnings:"
;
29
for
(
const
auto
& warnAndCount : m_warnings) {
30
message << std::endl << warnAndCount.first <<
" ("
<< warnAndCount.second <<
")"
;
31
}
32
edm::LogWarning
(m_category) << message.str();
33
}
34
}
sistrip::WarningSummary::m_warnings
std::map< std::string, std::size_t > m_warnings
Definition:
WarningSummary.h:20
MessageLogger.h
sistrip::WarningSummary::m_category
std::string m_category
Definition:
WarningSummary.h:18
sistrip::WarningSummary::add
void add(const std::string &message, const std::string &details="")
Definition:
WarningSummary.cc:6
sistrip::WarningSummary::printSummary
void printSummary() const
Definition:
WarningSummary.cc:25
end
#define end
Definition:
vmac.h:39
details
Definition:
helper.h:56
sistrip::WarningSummary::m_debug
bool m_debug
Definition:
WarningSummary.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition:
MessageLogger.h:141
WarningSummary.h
B2GTnPMonitor_cfi.item
item
Definition:
B2GTnPMonitor_cfi.py:147
begin
#define begin
Definition:
vmac.h:32
Generated for CMSSW Reference Manual by
1.8.16