Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
7
CSCIndexer
indexer;
8
CrosstalkMap::const_iterator mapItr =
crosstalk
.find( indexer.
dbIndex
(cscId, strip) );
9
if
(mapItr ==
crosstalk
.end())
10
{
11
throw
cms::Exception
(
"CSCCrosstalk"
)
12
<<
"Cannot find CSC conditions for chamber "
<< cscId;
13
}
14
return
mapItr->second.at(strip-1);
15
}
16
CSCIndexer.h
Exception
Definition:
hltDiff.cc:290
CSCDetId
Definition:
CSCDetId.h:26
CSCcrosstalk::crosstalk
CrosstalkMap crosstalk
Definition:
CSCcrosstalk.h:30
CSCcrosstalk::item
const Item & item(const CSCDetId &cscId, int strip) const
Definition:
CSCcrosstalk.cc:5
CSCIndexer::dbIndex
int dbIndex(const CSCDetId &id, int &channel)
Definition:
CSCIndexer.cc:240
CSCcrosstalk::Item
Definition:
CSCcrosstalk.h:16
CSCIndexer
Definition:
CSCIndexer.h:44
Exception.h
CSCcrosstalk.h
Generated for CMSSW Reference Manual by
1.8.5