Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
#include "
DataFormats/L1Trigger/interface/L1Candidate.h
"
5
#include "
DataFormats/L1Trigger/interface/BXVector.h
"
6
#include "
DataFormats/L1THGCal/interface/HGCalTowerID.h
"
7
8
namespace
l1t {
9
10
class
HGCalTower
;
11
typedef
BXVector<HGCalTower>
HGCalTowerBxCollection
;
12
13
class
HGCalTower
:
public
L1Candidate
{
14
public
:
15
HGCalTower
() :
etEm_
(0.),
etHad_
(0.),
id_
(0),
hwEtEm_
(0),
hwEtHad_
(0),
hwEtRatio_
(0) {}
16
17
HGCalTower
(
double
etEm
,
18
double
etHad
,
19
double
eta
,
20
double
phi
,
21
uint32_t
id
,
22
int
hwpt = 0,
23
int
hweta = 0,
24
int
hwphi = 0,
25
int
qual = 0,
26
int
hwEtEm
= 0,
27
int
hwEtHad
= 0,
28
int
hwEtRatio
= 0);
29
30
~HGCalTower
()
override
;
31
32
void
addEtEm
(
double
et
);
33
void
addEtHad
(
double
et
);
34
35
double
etEm
()
const
{
return
etEm_
; };
36
double
etHad
()
const
{
return
etHad_
; };
37
38
const
HGCalTower
&
operator+=
(
const
HGCalTower
&
tower
);
39
40
HGCalTowerID
id
()
const
{
return
id_
; }
41
short
zside
()
const
{
return
id_
.
zside
(); }
42
43
void
setHwEtEm
(
int
et
) {
hwEtEm_
=
et
; }
44
void
setHwEtHad
(
int
et
) {
hwEtHad_
=
et
; }
45
void
setHwEtRatio
(
int
ratio) {
hwEtRatio_
= ratio; }
46
47
int
hwEtEm
()
const
{
return
hwEtEm_
; }
48
int
hwEtHad
()
const
{
return
hwEtHad_
; }
49
int
hwEtRatio
()
const
{
return
hwEtRatio_
; }
50
51
private
:
52
void
addEt
(
double
et
);
53
54
// additional hardware quantities
55
double
etEm_
;
56
double
etHad_
;
57
HGCalTowerID
id_
;
58
59
int
hwEtEm_
;
60
int
hwEtHad_
;
61
int
hwEtRatio_
;
62
};
63
64
}
// namespace l1t
65
66
#endif
l1t::HGCalTower::HGCalTower
HGCalTower()
Definition:
HGCalTower.h:15
l1t::HGCalTower
Definition:
HGCalTower.h:13
l1t::HGCalTower::hwEtHad
int hwEtHad() const
Definition:
HGCalTower.h:48
l1t::HGCalTower::etHad
double etHad() const
Definition:
HGCalTower.h:36
l1t::HGCalTower::operator+=
const HGCalTower & operator+=(const HGCalTower &tower)
Definition:
HGCalTower.cc:41
HGCalTowerID.h
l1t::HGCalTower::hwEtEm
int hwEtEm() const
Definition:
HGCalTower.h:47
l1t::HGCalTowerID::zside
short zside() const
Definition:
HGCalTowerID.h:23
l1t::HGCalTower::addEt
void addEt(double et)
Definition:
HGCalTower.cc:39
l1t::HGCalTower::hwEtHad_
int hwEtHad_
Definition:
HGCalTower.h:60
l1t::HGCalTower::hwEtRatio_
int hwEtRatio_
Definition:
HGCalTower.h:61
l1t::HGCalTower::setHwEtRatio
void setHwEtRatio(int ratio)
Definition:
HGCalTower.h:45
l1t::HGCalTower::addEtEm
void addEtEm(double et)
Definition:
HGCalTower.cc:29
BXVector.h
hgcalTowerProducer_cfi.tower
tuple tower
Definition:
hgcalTowerProducer_cfi.py:4
l1t::HGCalTowerBxCollection
BXVector< HGCalTower > HGCalTowerBxCollection
Definition:
HGCalTower.h:10
l1t::HGCalTower::setHwEtHad
void setHwEtHad(int et)
Definition:
HGCalTower.h:44
l1t::HGCalTower::hwEtRatio
int hwEtRatio() const
Definition:
HGCalTower.h:49
l1t::L1Candidate
Definition:
L1Candidate.h:15
l1t::HGCalTower::setHwEtEm
void setHwEtEm(int et)
Definition:
HGCalTower.h:43
l1t::HGCalTower::id_
HGCalTowerID id_
Definition:
HGCalTower.h:57
l1t::HGCalTower::~HGCalTower
~HGCalTower() override
Definition:
HGCalTower.cc:27
l1t::HGCalTower::zside
short zside() const
Definition:
HGCalTower.h:41
l1t::HGCalTower::id
HGCalTowerID id() const
Definition:
HGCalTower.h:40
l1t::HGCalTower::etEm
double etEm() const
Definition:
HGCalTower.h:35
L1Candidate.h
l1t::HGCalTower::etEm_
double etEm_
Definition:
HGCalTower.h:55
l1t::HGCalTower::etHad_
double etHad_
Definition:
HGCalTower.h:56
reco::LeafCandidate::et
double et() const final
transverse energy
Definition:
LeafCandidate.h:127
BXVector< HGCalTower >
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:148
l1t::HGCalTower::hwEtEm_
int hwEtEm_
Definition:
HGCalTower.h:59
l1t::HGCalTower::addEtHad
void addEtHad(double et)
Definition:
HGCalTower.cc:34
l1t::HGCalTowerID
Definition:
HGCalTowerID.h:10
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition:
LeafCandidate.h:152
Generated for CMSSW Reference Manual by
1.8.5