CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
const Item & item(const CSCDetId &cscId, int strip) const
Definition: CSCcrosstalk.cc:5
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:231