CMS 3D CMS Logo

HGCalTriggerSums.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TCalorimeter_HGCalTriggerSums_h
2 #define DataFormats_L1TCalorimeter_HGCalTriggerSums_h
3 
8 
9 namespace l1t {
10 
13 
14  class HGCalTriggerSums : public L1Candidate {
15  public:
17 
18  HGCalTriggerSums(const LorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, uint32_t detid = 0);
19 
20  ~HGCalTriggerSums() 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  void setMipPt(double value) { mipPt_ = value; }
29  double mipPt() const { return mipPt_; }
30 
31  private:
34 
35  double mipPt_;
36  };
37 
38 } // namespace l1t
39 
40 #endif
double eta() const final
momentum pseudorapidity
uint32_t detId() const
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
double pt() const final
transverse momentum
delete x;
Definition: CaloConfig.h:22
double mipPt() const
const GlobalPoint & position() const
BXVector< HGCalTriggerSums > HGCalTriggerSumsBxCollection
void setMipPt(double value)
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: value.py:1
void setPosition(const GlobalPoint &position)
void setDetId(uint32_t detid)
Definition: DetId.h:17
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
double phi() const final
momentum azimuthal angle