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

#include <CSCGains.h>

Classes

struct  Item
 

Public Types

typedef std::map< int,
std::vector< Item > > 
GainsMap
 

Public Member Functions

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

Public Attributes

GainsMap gains
 

Detailed Description

Definition at line 8 of file CSCGains.h.

Member Typedef Documentation

typedef std::map< int,std::vector<Item> > CSCGains::GainsMap

Definition at line 21 of file CSCGains.h.

Constructor & Destructor Documentation

CSCGains::CSCGains ( )

Definition at line 5 of file CSCGains.cc.

5 {}
CSCGains::~CSCGains ( )

Definition at line 6 of file CSCGains.cc.

6 {}

Member Function Documentation

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

Definition at line 8 of file CSCGains.cc.

References CSCIndexer::dbIndex(), edm::hlt::Exception, and gains.

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

9 {
10  CSCIndexer indexer;
11  GainsMap::const_iterator mapItr = gains.find( indexer.dbIndex(cscId, strip) );
12  if(mapItr == gains.end())
13  {
14  throw cms::Exception("CSCGains")
15  << "Cannot find CSC conditions for chamber " << cscId;
16  }
17  return mapItr->second.at(strip-1);
18 }
GainsMap gains
Definition: CSCGains.h:22
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:240

Member Data Documentation

GainsMap CSCGains::gains