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
CSCDBGains Class Reference

#include <CSCDBGains.h>

Classes

struct  Item
 

Public Types

enum  factors { FGAIN =1000 }
 
typedef std::vector< ItemGainContainer
 

Public Member Functions

 CSCDBGains ()
 
const Itemitem (const CSCDetId &cscId, int strip) const
 
 ~CSCDBGains ()
 

Public Attributes

int factor_gain
 
GainContainer gains
 

Detailed Description

Definition at line 8 of file CSCDBGains.h.

Member Typedef Documentation

typedef std::vector<Item> CSCDBGains::GainContainer

Definition at line 25 of file CSCDBGains.h.

Member Enumeration Documentation

Enumerator
FGAIN 

Definition at line 20 of file CSCDBGains.h.

20 {FGAIN=1000};

Constructor & Destructor Documentation

CSCDBGains::CSCDBGains ( )

Definition at line 4 of file CSCDBGains.cc.

4 {}
CSCDBGains::~CSCDBGains ( )

Definition at line 5 of file CSCDBGains.cc.

5 {}

Member Function Documentation

const CSCDBGains::Item & CSCDBGains::item ( const CSCDetId cscId,
int  strip 
) const

Definition at line 7 of file CSCDBGains.cc.

References gains, and CSCIndexer::stripChannelIndex().

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  // return gains.at( indexer.stripChannelIndex(cscId, strip)-1 ); // if we worry about range
11  return gains[ indexer.stripChannelIndex(cscId, strip)-1 ]; // no worries about range!
12 }
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
GainContainer gains
Definition: CSCDBGains.h:27
LongIndexType stripChannelIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType istrip) const
Definition: CSCIndexer.h:176

Member Data Documentation

int CSCDBGains::factor_gain
GainContainer CSCDBGains::gains