Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:59

0001 #ifndef CSCCrateMap_h
0002 #define CSCCrateMap_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <CondFormats/CSCObjects/interface/CSCMapItem.h>
0007 #include <DataFormats/MuonDetId/interface/CSCDetId.h>
0008 
0009 #include <map>
0010 
0011 class CSCCrateMap {
0012 public:
0013   CSCCrateMap();
0014   ~CSCCrateMap();
0015 
0016   /// Accessor for item according to a key
0017   const CSCMapItem::MapItem& item(int key) const;
0018 
0019   /// Build DetId from hardware labels of vme crate, dmb
0020   /// Need cfeb to split ME11 into ME1a and ME1b.
0021   /// May need layer # 1-6 (set 0 for chamber, as default arg.)
0022   CSCDetId detId(int vme, int dmb, int cfeb, int layer = 0) const;
0023 
0024   typedef std::map<int, CSCMapItem::MapItem> CSCMap;
0025   CSCMap crate_map;
0026 
0027   COND_SERIALIZABLE;
0028 };
0029 
0030 #endif