CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Public Attributes

CSCGains Class Reference

#include <CSCGains.h>

List of all members.

Classes

struct  Item

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

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.

{}
CSCGains::~CSCGains ( )

Definition at line 6 of file CSCGains.cc.

{}

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.

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

Member Data Documentation