Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:09

0001 #ifndef EcalTPGFineGrainStripEE_h
0002 #define EcalTPGFineGrainStripEE_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <map>
0007 #include <cstdint>
0008 
0009 class EcalTPGFineGrainStripEE {
0010 public:
0011   EcalTPGFineGrainStripEE();
0012   ~EcalTPGFineGrainStripEE();
0013 
0014   struct Item {
0015     uint32_t threshold;
0016     uint32_t lut;
0017 
0018     COND_SERIALIZABLE;
0019   };
0020 
0021   const std::map<uint32_t, Item>& getMap() const { return map_; }
0022   void setValue(const uint32_t& id, const Item& value);
0023 
0024 private:
0025   std::map<uint32_t, Item> map_;
0026 
0027   COND_SERIALIZABLE;
0028 };
0029 
0030 typedef std::map<uint32_t, EcalTPGFineGrainStripEE::Item> EcalTPGFineGrainStripEEMap;
0031 typedef std::map<uint32_t, EcalTPGFineGrainStripEE::Item>::const_iterator EcalTPGFineGrainStripEEMapIterator;
0032 
0033 #endif