CMS 3D CMS Logo

MergeableCounter.cc
Go to the documentation of this file.
3 #include <ostream>
4 
5 namespace edm
6 {
7 
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 }
bool mergeProduct(MergeableCounter const &newThing)
Definition: value.py:1
HLT enums.
double a
Definition: hdecay.h:121