#include <CSCDBGasGainCorrection.h>
Classes | |
struct | Item |
Public Types | |
typedef std::vector< Item > | GasGainContainer |
Public Member Functions | |
CSCDBGasGainCorrection () | |
const Item & | item (const CSCDetId &cscId, int strip, int wire) const |
~CSCDBGasGainCorrection () | |
Public Attributes | |
GasGainContainer | gasGainCorr |
Definition at line 7 of file CSCDBGasGainCorrection.h.
typedef std::vector<Item> CSCDBGasGainCorrection::GasGainContainer |
Definition at line 19 of file CSCDBGasGainCorrection.h.
CSCDBGasGainCorrection::CSCDBGasGainCorrection | ( | ) |
Definition at line 4 of file CSCDBGasGainCorrection.cc.
{}
CSCDBGasGainCorrection::~CSCDBGasGainCorrection | ( | ) |
Definition at line 5 of file CSCDBGasGainCorrection.cc.
{}
const CSCDBGasGainCorrection::Item & CSCDBGasGainCorrection::item | ( | const CSCDetId & | cscId, |
int | strip, | ||
int | wire | ||
) | const |
Definition at line 7 of file CSCDBGasGainCorrection.cc.
References gasGainCorr, and CSCIndexer::gasGainIndex().
{ CSCIndexer indexer; //note the transformation here from database index (starting from 1) to c++ indexing (starting from 0) return gasGainCorr[ indexer.gasGainIndex(cscId, strip, wire)-1 ]; // no worries about range! }
Definition at line 21 of file CSCDBGasGainCorrection.h.
Referenced by item(), and CSCGasGainCorrectionDBConditions::prefillDBGasGainCorrection().