#include <CSCcrosstalk.h>
Classes | |
struct | Item |
Public Types | |
typedef std::map< int, std::vector< Item > > | CrosstalkMap |
Public Member Functions | |
CSCcrosstalk () | |
const Item & | item (const CSCDetId &cscId, int strip) const |
~CSCcrosstalk () | |
Public Attributes | |
CrosstalkMap | crosstalk |
Definition at line 8 of file CSCcrosstalk.h.
typedef std::map< int,std::vector<Item> > CSCcrosstalk::CrosstalkMap |
Definition at line 25 of file CSCcrosstalk.h.
CSCcrosstalk::CSCcrosstalk | ( | ) | [inline] |
Definition at line 11 of file CSCcrosstalk.h.
{}
CSCcrosstalk::~CSCcrosstalk | ( | ) | [inline] |
Definition at line 12 of file CSCcrosstalk.h.
{}
const CSCcrosstalk::Item & CSCcrosstalk::item | ( | const CSCDetId & | cscId, |
int | strip | ||
) | const |
Definition at line 5 of file CSCcrosstalk.cc.
References crosstalk, CSCIndexer::dbIndex(), and Exception.
{ CSCIndexer indexer; CrosstalkMap::const_iterator mapItr = crosstalk.find( indexer.dbIndex(cscId, strip) ); if(mapItr == crosstalk.end()) { throw cms::Exception("CSCCrosstalk") << "Cannot find CSC conditions for chamber " << cscId; } return mapItr->second.at(strip-1); }
Definition at line 26 of file CSCcrosstalk.h.
Referenced by item(), CSCCrosstalkConditions::prefillCrosstalk(), and CSCFakeCrosstalkConditions::prefillCrosstalk().