CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/CondFormats/CSCObjects/interface/CSCChamberMap.h

Go to the documentation of this file.
00001 #ifndef CSCChamberMap_h
00002 #define CSCChamberMap_h
00003 
00004 #include "CondFormats/CSCObjects/interface/CSCMapItem.h"
00005 #include <map>
00006 
00007 class CSCDetId;
00008 
00009 class CSCChamberMap{
00010  public:
00011   CSCChamberMap();
00012   ~CSCChamberMap();
00013 
00015   const CSCMapItem::MapItem& item( int key ) const;
00016 
00018 
00020   int crate(const CSCDetId&) const;
00021 
00023   int dmb(const CSCDetId&) const;
00024 
00026   int ddu(const CSCDetId&) const;
00027 
00029   int slink(const CSCDetId&) const;
00030 
00032   int dduSlot(const CSCDetId&) const;
00033 
00035   int dduInput(const CSCDetId&) const;
00036 
00038   typedef std::map< int, CSCMapItem::MapItem > CSCMap;
00039   CSCMap ch_map;
00040 
00041  private:
00049   int dbIndex(const CSCDetId&) const;
00050 };
00051 
00052 #endif