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
uint32_t compressedCharge() const
double eta() const final
momentum pseudorapidity
BXVector< HGCalTriggerCell > HGCalTriggerCellBxCollection
uint32_t uncompressedCharge() const
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:50
double pt() const final
transverse momentum
delete x;
Definition: CaloConfig.h:22
double mipPt() const
const GlobalPoint & position() const
uint32_t detId() const
void setDetId(uint32_t detid)
void setMipPt(double value)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
void setCompressedCharge(uint32_t value)
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
Definition: value.py:1
Definition: DetId.h:18
void setUncompressedCharge(uint32_t value)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
double phi() const final
momentum azimuthal angle
void setPosition(const GlobalPoint &position)