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