src
L1Trigger
L1THGCal
interface
backend
HGCalTower_SA.h
Go to the documentation of this file.
1
#ifndef L1Trigger_L1THGCal_HGCalTower_SA_h
2
#define L1Trigger_L1THGCal_HGCalTower_SA_h
3
4
#include <cstdint>
5
6
namespace
l1thgcfirmware
{
7
8
class
HGCalTower
{
9
public
:
10
HGCalTower
() =
default
;
11
HGCalTower
(
double
etEm
,
double
etHad
,
float
eta
,
float
phi
, uint32_t
rawId
)
12
:
etEm_
(
etEm
),
etHad_
(
etHad
),
eta_
(
eta
),
phi_
(
phi
),
id_
(
rawId
) {}
13
14
~HGCalTower
() =
default
;
15
16
double
etEm
()
const
{
return
etEm_
; }
17
double
etHad
()
const
{
return
etHad_
; }
18
19
float
eta
()
const
{
return
eta_
; }
20
float
phi
()
const
{
return
phi_
; }
21
uint32_t
id
()
const
{
return
id_
; }
22
23
void
addEtEm
(
double
et
);
24
void
addEtHad
(
double
et
);
25
26
HGCalTower
&
operator+=
(
const
HGCalTower
&
tower
);
27
28
private
:
29
double
etEm_
;
30
double
etHad_
;
31
32
float
eta_
;
33
float
phi_
;
34
uint32_t
id_
;
35
};
36
37
struct
HGCalTowerCoord
{
38
HGCalTowerCoord
(uint32_t
rawId
,
float
eta
,
float
phi
) :
rawId
(
rawId
),
eta
(
eta
),
phi
(
phi
) {}
39
40
const
uint32_t
rawId
;
41
const
float
eta
;
42
const
float
phi
;
43
};
44
}
// namespace l1thgcfirmware
45
46
#endif
l1thgcfirmware::HGCalTower::HGCalTower
HGCalTower(double etEm, double etHad, float eta, float phi, uint32_t rawId)
Definition:
HGCalTower_SA.h:11
EgHLTOffHistBins_cfi.et
et
Definition:
EgHLTOffHistBins_cfi.py:8
l1thgcfirmware::HGCalTower
Definition:
HGCalTower_SA.h:8
l1thgcfirmware::HGCalTower::operator+=
HGCalTower & operator+=(const HGCalTower &tower)
Definition:
HGCalTower_SA.cc:5
nano_mu_digi_cff.rawId
rawId
Definition:
nano_mu_digi_cff.py:58
l1thgcfirmware::HGCalTower::etHad_
double etHad_
Definition:
HGCalTower_SA.h:30
l1thgcfirmware::HGCalTower::phi_
float phi_
Definition:
HGCalTower_SA.h:33
l1thgcfirmware::HGCalTower::etEm_
double etEm_
Definition:
HGCalTower_SA.h:29
l1thgcfirmware::HGCalTower::id_
uint32_t id_
Definition:
HGCalTower_SA.h:34
l1thgcfirmware::HGCalTowerCoord::eta
const float eta
Definition:
HGCalTower_SA.h:41
l1thgcfirmware::HGCalTowerCoord::rawId
const uint32_t rawId
Definition:
HGCalTower_SA.h:40
l1thgcfirmware::HGCalTowerCoord::HGCalTowerCoord
HGCalTowerCoord(uint32_t rawId, float eta, float phi)
Definition:
HGCalTower_SA.h:38
l1thgcfirmware::HGCalTower::phi
float phi() const
Definition:
HGCalTower_SA.h:20
l1thgcfirmware::HGCalTower::eta
float eta() const
Definition:
HGCalTower_SA.h:19
l1thgcfirmware::HGCalTower::addEtEm
void addEtEm(double et)
Definition:
HGCalTower_SA.cc:12
l1thgcfirmware::HGCalTower::id
uint32_t id() const
Definition:
HGCalTower_SA.h:21
l1thgcfirmware::HGCalTower::~HGCalTower
~HGCalTower()=default
l1thgcfirmware::HGCalTower::etHad
double etHad() const
Definition:
HGCalTower_SA.h:17
l1thgcfirmware
Definition:
HGCalCluster_SA.h:6
l1thgcfirmware::HGCalTowerCoord
Definition:
HGCalTower_SA.h:37
l1thgcfirmware::HGCalTower::HGCalTower
HGCalTower()=default
l1thgcfirmware::HGCalTower::etEm
double etEm() const
Definition:
HGCalTower_SA.h:16
l1thgcfirmware::HGCalTowerCoord::phi
const float phi
Definition:
HGCalTower_SA.h:42
l1thgcfirmware::HGCalTower::eta_
float eta_
Definition:
HGCalTower_SA.h:32
l1thgcfirmware::HGCalTower::addEtHad
void addEtHad(double et)
Definition:
HGCalTower_SA.cc:14
l1tHGCalTowerProducer_cfi.tower
tower
Definition:
l1tHGCalTowerProducer_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.14