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 }
GenRunInfoProduct::isProductEqual
bool isProductEqual(const GenRunInfoProduct &other) const
Definition: GenRunInfoProduct.cc:19
MessageLogger.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
GenRunInfoProduct.h
trackingPlots.other
other
Definition: trackingPlots.py:1460
GenRunInfoProduct
Definition: GenRunInfoProduct.h:8
GenRunInfoProduct::externalFilterEfficiency_
double externalFilterEfficiency_
Definition: GenRunInfoProduct.h:64
std
Definition: JetResolutionObject.h:76
GenRunInfoProduct::externalXSecNLO_
XSec externalXSecNLO_
Definition: GenRunInfoProduct.h:63
GenRunInfoProduct::externalXSecLO_
XSec externalXSecLO_
Definition: GenRunInfoProduct.h:63
GenRunInfoProduct::GenRunInfoProduct
GenRunInfoProduct()
Definition: GenRunInfoProduct.cc:11
mps_fire.result
result
Definition: mps_fire.py:311