CMS 3D CMS Logo

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