Main Page
Namespaces
Classes
Package Documentation
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
5
namespace
edm
6
{
7
8
bool
MergeableCounter::mergeProduct
(
MergeableCounter
const
&
a
)
9
{
10
if
(a.
value
> 0 &&
value
+a.
value
< a.
value
){
11
edm::LogWarning
(
"MergeableCounter|ProductsNotMergeable"
)
12
<<
"The merge would lead to an overflow of the counter"
<< std::endl;
13
return
false
;
14
}
15
value
+= a.
value
;
16
return
true
;
17
}
18
19
}
MessageLogger.h
edm::MergeableCounter::mergeProduct
bool mergeProduct(MergeableCounter const &newThing)
Definition:
MergeableCounter.cc:8
edm::LogWarning
Definition:
MessageLogger.h:142
edm::MergeableCounter
Definition:
MergeableCounter.h:6
value
Definition:
value.py:1
edm::MergeableCounter::value
int value
Definition:
MergeableCounter.h:9
MergeableCounter.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
a
double a
Definition:
hdecay.h:121
Generated for CMSSW Reference Manual by
1.8.11