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

#include <CSCcrosstalk.h>

Classes

struct  Item
 

Public Types

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

Public Member Functions

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

Public Attributes

 COND_SERIALIZABLE
 
CrosstalkMap crosstalk
 

Detailed Description

Definition at line 10 of file CSCcrosstalk.h.

Member Typedef Documentation

typedef std::map< int,std::vector<Item> > CSCcrosstalk::CrosstalkMap

Definition at line 29 of file CSCcrosstalk.h.

Constructor & Destructor Documentation

CSCcrosstalk::CSCcrosstalk ( )
inline

Definition at line 13 of file CSCcrosstalk.h.

13 {}
CSCcrosstalk::~CSCcrosstalk ( )
inline

Definition at line 14 of file CSCcrosstalk.h.

14 {}

Member Function Documentation

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

Definition at line 5 of file CSCcrosstalk.cc.

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

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

6 {
7  CSCIndexer indexer;
8  CrosstalkMap::const_iterator mapItr = crosstalk.find( indexer.dbIndex(cscId, strip) );
9  if(mapItr == crosstalk.end())
10  {
11  throw cms::Exception("CSCCrosstalk")
12  << "Cannot find CSC conditions for chamber " << cscId;
13  }
14  return mapItr->second.at(strip-1);
15 }
CrosstalkMap crosstalk
Definition: CSCcrosstalk.h:30
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:240

Member Data Documentation

CSCcrosstalk::COND_SERIALIZABLE

Definition at line 32 of file CSCcrosstalk.h.

CrosstalkMap CSCcrosstalk::crosstalk