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

#include <CSCDBPedestals.h>

Classes

struct  Item
 

Public Types

enum  factors { FPED =10, FRMS =1000 }
 
typedef std::vector< ItemPedestalContainer
 

Public Member Functions

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

Public Attributes

int factor_ped
 
int factor_rms
 
PedestalContainer pedestals
 

Detailed Description

Definition at line 7 of file CSCDBPedestals.h.

Member Typedef Documentation

Definition at line 24 of file CSCDBPedestals.h.

Member Enumeration Documentation

Enumerator
FPED 
FRMS 

Definition at line 19 of file CSCDBPedestals.h.

Constructor & Destructor Documentation

CSCDBPedestals::CSCDBPedestals ( )

Definition at line 4 of file CSCDBPedestals.cc.

4 {}
CSCDBPedestals::~CSCDBPedestals ( )

Definition at line 5 of file CSCDBPedestals.cc.

5 {}

Member Function Documentation

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

Definition at line 7 of file CSCDBPedestals.cc.

References pedestals, and CSCIndexer::stripChannelIndex().

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

8  {
9  CSCIndexer indexer;
10  // return pedestals.at( indexer.stripChannelIndex(cscId, strip)-1 ); // if we worry about range
11  return pedestals[ 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
PedestalContainer pedestals
LongIndexType stripChannelIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic, IndexType il, IndexType istrip) const
Definition: CSCIndexer.h:175

Member Data Documentation

int CSCDBPedestals::factor_ped
int CSCDBPedestals::factor_rms
PedestalContainer CSCDBPedestals::pedestals