CMS 3D CMS Logo

CSCcrosstalk.cc
Go to the documentation of this file.
4 
5 const CSCcrosstalk::Item& CSCcrosstalk::item(const CSCDetId& cscId, int strip) const {
6  CSCIndexer indexer;
7  CrosstalkMap::const_iterator mapItr = crosstalk.find(indexer.dbIndex(cscId, strip));
8  if (mapItr == crosstalk.end()) {
9  throw cms::Exception("CSCCrosstalk") << "Cannot find CSC conditions for chamber " << cscId;
10  }
11  return mapItr->second.at(strip - 1);
12 }
CrosstalkMap crosstalk
Definition: CSCcrosstalk.h:29
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:231
const Item & item(const CSCDetId &cscId, int strip) const
Definition: CSCcrosstalk.cc:5