Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DataFormats_L1TCalorimeter_HGCalConcentratorData_h
0002 #define DataFormats_L1TCalorimeter_HGCalConcentratorData_h
0003 
0004 #include "DataFormats/L1Trigger/interface/BXVector.h"
0005 #include "DataFormats/DetId/interface/DetId.h"
0006 
0007 namespace l1t {
0008 
0009   class HGCalConcentratorData;
0010   typedef BXVector<HGCalConcentratorData> HGCalConcentratorDataBxCollection;
0011 
0012   class HGCalConcentratorData {
0013   public:
0014     HGCalConcentratorData(const uint32_t data = 0, uint32_t index = 0, uint32_t detid = 0);
0015 
0016     ~HGCalConcentratorData();
0017 
0018     void setDetId(uint32_t detid) { detid_ = DetId(detid); }
0019 
0020     uint32_t detId() const { return detid_.rawId(); }
0021 
0022     void setIndex(uint32_t value) { index_ = value; }
0023     uint32_t index() const { return index_; }
0024 
0025     void setData(uint32_t value) { data_ = value; }
0026     uint32_t data() const { return data_; }
0027 
0028   private:
0029     uint32_t data_{0};
0030     uint32_t index_{0};
0031     DetId detid_;
0032   };
0033 
0034 }  // namespace l1t
0035 
0036 #endif