CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Public Attributes
CSCDBGasGainCorrection Class Reference

#include <CSCDBGasGainCorrection.h>

Classes

struct  Item
 

Public Types

typedef std::vector< ItemGasGainContainer
 

Public Member Functions

 CSCDBGasGainCorrection ()
 
const Itemitem (const CSCDetId &cscId, int strip, int wire) const
 
 ~CSCDBGasGainCorrection ()
 

Public Attributes

GasGainContainer gasGainCorr
 

Detailed Description

Definition at line 7 of file CSCDBGasGainCorrection.h.

Member Typedef Documentation

Definition at line 19 of file CSCDBGasGainCorrection.h.

Constructor & Destructor Documentation

CSCDBGasGainCorrection::CSCDBGasGainCorrection ( )

Definition at line 4 of file CSCDBGasGainCorrection.cc.

4 {}
CSCDBGasGainCorrection::~CSCDBGasGainCorrection ( )

Definition at line 5 of file CSCDBGasGainCorrection.cc.

5 {}

Member Function Documentation

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().

Referenced by Vispa.Views.TableView.TableView::_selectedRow(), Vispa.Views.TableView.TableView::itemSelectionChanged(), Vispa.Views.TableView.TableView::select(), and Vispa.Views.TableView.TableView::selection().

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  }
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
IndexType gasGainIndex(const CSCDetId &id, IndexType istrip, IndexType iwire) const
Definition: CSCIndexer.h:370

Member Data Documentation

GasGainContainer CSCDBGasGainCorrection::gasGainCorr