CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/CondFormats/CSCObjects/src/CSCDBPedestals.cc

Go to the documentation of this file.
00001 #include "CondFormats/CSCObjects/interface/CSCDBPedestals.h"
00002 #include "DataFormats/MuonDetId/interface/CSCIndexer.h"
00003 
00004 CSCDBPedestals::CSCDBPedestals(){}
00005 CSCDBPedestals::~CSCDBPedestals(){}
00006 
00007 const CSCDBPedestals::Item & CSCDBPedestals::item(const CSCDetId & cscId, int strip) const
00008  {
00009   CSCIndexer indexer;
00010   //  return pedestals.at( indexer.stripChannelIndex(cscId, strip)-1 ); // if we worry about range
00011   return pedestals[ indexer.stripChannelIndex(cscId, strip)-1 ]; // no worries about range!
00012  }
00013