src
CondFormats
CSCObjects
src
CSCcrosstalk.cc
Go to the documentation of this file.
1
#include "
CondFormats/CSCObjects/interface/CSCcrosstalk.h
"
2
#include "
DataFormats/MuonDetId/interface/CSCIndexer.h
"
3
#include "
FWCore/Utilities/interface/Exception.h
"
4
5
const
CSCcrosstalk::Item
&
CSCcrosstalk::item
(
const
CSCDetId
& cscId,
int
strip
)
const
{
6
CSCIndexer
indexer;
7
CrosstalkMap::const_iterator mapItr =
crosstalk
.find(indexer.
dbIndex
(cscId,
strip
));
8
if
(mapItr ==
crosstalk
.end()) {
9
throw
cms::Exception
(
"CSCCrosstalk"
) <<
"Cannot find CSC conditions for chamber "
<< cscId;
10
}
11
return
mapItr->second.at(
strip
- 1);
12
}
CSCIndexer.h
Exception
Definition:
hltDiff.cc:245
CSCDetId
Definition:
CSCDetId.h:26
CSCcrosstalk::crosstalk
CrosstalkMap crosstalk
Definition:
CSCcrosstalk.h:29
CSCIndexer::dbIndex
int dbIndex(const CSCDetId &id, int &channel)
Definition:
CSCIndexer.cc:231
CSCcrosstalk::Item
Definition:
CSCcrosstalk.h:15
CSCIndexer
Definition:
CSCIndexer.h:44
Exception.h
digitizers_cfi.strip
strip
Definition:
digitizers_cfi.py:19
CSCcrosstalk::item
const Item & item(const CSCDetId &cscId, int strip) const
Definition:
CSCcrosstalk.cc:5
CSCcrosstalk.h
Generated for CMSSW Reference Manual by
1.8.14