CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondFormats/CSCObjects/src/CSCcrosstalk.cc

Go to the documentation of this file.
00001 #include "CondFormats/CSCObjects/interface/CSCcrosstalk.h"
00002 #include "DataFormats/MuonDetId/interface/CSCIndexer.h"
00003 #include "FWCore/Utilities/interface/Exception.h"
00004 
00005 const CSCcrosstalk::Item & CSCcrosstalk::item(const CSCDetId & cscId, int strip) const
00006 {
00007   CSCIndexer indexer;
00008   CrosstalkMap::const_iterator mapItr = crosstalk.find( indexer.dbIndex(cscId, strip) );
00009   if(mapItr == crosstalk.end())
00010   {
00011     throw cms::Exception("CSCCrosstalk") 
00012       << "Cannot find CSC conditions for chamber " << cscId;
00013   }
00014   return mapItr->second.at(strip-1);
00015 }
00016