CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Public Attributes

CSCcrosstalk Class Reference

#include <CSCcrosstalk.h>

List of all members.

Classes

struct  Item

Public Types

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

Public Member Functions

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

Public Attributes

CrosstalkMap crosstalk

Detailed Description

Definition at line 8 of file CSCcrosstalk.h.


Member Typedef Documentation

typedef std::map< int,std::vector<Item> > CSCcrosstalk::CrosstalkMap

Definition at line 25 of file CSCcrosstalk.h.


Constructor & Destructor Documentation

CSCcrosstalk::CSCcrosstalk ( ) [inline]

Definition at line 11 of file CSCcrosstalk.h.

{}
CSCcrosstalk::~CSCcrosstalk ( ) [inline]

Definition at line 12 of file CSCcrosstalk.h.

{}

Member Function Documentation

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

Definition at line 5 of file CSCcrosstalk.cc.

References crosstalk, CSCIndexer::dbIndex(), and Exception.

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

Member Data Documentation