#include <CSCPedestals.h>
Classes | |
struct | Item |
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 |
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 | ( | ) |
Definition at line 5 of file CSCPedestals.cc.
{}
CSCPedestals::~CSCPedestals | ( | ) |
Definition at line 6 of file CSCPedestals.cc.
{}
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.
{ CSCIndexer indexer; PedestalMap::const_iterator mapItr = pedestals.find( indexer.dbIndex(cscId,strip) ); if(mapItr == pedestals.end()) { throw cms::Exception("CSCPedestals") << "Cannot find CSC conditions for chamber " << cscId; } return mapItr->second.at(strip-1); }
Definition at line 21 of file CSCPedestals.h.
Referenced by item(), and CSCFakePedestalsConditions::prefillPedestals().