File indexing completed on 2024-04-06 12:01:59
0001 #ifndef CSCChamberMap_h
0002 #define CSCChamberMap_h
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005
0006 #include "CondFormats/CSCObjects/interface/CSCMapItem.h"
0007 #include <map>
0008
0009 class CSCDetId;
0010
0011 class CSCChamberMap {
0012 public:
0013 CSCChamberMap();
0014 ~CSCChamberMap();
0015
0016
0017 const CSCMapItem::MapItem& item(int key) const;
0018
0019
0020
0021
0022 int crate(const CSCDetId&) const;
0023
0024
0025 int dmb(const CSCDetId&) const;
0026
0027
0028 int ddu(const CSCDetId&) const;
0029
0030
0031 int slink(const CSCDetId&) const;
0032
0033
0034 int dduSlot(const CSCDetId&) const;
0035
0036
0037 int dduInput(const CSCDetId&) const;
0038
0039
0040 typedef std::map<int, CSCMapItem::MapItem> CSCMap;
0041 CSCMap ch_map;
0042
0043 private:
0044
0045
0046
0047
0048
0049
0050
0051 int dbIndex(const CSCDetId&) const;
0052
0053 COND_SERIALIZABLE;
0054 };
0055
0056 #endif