CMS 3D CMS Logo

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