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

#include <CSCPedestals.h>

Classes

struct  Item
 

Public Types

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

Public Member Functions

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

Public Attributes

PedestalMap pedestals
 

Detailed Description

Definition at line 8 of file CSCPedestals.h.

Member Typedef Documentation

typedef std::map< int,std::vector<Item> > CSCPedestals::PedestalMap

Definition at line 20 of file CSCPedestals.h.

Constructor & Destructor Documentation

CSCPedestals::CSCPedestals ( )

Definition at line 5 of file CSCPedestals.cc.

5 {}
CSCPedestals::~CSCPedestals ( )

Definition at line 6 of file CSCPedestals.cc.

6 {}

Member Function Documentation

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

Definition at line 8 of file CSCPedestals.cc.

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

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  PedestalMap::const_iterator mapItr = pedestals.find( indexer.dbIndex(cscId,strip) );
12  if(mapItr == pedestals.end())
13  {
14  throw cms::Exception("CSCPedestals")
15  << "Cannot find CSC conditions for chamber " << cscId;
16  }
17  return mapItr->second.at(strip-1);
18 }
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
PedestalMap pedestals
Definition: CSCPedestals.h:21
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:240

Member Data Documentation

PedestalMap CSCPedestals::pedestals

Definition at line 21 of file CSCPedestals.h.

Referenced by item(), and CSCFakePedestalsConditions::prefillPedestals().