Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
4
namespace
edm
5
{
6
7
bool
MergeableCounter::mergeProduct
(
MergeableCounter
const
&
a
)
8
{
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
}
MessageLogger.h
edm::MergeableCounter::mergeProduct
bool mergeProduct(MergeableCounter const &newThing)
Definition:
MergeableCounter.cc:7
edm::LogWarning
Definition:
MessageLogger.h:140
edm::MergeableCounter
Definition:
MergeableCounter.h:6
edm::MergeableCounter::value
int value
Definition:
MergeableCounter.h:9
MergeableCounter.h
a
double a
Definition:
hdecay.h:121
Generated for CMSSW Reference Manual by
1.8.5