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
DataFormats
Common
src
MergeableCounter.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/MergeableCounter.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include <ostream>
4
#include <utility>
5
6
namespace
edm
{
7
8
bool
MergeableCounter::mergeProduct
(
MergeableCounter
const
&
a
) {
9
if
(
a
.value > 0 &&
value
+
a
.value <
a
.value) {
10
edm::LogWarning
(
"MergeableCounter|ProductsNotMergeable"
)
11
<<
"The merge would lead to an overflow of the counter"
<< std::endl;
12
return
false
;
13
}
14
value
+=
a
.value;
15
return
true
;
16
}
17
18
void
MergeableCounter::swap
(
MergeableCounter
& iOther) {
std::swap
(
value
, iOther.
value
); }
19
}
// namespace edm
MessageLogger.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition:
MessageLogger.h:122
MergeableCounter.h
edm::MergeableCounter::value
int value
Definition:
MergeableCounter.h:11
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition:
DataFrameContainer.h:209
edm::MergeableCounter::swap
void swap(MergeableCounter &iOther)
Definition:
MergeableCounter.cc:18
a
double a
Definition:
hdecay.h:119
edm::MergeableCounter
Definition:
MergeableCounter.h:6
value
Definition:
value.py:1
edm::MergeableCounter::mergeProduct
bool mergeProduct(MergeableCounter const &newThing)
Definition:
MergeableCounter.cc:8
Generated for CMSSW Reference Manual by
1.8.16