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  : internalXSec_(other.internalXSec_),
15  externalXSecLO_(other.externalXSecLO_),
16  externalXSecNLO_(other.externalXSecNLO_),
17  externalFilterEfficiency_(other.externalFilterEfficiency_) {}
18 
20  bool result = externalXSecLO_ == other.externalXSecLO_ && externalXSecNLO_ == other.externalXSecNLO_ &&
21  externalFilterEfficiency_ == other.externalFilterEfficiency_;
22  if (not result) {
23  edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
24  << "You are merging runs with different cross-sections and/or "
25  "filter efficiencies (from GenRunInfoProduct)\n"
26  "The resulting cross-section will not be consistent."
27  << std::endl;
28  }
29 
30  return result;
31 }
bool isProductEqual(const GenRunInfoProduct &other) const
double externalFilterEfficiency_
HLT enums.
Log< level::Warning, false > LogWarning