Main Page
Namespaces
Classes
Package Documentation
DataFormats
L1THGCal
src
HGCalCluster.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1THGCal/interface/HGCalCluster.h
"
2
3
using namespace
l1t
;
4
5
HGCalCluster::HGCalCluster
(
const
LorentzVector
p4
,
6
int
pt
,
7
int
eta
,
8
int
phi
)
9
:
L1Candidate
(p4, pt, eta, phi)
10
{
11
12
}
13
14
HGCalCluster::~HGCalCluster
()
15
{
16
17
}
18
19
bool
HGCalCluster::operator<
(
const
HGCalCluster
&
cl
)
const
20
{
21
bool
res
=
false
;
22
// Favour high pT
23
if
(
hwPt
()<cl.
hwPt
()) res =
true
;
24
else
if
(
hwPt
()==cl.
hwPt
()) {
25
// Favour central clusters
26
if
(
abs
(
hwEta
())>
abs
(cl.
hwEta
()) ) res =
true
;
27
else
if
(
abs
(
hwEta
())==
abs
(cl.
hwEta
()) ){
28
// Favour small phi (arbitrary)
29
if
(
hwPhi
()>cl.
hwPhi
()) res =
true
;
30
}
31
}
32
return
res;
33
}
stringResolutionProvider_cfi.eta
eta
Definition:
stringResolutionProvider_cfi.py:14
l1t::L1Candidate::hwPhi
int hwPhi() const
Definition:
L1Candidate.h:50
l1t
delete x;
Definition:
CaloConfig.h:22
EnergyCorrector.pt
pt
Definition:
EnergyCorrector.py:45
res
Definition:
Electron.h:4
DDAxes::phi
p4
double p4[4]
Definition:
TauolaWrapper.h:92
l1t::L1Candidate
Definition:
L1Candidate.h:16
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
l1t::HGCalCluster
Definition:
HGCalCluster.h:9
l1t::L1Candidate::hwEta
int hwEta() const
Definition:
L1Candidate.h:49
l1t::L1Candidate::hwPt
int hwPt() const
Definition:
L1Candidate.h:48
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:37
HGCalCluster.h
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition:
GetRecoTauVFromDQM_MC_cff.py:37
l1t::HGCalCluster::HGCalCluster
HGCalCluster()
Definition:
HGCalCluster.h:11
l1t::HGCalCluster::~HGCalCluster
~HGCalCluster()
Definition:
HGCalCluster.cc:14
l1t::HGCalCluster::operator<
bool operator<(const HGCalCluster &cl) const
Definition:
HGCalCluster.cc:19
Generated for CMSSW Reference Manual by
1.8.11