CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCcrosstalk.cc
Go to the documentation of this file.
4 
5 const CSCcrosstalk::Item & CSCcrosstalk::item(const CSCDetId & cscId, int strip) const
6 {
7  CSCIndexer indexer;
8  CrosstalkMap::const_iterator mapItr = crosstalk.find( indexer.dbIndex(cscId, strip) );
9  if(mapItr == crosstalk.end())
10  {
11  throw cms::Exception("CSCCrosstalk")
12  << "Cannot find CSC conditions for chamber " << cscId;
13  }
14  return mapItr->second.at(strip-1);
15 }
16 
CrosstalkMap crosstalk
Definition: CSCcrosstalk.h:30
const Item & item(const CSCDetId &cscId, int strip) const
Definition: CSCcrosstalk.cc:5
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:240