#include <CondFormats/CSCObjects/interface/CSCPedestals.h>
Public Types | |
typedef std::map< int, std::vector< Item > > | PedestalMap |
Public Member Functions | |
CSCPedestals () | |
const Item & | item (const CSCDetId &cscId, int strip) const |
~CSCPedestals () | |
Public Attributes | |
PedestalMap | pedestals |
Classes | |
struct | Item |
Definition at line 8 of file CSCPedestals.h.
typedef std::map< int,std::vector<Item> > CSCPedestals::PedestalMap |
Definition at line 20 of file CSCPedestals.h.
CSCPedestals::CSCPedestals | ( | ) |
CSCPedestals::~CSCPedestals | ( | ) |
const CSCPedestals::Item & CSCPedestals::item | ( | const CSCDetId & | cscId, | |
int | strip | |||
) | const |
Definition at line 8 of file CSCPedestals.cc.
References CSCIndexer::dbIndex(), Exception, and pedestals.
00009 { 00010 CSCIndexer indexer; 00011 PedestalMap::const_iterator mapItr = pedestals.find( indexer.dbIndex(cscId,strip) ); 00012 if(mapItr == pedestals.end()) 00013 { 00014 throw cms::Exception("CSCPedestals") 00015 << "Cannot find CSC conditions for chamber " << cscId; 00016 } 00017 return mapItr->second.at(strip-1); 00018 }
Definition at line 21 of file CSCPedestals.h.
Referenced by item(), and CSCFakePedestalsConditions::prefillPedestals().