CMS 3D CMS Logo

HGCalTower.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TCalorimeter_HGCalTower_h
2 #define DataFormats_L1TCalorimeter_HGCalTower_h
3 
7 
8 namespace l1t {
9 
10  class HGCalTower;
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  unsigned short 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; }
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_;
58 
59  int hwEtEm_;
60  int hwEtHad_;
62  };
63 
64 } // namespace l1t
65 
66 #endif
BXVector.h
l1t::HGCalTower::hwEtRatio
int hwEtRatio() const
Definition: HGCalTower.h:49
l1t::HGCalTower::addEtHad
void addEtHad(double et)
Definition: HGCalTower.cc:34
l1t::HGCalTower::addEtEm
void addEtEm(double et)
Definition: HGCalTower.cc:29
l1t::HGCalTower::hwEtHad_
int hwEtHad_
Definition: HGCalTower.h:60
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
l1t::HGCalTower
Definition: HGCalTower.h:13
BXVector
Definition: BXVector.h:15
l1t::HGCalTower::addEt
void addEt(double et)
Definition: HGCalTower.cc:39
l1t::HGCalTower::setHwEtRatio
void setHwEtRatio(int ratio)
Definition: HGCalTower.h:45
l1t::HGCalTowerID::zside
short zside() const
Definition: HGCalTowerID.h:19
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::HGCalTower::hwEtRatio_
int hwEtRatio_
Definition: HGCalTower.h:61
l1t::HGCalTower::setHwEtHad
void setHwEtHad(int et)
Definition: HGCalTower.h:44
l1t::HGCalTower::setHwEtEm
void setHwEtEm(int et)
Definition: HGCalTower.h:43
l1t::HGCalTower::~HGCalTower
~HGCalTower() override
Definition: HGCalTower.cc:27
l1t::HGCalTowerID
Definition: HGCalTowerID.h:8
particleFlowDisplacedVertex_cfi.ratio
ratio
Definition: particleFlowDisplacedVertex_cfi.py:93
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
l1t::HGCalTower::etEm_
double etEm_
Definition: HGCalTower.h:55
l1t
delete x;
Definition: CaloConfig.h:22
l1t::HGCalTower::etEm
double etEm() const
Definition: HGCalTower.h:35
HGCalTowerID.h
l1t::HGCalTower::hwEtEm
int hwEtEm() const
Definition: HGCalTower.h:47
L1Candidate.h
l1t::HGCalTower::etHad_
double etHad_
Definition: HGCalTower.h:56
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
l1t::HGCalTower::etHad
double etHad() const
Definition: HGCalTower.h:36
l1t::HGCalTower::id_
HGCalTowerID id_
Definition: HGCalTower.h:57
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
l1t::HGCalTower::HGCalTower
HGCalTower()
Definition: HGCalTower.h:15
l1t::HGCalTowerBxCollection
BXVector< HGCalTower > HGCalTowerBxCollection
Definition: HGCalTower.h:10
l1t::HGCalTower::id
HGCalTowerID id() const
Definition: HGCalTower.h:40
l1t::HGCalTower::zside
short zside() const
Definition: HGCalTower.h:41
l1t::HGCalTower::operator+=
const HGCalTower & operator+=(const HGCalTower &tower)
Definition: HGCalTower.cc:41
l1t::HGCalTower::hwEtHad
int hwEtHad() const
Definition: HGCalTower.h:48
l1t::HGCalTower::hwEtEm_
int hwEtEm_
Definition: HGCalTower.h:59