Main Page
Namespaces
Classes
Package Documentation
SimDataFormats
GeneratorProducts
src
GenRunInfoProduct.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <algorithm>
3
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
6
#include "
SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h
"
7
8
using namespace
edm
;
9
using namespace
std
;
10
11
GenRunInfoProduct::GenRunInfoProduct
() : externalFilterEfficiency_(-1.) {}
12
13
GenRunInfoProduct::GenRunInfoProduct
(
GenRunInfoProduct
const
&
other
)
14
:
internalXSec_
(other.
internalXSec_
),
15
externalXSecLO_
(other.
externalXSecLO_
),
16
externalXSecNLO_
(other.
externalXSecNLO_
),
17
externalFilterEfficiency_
(other.
externalFilterEfficiency_
) {}
18
19
bool
GenRunInfoProduct::isProductEqual
(
GenRunInfoProduct
const
&
other
)
const
{
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
}
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:294
GenRunInfoProduct.h
edm::LogWarning
Definition:
MessageLogger.h:141
std
Definition:
JetResolutionObject.h:76
trackingPlots.other
other
Definition:
trackingPlots.py:1455
GenRunInfoProduct::externalFilterEfficiency_
double externalFilterEfficiency_
Definition:
GenRunInfoProduct.h:64
GenRunInfoProduct::isProductEqual
bool isProductEqual(const GenRunInfoProduct &other) const
Definition:
GenRunInfoProduct.cc:19
GenRunInfoProduct::internalXSec_
XSec internalXSec_
Definition:
GenRunInfoProduct.h:62
GenRunInfoProduct::externalXSecLO_
XSec externalXSecLO_
Definition:
GenRunInfoProduct.h:63
GenRunInfoProduct::GenRunInfoProduct
GenRunInfoProduct()
Definition:
GenRunInfoProduct.cc:11
edm
HLT enums.
Definition:
AlignableModifier.h:19
GenRunInfoProduct::externalXSecNLO_
XSec externalXSecNLO_
Definition:
GenRunInfoProduct.h:63
GenRunInfoProduct
Definition:
GenRunInfoProduct.h:8
Generated for CMSSW Reference Manual by
1.8.11