Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
CSCObjects
src
CSCGains.cc
Go to the documentation of this file.
1
#include "
CondFormats/CSCObjects/interface/CSCGains.h
"
2
#include "
DataFormats/MuonDetId/interface/CSCIndexer.h
"
3
#include "
FWCore/Utilities/interface/Exception.h
"
4
5
CSCGains::CSCGains
(){}
6
CSCGains::~CSCGains
(){}
7
8
const
CSCGains::Item
&
CSCGains::item
(
const
CSCDetId
& cscId,
int
strip
)
const
9
{
10
CSCIndexer
indexer;
11
GainsMap::const_iterator mapItr =
gains
.find( indexer.
dbIndex
(cscId, strip) );
12
if
(mapItr ==
gains
.end())
13
{
14
throw
cms::Exception
(
"CSCGains"
)
15
<<
"Cannot find CSC conditions for chamber "
<< cscId;
16
}
17
return
mapItr->second.at(strip-1);
18
}
19
CSCIndexer.h
CSCGains::gains
GainsMap gains
Definition:
CSCGains.h:22
strip
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition:
stringTools.cc:16
CSCDetId
Definition:
CSCDetId.h:27
CSCGains::item
const Item & item(const CSCDetId &cscId, int strip) const
Definition:
CSCGains.cc:8
CSCIndexer::dbIndex
int dbIndex(const CSCDetId &id, int &channel)
Definition:
CSCIndexer.cc:240
CSCGains::Item
Definition:
CSCGains.h:13
CSCIndexer
Definition:
CSCIndexer.h:44
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:24
CSCGains::CSCGains
CSCGains()
Definition:
CSCGains.cc:5
CSCGains.h
CSCGains::~CSCGains
~CSCGains()
Definition:
CSCGains.cc:6
Generated for CMSSW Reference Manual by
1.8.5