Main Page
Namespaces
Classes
Package Documentation
DataFormats
L1THGCal
interface
HGCalTower.h
Go to the documentation of this file.
1
#ifndef DataFormats_L1TCalorimeter_HGCalTower_h
2
#define DataFormats_L1TCalorimeter_HGCalTower_h
3
4
5
#include "
DataFormats/L1Trigger/interface/L1Candidate.h
"
6
#include "
DataFormats/L1Trigger/interface/BXVector.h
"
7
#include "
DataFormats/L1THGCal/interface/HGCalTowerID.h
"
8
9
namespace
l1t
{
10
11
class
HGCalTower
;
12
typedef
BXVector<HGCalTower>
HGCalTowerBxCollection
;
13
14
class
HGCalTower
:
public
L1Candidate
{
15
16
public
:
17
18
HGCalTower
():
etEm_
(0.),
19
etHad_
(0.),
20
id_
(0),
21
hwEtEm_
(0),
22
hwEtHad_
(0),
23
hwEtRatio_
(0) {}
24
25
HGCalTower
(
double
etEm
,
26
double
etHad
,
27
double
eta
,
28
double
phi
,
29
unsigned
short
id
,
30
int
hwpt=0,
31
int
hweta=0,
32
int
hwphi=0,
33
int
qual=0,
34
int
hwEtEm
=0,
35
int
hwEtHad
=0,
36
int
hwEtRatio
=0);
37
38
~HGCalTower
()
override
;
39
40
41
42
void
addEtEm
(
double
et
);
43
void
addEtHad
(
double
et);
44
45
double
etEm
()
const
{
return
etEm_
; };
46
double
etHad
()
const
{
return
etHad_
; };
47
48
const
HGCalTower
&
operator+=
(
const
HGCalTower
& tower);
49
50
HGCalTowerID
id
()
const
{
return
id_
;}
51
short
zside
()
const
{
return
id_
.
zside
(); }
52
53
void
setHwEtEm
(
int
et) {
hwEtEm_
=
et
; }
54
void
setHwEtHad
(
int
et) {
hwEtHad_
=
et
; }
55
void
setHwEtRatio
(
int
ratio
) {
hwEtRatio_
=
ratio
; }
56
57
int
hwEtEm
()
const
{
return
hwEtEm_
; }
58
int
hwEtHad
()
const
{
return
hwEtHad_
; }
59
int
hwEtRatio
()
const
{
return
hwEtRatio_
; }
60
61
private
:
62
63
void
addEt
(
double
et);
64
65
// additional hardware quantities
66
double
etEm_
;
67
double
etHad_
;
68
HGCalTowerID
id_
;
69
70
int
hwEtEm_
;
71
int
hwEtHad_
;
72
int
hwEtRatio_
;
73
74
};
75
76
}
77
78
#endif
l1t::HGCalTower::HGCalTower
HGCalTower()
Definition:
HGCalTower.h:18
l1t::HGCalTower
Definition:
HGCalTower.h:14
l1t::HGCalTower::hwEtHad
int hwEtHad() const
Definition:
HGCalTower.h:58
l1t::HGCalTower::etHad
double etHad() const
Definition:
HGCalTower.h:46
l1t::HGCalTower::operator+=
const HGCalTower & operator+=(const HGCalTower &tower)
Definition:
HGCalTower.cc:45
particleFlowDisplacedVertex_cfi.ratio
ratio
Definition:
particleFlowDisplacedVertex_cfi.py:93
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition:
LeafCandidate.h:137
HGCalTowerID.h
l1t::HGCalTower::hwEtEm
int hwEtEm() const
Definition:
HGCalTower.h:57
l1t::HGCalTowerID::zside
short zside() const
Definition:
HGCalTowerID.h:18
l1t::HGCalTower::addEt
void addEt(double et)
Definition:
HGCalTower.cc:40
l1t::HGCalTower::hwEtHad_
int hwEtHad_
Definition:
HGCalTower.h:71
l1t::HGCalTower::hwEtRatio_
int hwEtRatio_
Definition:
HGCalTower.h:72
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::HGCalTower::setHwEtRatio
void setHwEtRatio(int ratio)
Definition:
HGCalTower.h:55
l1t::HGCalTower::addEtEm
void addEtEm(double et)
Definition:
HGCalTower.cc:30
BXVector.h
l1t::HGCalTowerBxCollection
BXVector< HGCalTower > HGCalTowerBxCollection
Definition:
HGCalTower.h:11
l1t::HGCalTower::setHwEtHad
void setHwEtHad(int et)
Definition:
HGCalTower.h:54
reco::LeafCandidate::et
double et() const final
transverse energy
Definition:
LeafCandidate.h:112
l1t::HGCalTower::hwEtRatio
int hwEtRatio() const
Definition:
HGCalTower.h:59
l1t::L1Candidate
Definition:
L1Candidate.h:16
l1t::HGCalTower::setHwEtEm
void setHwEtEm(int et)
Definition:
HGCalTower.h:53
l1t::HGCalTower::id_
HGCalTowerID id_
Definition:
HGCalTower.h:68
l1t::HGCalTower::~HGCalTower
~HGCalTower() override
Definition:
HGCalTower.cc:27
l1t::HGCalTower::zside
short zside() const
Definition:
HGCalTower.h:51
l1t::HGCalTower::id
HGCalTowerID id() const
Definition:
HGCalTower.h:50
l1t::HGCalTower::etEm
double etEm() const
Definition:
HGCalTower.h:45
L1Candidate.h
l1t::HGCalTower::etEm_
double etEm_
Definition:
HGCalTower.h:66
l1t::HGCalTower::etHad_
double etHad_
Definition:
HGCalTower.h:67
BXVector
Definition:
BXVector.h:15
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:133
l1t::HGCalTower::hwEtEm_
int hwEtEm_
Definition:
HGCalTower.h:70
l1t::HGCalTower::addEtHad
void addEtHad(double et)
Definition:
HGCalTower.cc:35
l1t::HGCalTowerID
Definition:
HGCalTowerID.h:8
Generated for CMSSW Reference Manual by
1.8.11