Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:55

0001 #include "CondFormats/CSCObjects/interface/CSCcrosstalk.h"
0002 #include "DataFormats/MuonDetId/interface/CSCIndexer.h"
0003 #include "FWCore/Utilities/interface/Exception.h"
0004 
0005 const CSCcrosstalk::Item& CSCcrosstalk::item(const CSCDetId& cscId, int strip) const {
0006   CSCIndexer indexer;
0007   CrosstalkMap::const_iterator mapItr = crosstalk.find(indexer.dbIndex(cscId, strip));
0008   if (mapItr == crosstalk.end()) {
0009     throw cms::Exception("CSCCrosstalk") << "Cannot find CSC conditions for chamber " << cscId;
0010   }
0011   return mapItr->second.at(strip - 1);
0012 }