CMS 3D CMS Logo

CSCGains.cc
Go to the documentation of this file.
4 
7 
8 const CSCGains::Item& CSCGains::item(const CSCDetId& cscId, int strip) const {
9  CSCIndexer indexer;
10  GainsMap::const_iterator mapItr = gains.find(indexer.dbIndex(cscId, strip));
11  if (mapItr == gains.end()) {
12  throw cms::Exception("CSCGains") << "Cannot find CSC conditions for chamber " << cscId;
13  }
14  return mapItr->second.at(strip - 1);
15 }
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCGains::item
const Item & item(const CSCDetId &cscId, int strip) const
Definition: CSCGains.cc:8
CSCGains.h
CSCGains::gains
GainsMap gains
Definition: CSCGains.h:26
CSCIndexer
Definition: CSCIndexer.h:44
CSCGains::~CSCGains
~CSCGains()
Definition: CSCGains.cc:6
CSCIndexer.h
CSCDetId
Definition: CSCDetId.h:26
CSCGains::Item
Definition: CSCGains.h:15
CSCIndexer::dbIndex
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:231
Exception
Definition: hltDiff.cc:246
CSCGains::CSCGains
CSCGains()
Definition: CSCGains.cc:5
Exception.h