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
() :
12
externalFilterEfficiency_(-1.)
13
{
14
}
15
16
GenRunInfoProduct::GenRunInfoProduct
(
GenRunInfoProduct
const
&
other
) :
17
internalXSec_
(other.
internalXSec_
),
18
externalXSecLO_
(other.
externalXSecLO_
),
19
externalXSecNLO_
(other.
externalXSecNLO_
),
20
externalFilterEfficiency_
(other.
externalFilterEfficiency_
)
21
{
22
}
23
24
bool
GenRunInfoProduct::isProductEqual
(
GenRunInfoProduct
const
&
other
)
const
25
{
26
bool
result
=
externalXSecLO_
== other.
externalXSecLO_
&&
27
externalXSecNLO_
== other.
externalXSecNLO_
&&
28
externalFilterEfficiency_
== other.
externalFilterEfficiency_
;
29
if
( not result) {
30
edm::LogWarning
(
"GenRunInfoProduct|ProductsNotMergeable"
)
31
<<
"You are merging runs with different cross-sections and/or "
32
"filter efficiencies (from GenRunInfoProduct)\n"
33
"The resulting cross-section will not be consistent."
<< std::endl;
34
}
35
36
return
result
;
37
}
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:283
GenRunInfoProduct.h
edm::LogWarning
Definition:
MessageLogger.h:141
std
Definition:
JetResolutionObject.h:80
trackingPlots.other
other
Definition:
trackingPlots.py:1453
GenRunInfoProduct::externalFilterEfficiency_
double externalFilterEfficiency_
Definition:
GenRunInfoProduct.h:68
GenRunInfoProduct::isProductEqual
bool isProductEqual(const GenRunInfoProduct &other) const
Definition:
GenRunInfoProduct.cc:24
GenRunInfoProduct::internalXSec_
XSec internalXSec_
Definition:
GenRunInfoProduct.h:66
GenRunInfoProduct::externalXSecLO_
XSec externalXSecLO_
Definition:
GenRunInfoProduct.h:67
GenRunInfoProduct::GenRunInfoProduct
GenRunInfoProduct()
Definition:
GenRunInfoProduct.cc:11
edm
HLT enums.
Definition:
AlignableModifier.h:17
GenRunInfoProduct::externalXSecNLO_
XSec externalXSecNLO_
Definition:
GenRunInfoProduct.h:67
GenRunInfoProduct
Definition:
GenRunInfoProduct.h:8
Generated for CMSSW Reference Manual by
1.8.11