Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:33

0001 #ifndef DataFormats_L1TCalorimeter_HGCalTriggerSums_h
0002 #define DataFormats_L1TCalorimeter_HGCalTriggerSums_h
0003 
0004 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0005 #include "DataFormats/L1Trigger/interface/L1Candidate.h"
0006 #include "DataFormats/L1Trigger/interface/BXVector.h"
0007 #include "DataFormats/DetId/interface/DetId.h"
0008 
0009 namespace l1t {
0010 
0011   class HGCalTriggerSums;
0012   typedef BXVector<HGCalTriggerSums> HGCalTriggerSumsBxCollection;
0013 
0014   class HGCalTriggerSums : public L1Candidate {
0015   public:
0016     HGCalTriggerSums() {}
0017 
0018     HGCalTriggerSums(const LorentzVector& p4, int pt = 0, int eta = 0, int phi = 0, int qual = 0, uint32_t detid = 0);
0019 
0020     ~HGCalTriggerSums() override;
0021 
0022     void setDetId(uint32_t detid) { detid_ = DetId(detid); }
0023     void setPosition(const GlobalPoint& position) { position_ = position; }
0024 
0025     uint32_t detId() const { return detid_.rawId(); }
0026     const GlobalPoint& position() const { return position_; }
0027 
0028     void setMipPt(double value) { mipPt_ = value; }
0029     double mipPt() const { return mipPt_; }
0030 
0031   private:
0032     DetId detid_;
0033     GlobalPoint position_;
0034 
0035     double mipPt_;
0036   };
0037 
0038 }  // namespace l1t
0039 
0040 #endif