Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef EcalTPGGroups_h
0002 #define EcalTPGGroups_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <map>
0007 #include <cstdint>
0008 
0009 /*
0010 this class is used to define groups which associate a rawId to an objectId where:
0011 - rawId (simple integer) refers to a crystal (i.e EBDetId.rawId()), a (pseudo)strip or a tower
0012 - objectId (simple integer) refers to a LUTid, a FineGrainEBId or a WeightId
0013 
0014 P.P.
0015 */
0016 
0017 class EcalTPGGroups {
0018 public:
0019   typedef std::map<uint32_t, uint32_t> EcalTPGGroupsMap;
0020   typedef std::map<uint32_t, uint32_t>::const_iterator EcalTPGGroupsMapItr;
0021 
0022   EcalTPGGroups();
0023   ~EcalTPGGroups();
0024 
0025   const EcalTPGGroupsMap& getMap() const { return map_; }
0026   void setValue(const uint32_t& rawId, const uint32_t& ObjectId);
0027 
0028 protected:
0029   EcalTPGGroupsMap map_;
0030 
0031   COND_SERIALIZABLE;
0032 };
0033 
0034 #endif