CMS 3D CMS Logo

HGCalTriggerCell.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TCalorimeter_HGCalTriggerCell_h
2 #define DataFormats_L1TCalorimeter_HGCalTriggerCell_h
3 
8 
9 namespace l1t {
10 
13 
14  class HGCalTriggerCell : public L1Candidate {
15  public:
17 
18  HGCalTriggerCell(const LorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, uint32_t detid = 0);
19 
20  ~HGCalTriggerCell() override;
21 
22  void setDetId(uint32_t detid) { detid_ = DetId(detid); }
24 
25  uint32_t detId() const { return detid_.rawId(); }
26  const GlobalPoint& position() const { return position_; }
27 
28  int subdetId() const { return detid_.subdetId(); }
29 
30  void setMipPt(double value) { mipPt_ = value; }
31  double mipPt() const { return mipPt_; }
32 
34  uint32_t uncompressedCharge() const { return uncompressedCharge_; }
35 
37  uint32_t compressedCharge() const { return compressedCharge_; }
38 
39  void setPt(double pT);
40 
41  private:
44 
45  double mipPt_{0.};
46 
47  uint32_t uncompressedCharge_{0};
48  uint32_t compressedCharge_{0};
49  };
50 
51 } // namespace l1t
52 
53 #endif
l1t::HGCalTriggerCell::position_
GlobalPoint position_
Definition: HGCalTriggerCell.h:43
BXVector.h
l1t::HGCalTriggerCell::detid_
DetId detid_
Definition: HGCalTriggerCell.h:42
l1t::HGCalTriggerCell::uncompressedCharge
uint32_t uncompressedCharge() const
Definition: HGCalTriggerCell.h:34
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
l1t::HGCalTriggerCell::setDetId
void setDetId(uint32_t detid)
Definition: HGCalTriggerCell.h:22
l1t::HGCalTriggerCell::setPt
void setPt(double pT)
Definition: HGCalTriggerCell.cc:10
l1t::HGCalTriggerCell::setMipPt
void setMipPt(double value)
Definition: HGCalTriggerCell.h:30
BXVector
Definition: BXVector.h:15
DetId
Definition: DetId.h:17
l1t::HGCalTriggerCell::setCompressedCharge
void setCompressedCharge(uint32_t value)
Definition: HGCalTriggerCell.h:36
l1t::L1Candidate
Definition: L1Candidate.h:15
PVValHelper::pT
Definition: PVValidationHelpers.h:70
l1t::HGCalTriggerCellBxCollection
BXVector< HGCalTriggerCell > HGCalTriggerCellBxCollection
Definition: HGCalTriggerCell.h:11
l1t::HGCalTriggerCell
Definition: HGCalTriggerCell.h:14
Point3DBase< float, GlobalTag >
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
l1t::HGCalTriggerCell::mipPt
double mipPt() const
Definition: HGCalTriggerCell.h:31
l1t::HGCalTriggerCell::detId
uint32_t detId() const
Definition: HGCalTriggerCell.h:25
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
l1t
delete x;
Definition: CaloConfig.h:22
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
value
Definition: value.py:1
l1t::HGCalTriggerCell::compressedCharge_
uint32_t compressedCharge_
Definition: HGCalTriggerCell.h:48
L1Candidate.h
l1t::HGCalTriggerCell::subdetId
int subdetId() const
Definition: HGCalTriggerCell.h:28
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
l1t::HGCalTriggerCell::compressedCharge
uint32_t compressedCharge() const
Definition: HGCalTriggerCell.h:37
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
l1t::HGCalTriggerCell::position
const GlobalPoint & position() const
Definition: HGCalTriggerCell.h:26
DetId.h
l1t::HGCalTriggerCell::setPosition
void setPosition(const GlobalPoint &position)
Definition: HGCalTriggerCell.h:23
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
relativeConstraints.value
value
Definition: relativeConstraints.py:53
l1t::HGCalTriggerCell::setUncompressedCharge
void setUncompressedCharge(uint32_t value)
Definition: HGCalTriggerCell.h:33
l1t::HGCalTriggerCell::uncompressedCharge_
uint32_t uncompressedCharge_
Definition: HGCalTriggerCell.h:47
l1t::HGCalTriggerCell::mipPt_
double mipPt_
Definition: HGCalTriggerCell.h:45
GlobalPoint.h
l1t::HGCalTriggerCell::~HGCalTriggerCell
~HGCalTriggerCell() override
Definition: HGCalTriggerCell.cc:8
l1t::HGCalTriggerCell::HGCalTriggerCell
HGCalTriggerCell()
Definition: HGCalTriggerCell.h:16