Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondFormats
CSCObjects
src
CSCDBGasGainCorrection.cc
Go to the documentation of this file.
1
#include "
CondFormats/CSCObjects/interface/CSCDBGasGainCorrection.h
"
2
#include "
DataFormats/MuonDetId/interface/CSCIndexer.h
"
3
4
CSCDBGasGainCorrection::CSCDBGasGainCorrection
(){}
5
CSCDBGasGainCorrection::~CSCDBGasGainCorrection
(){}
6
7
const
CSCDBGasGainCorrection::Item
&
CSCDBGasGainCorrection::item
(
const
CSCDetId
& cscId,
int
strip
,
int
wire)
const
8
{
9
CSCIndexer
indexer;
10
//note the transformation here from database index (starting from 1) to c++ indexing (starting from 0)
11
return
gasGainCorr
[ indexer.
gasGainIndex
(cscId, strip, wire)-1 ];
// no worries about range!
12
}
13
CSCIndexer.h
strip
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition:
stringTools.cc:16
CSCDBGasGainCorrection.h
CSCDetId
Definition:
CSCDetId.h:27
CSCDBGasGainCorrection::gasGainCorr
GasGainContainer gasGainCorr
Definition:
CSCDBGasGainCorrection.h:21
CSCDBGasGainCorrection::CSCDBGasGainCorrection
CSCDBGasGainCorrection()
Definition:
CSCDBGasGainCorrection.cc:4
CSCDBGasGainCorrection::~CSCDBGasGainCorrection
~CSCDBGasGainCorrection()
Definition:
CSCDBGasGainCorrection.cc:5
CSCIndexer
Definition:
CSCIndexer.h:44
CSCDBGasGainCorrection::item
const Item & item(const CSCDetId &cscId, int strip, int wire) const
Definition:
CSCDBGasGainCorrection.cc:7
CSCDBGasGainCorrection::Item
Definition:
CSCDBGasGainCorrection.h:12
CSCIndexer::gasGainIndex
IndexType gasGainIndex(const CSCDetId &id, IndexType istrip, IndexType iwire) const
Definition:
CSCIndexer.h:370
Generated for CMSSW Reference Manual by
1.8.5