#include <CondFormats/CSCObjects/interface/CSCGains.h>
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 |
Classes | |
struct | Item |
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 | ( | ) |
CSCGains::~CSCGains | ( | ) |
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.
00009 { 00010 CSCIndexer indexer; 00011 GainsMap::const_iterator mapItr = gains.find( indexer.dbIndex(cscId, strip) ); 00012 if(mapItr == gains.end()) 00013 { 00014 throw cms::Exception("CSCGains") 00015 << "Cannot find CSC conditions for chamber " << cscId; 00016 } 00017 return mapItr->second.at(strip-1); 00018 }
Definition at line 22 of file CSCGains.h.
Referenced by item(), CSCGainsConditions::prefillGains(), and CSCFakeGainsConditions::prefillGains().