Main Page
Namespaces
Classes
Package Documentation
DataFormats
L1THGCal
src
HGCalTower.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1THGCal/interface/HGCalTower.h
"
2
#include "
FWCore/Utilities/interface/EDMException.h
"
3
4
using namespace
l1t
;
5
6
HGCalTower::HGCalTower
(
const
LorentzVector
&
p4
,
7
double
etEm,
8
double
etHad,
9
int
pt
,
10
int
eta
,
11
int
phi
,
12
int
qual,
13
int
hwEtEm,
14
int
hwEtHad,
15
int
hwEtRatio)
16
:
L1Candidate
(p4, pt, eta, phi, qual),
17
etEm_(etEm),
18
etHad_(etHad),
19
hwEtEm_(hwEtEm),
20
hwEtHad_(hwEtHad),
21
hwEtRatio_(hwEtRatio)
22
{
23
24
}
25
26
HGCalTower::~HGCalTower
()
27
{
28
29
}
30
31
void
HGCalTower::setEtEm
(
double
et
)
32
{
33
etEm_
=
et
;
34
}
35
36
void
HGCalTower::setEtHad
(
double
et
)
37
{
38
etHad_
=
et
;
39
}
40
41
void
HGCalTower::setHwEtEm
(
int
et
)
42
{
43
hwEtEm_
=
et
;
44
}
45
46
void
HGCalTower::setHwEtHad
(
int
et
)
47
{
48
hwEtHad_
=
et
;
49
}
50
51
void
HGCalTower::setHwEtRatio
(
int
ratio
)
52
{
53
hwEtRatio_
=
ratio
;
54
}
55
56
double
HGCalTower::etEm
()
const
57
{
58
return
etEm_
;
59
}
60
61
double
HGCalTower::etHad
()
const
62
{
63
return
etHad_
;
64
}
65
66
int
HGCalTower::hwEtEm
()
const
67
{
68
return
hwEtEm_
;
69
}
70
71
int
HGCalTower::hwEtHad
()
const
72
{
73
return
hwEtHad_
;
74
}
75
76
int
HGCalTower::hwEtRatio
()
const
77
{
78
return
hwEtRatio_
;
79
}
80
81
82
83
84
HGCalTower
&
HGCalTower::operator+=
(
const
HGCalTower
& tower){
85
86
if
(this->
hwEta
()!= tower.
hwEta
() || this->
hwPhi
()!= tower.
hwPhi
()){
87
throw
edm::Exception
(
edm::errors::StdException
,
"StdException"
)
88
<<
"HGCalTower: Trying to add HGCalTowers with different coordinates"
<<endl;
89
}
90
91
this->
setP4
(this->
p4
() + tower.
p4
());
92
this->
setEtEm
(this->
etEm
() + tower.
etEm
());
93
this->
setEtHad
(this->
etHad
() + tower.
etHad
());
94
95
this->
setHwPt
(this->
hwPt
() + tower.
hwPt
());
96
this->
setHwEtEm
(this->
hwEtEm
() + tower.
hwEtEm
());
97
this->
setHwEtHad
(this->
hwEtHad
() + tower.
hwEtHad
());
98
99
return
*
this
;
100
101
}
l1t::HGCalTower::HGCalTower
HGCalTower()
Definition:
HGCalTower.h:17
l1t::HGCalTower
Definition:
HGCalTower.h:13
edm::errors::StdException
Definition:
EDMException.h:29
particleFlowDisplacedVertex_cfi.ratio
ratio
Definition:
particleFlowDisplacedVertex_cfi.py:93
l1t::HGCalTower::setEtEm
void setEtEm(double et)
Definition:
HGCalTower.cc:31
l1t::HGCalTower::~HGCalTower
~HGCalTower()
Definition:
HGCalTower.cc:26
Exception
Definition:
hltDiff.cc:292
l1t::HGCalTower::setHwEtHad
void setHwEtHad(int et)
Definition:
HGCalTower.cc:46
l1t::HGCalTower::etHad
double etHad() const
Definition:
HGCalTower.cc:61
l1t::HGCalTower::setHwEtEm
void setHwEtEm(int et)
Definition:
HGCalTower.cc:41
l1t::HGCalTower::hwEtRatio
int hwEtRatio() const
Definition:
HGCalTower.cc:76
PVValHelper::eta
Definition:
PVValidationHelpers.h:49
l1t::HGCalTower::hwEtHad_
int hwEtHad_
Definition:
HGCalTower.h:55
l1t::L1Candidate::hwPhi
int hwPhi() const
Definition:
L1Candidate.h:50
l1t::HGCalTower::hwEtRatio_
int hwEtRatio_
Definition:
HGCalTower.h:56
l1t
delete x;
Definition:
CaloConfig.h:22
EnergyCorrector.pt
pt
Definition:
EnergyCorrector.py:45
DDAxes::phi
reco::LeafCandidate::et
virtual double et() const final
transverse energy
Definition:
LeafCandidate.h:112
EDMException.h
HGCalTower.h
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1t::L1Candidate
Definition:
L1Candidate.h:16
l1t::L1Candidate::hwEta
int hwEta() const
Definition:
L1Candidate.h:49
l1t::HGCalTower::hwEtEm
int hwEtEm() const
Definition:
HGCalTower.cc:66
l1t::HGCalTower::setHwEtRatio
void setHwEtRatio(int ratio)
Definition:
HGCalTower.cc:51
l1t::L1Candidate::hwPt
int hwPt() const
Definition:
L1Candidate.h:48
l1t::HGCalTower::hwEtHad
int hwEtHad() const
Definition:
HGCalTower.cc:71
reco::LeafCandidate::setP4
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
Definition:
LeafCandidate.h:143
l1t::HGCalTower::etEm_
double etEm_
Definition:
HGCalTower.h:51
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:37
l1t::HGCalTower::etHad_
double etHad_
Definition:
HGCalTower.h:52
l1t::HGCalTower::operator+=
HGCalTower & operator+=(const HGCalTower &tower)
Definition:
HGCalTower.cc:84
l1t::HGCalTower::etEm
double etEm() const
Definition:
HGCalTower.cc:56
l1t::L1Candidate::setHwPt
void setHwPt(int pt)
Definition:
L1Candidate.h:41
reco::LeafCandidate::p4
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition:
LeafCandidate.h:99
l1t::HGCalTower::setEtHad
void setEtHad(double et)
Definition:
HGCalTower.cc:36
l1t::HGCalTower::hwEtEm_
int hwEtEm_
Definition:
HGCalTower.h:54
Generated for CMSSW Reference Manual by
1.8.11