#include <CSCGains.h>
Classes | |
struct | Item |
Public Types | |
typedef std::map< int, std::vector< Item > > | GainsMap |
Public Member Functions | |
CSCGains () | |
const Item & | item (const CSCDetId &cscId, int strip) const |
~CSCGains () | |
Public Attributes | |
GainsMap | gains |
Definition at line 8 of file CSCGains.h.
typedef std::map< int,std::vector<Item> > CSCGains::GainsMap |
Definition at line 21 of file CSCGains.h.
CSCGains::CSCGains | ( | ) |
Definition at line 5 of file CSCGains.cc.
{}
CSCGains::~CSCGains | ( | ) |
Definition at line 6 of file CSCGains.cc.
{}
const CSCGains::Item & CSCGains::item | ( | const CSCDetId & | cscId, |
int | strip | ||
) | const |
Definition at line 8 of file CSCGains.cc.
References CSCIndexer::dbIndex(), Exception, and gains.
{ CSCIndexer indexer; GainsMap::const_iterator mapItr = gains.find( indexer.dbIndex(cscId, strip) ); if(mapItr == gains.end()) { throw cms::Exception("CSCGains") << "Cannot find CSC conditions for chamber " << cscId; } return mapItr->second.at(strip-1); }
Definition at line 22 of file CSCGains.h.
Referenced by item(), CSCGainsConditions::prefillGains(), and CSCFakeGainsConditions::prefillGains().