CMS 3D CMS Logo

GenRunInfoProduct.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <algorithm>
3 
5 
7 
8 using namespace edm;
9 using namespace std;
10 
11 GenRunInfoProduct::GenRunInfoProduct() : externalFilterEfficiency_(-1.) {}
12 
14  bool result = externalXSecLO_ == other.externalXSecLO_ && externalXSecNLO_ == other.externalXSecNLO_ &&
15  externalFilterEfficiency_ == other.externalFilterEfficiency_;
16  if (not result) {
17  edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
18  << "You are merging runs with different cross-sections and/or "
19  "filter efficiencies (from GenRunInfoProduct)\n"
20  "The resulting cross-section will not be consistent."
21  << std::endl;
22  }
23 
24  return result;
25 }
bool isProductEqual(const GenRunInfoProduct &other) const
double externalFilterEfficiency_
HLT enums.
Log< level::Warning, false > LogWarning