CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MergeableCounter.cc
Go to the documentation of this file.
3 
4 namespace edm
5 {
6 
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 }
bool mergeProduct(MergeableCounter const &newThing)
double a
Definition: hdecay.h:121