CMS 3D CMS Logo

CSCPedestals Class Reference

#include <CondFormats/CSCObjects/interface/CSCPedestals.h>

List of all members.

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

Classes

struct  Item


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.

00005 {}

CSCPedestals::~CSCPedestals (  ) 

Definition at line 6 of file CSCPedestals.cc.

00006 {}


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.

00009 {
00010   CSCIndexer indexer;
00011   PedestalMap::const_iterator mapItr = pedestals.find( indexer.dbIndex(cscId,strip) );
00012   if(mapItr == pedestals.end())
00013   {
00014     throw cms::Exception("CSCPedestals")
00015       << "Cannot find CSC conditions for chamber " << cscId;
00016   }
00017   return mapItr->second.at(strip-1);
00018 }


Member Data Documentation

PedestalMap CSCPedestals::pedestals

Definition at line 21 of file CSCPedestals.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:24 2009 for CMSSW by  doxygen 1.5.4