CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDBGasGainCorrection.cc
Go to the documentation of this file.
3 
6 
7 const CSCDBGasGainCorrection::Item & CSCDBGasGainCorrection::item(const CSCDetId & cscId, int strip, int wire) const
8  {
9  CSCIndexer indexer;
10  //note the transformation here from database index (starting from 1) to c++ indexing (starting from 0)
11  return gasGainCorr[ indexer.gasGainIndex(cscId, strip, wire)-1 ]; // no worries about range!
12  }
13 
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
const Item & item(const CSCDetId &cscId, int strip, int wire) const
IndexType gasGainIndex(const CSCDetId &id, IndexType istrip, IndexType iwire) const
Definition: CSCIndexer.h:370