CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Public Attributes

CSCPedestals Class Reference

#include <CSCPedestals.h>

List of all members.

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.

{}
CSCPedestals::~CSCPedestals ( )

Definition at line 6 of file CSCPedestals.cc.

{}

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(), Exception, and pedestals.

{
  CSCIndexer indexer;
  PedestalMap::const_iterator mapItr = pedestals.find( indexer.dbIndex(cscId,strip) );
  if(mapItr == pedestals.end())
  {
    throw cms::Exception("CSCPedestals")
      << "Cannot find CSC conditions for chamber " << cscId;
  }
  return mapItr->second.at(strip-1);
}

Member Data Documentation

Definition at line 21 of file CSCPedestals.h.

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