CMS 3D CMS Logo

CSCGains Class Reference

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

List of all members.

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

Classes

struct  Item


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.

00005 {}

CSCGains::~CSCGains (  ) 

Definition at line 6 of file CSCGains.cc.

00006 {}


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

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


Member Data Documentation

GainsMap CSCGains::gains

Definition at line 22 of file CSCGains.h.

Referenced by item(), CSCGainsConditions::prefillGains(), and CSCFakeGainsConditions::prefillGains().


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