CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Friends
CSCcrosstalk Class Reference

#include <CSCcrosstalk.h>

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
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 10 of file CSCcrosstalk.h.

Member Typedef Documentation

◆ CrosstalkMap

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

Definition at line 28 of file CSCcrosstalk.h.

Constructor & Destructor Documentation

◆ CSCcrosstalk()

CSCcrosstalk::CSCcrosstalk ( )
inline

Definition at line 12 of file CSCcrosstalk.h.

12 {}

◆ ~CSCcrosstalk()

CSCcrosstalk::~CSCcrosstalk ( )
inline

Definition at line 13 of file CSCcrosstalk.h.

13 {}

Member Function Documentation

◆ item()

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

Definition at line 5 of file CSCcrosstalk.cc.

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

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

◆ serialize()

template<class Archive >
void CSCcrosstalk::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 31 of file CSCcrosstalk.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 31 of file CSCcrosstalk.h.

Member Data Documentation

◆ crosstalk

CrosstalkMap CSCcrosstalk::crosstalk
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCIndexer
Definition: CSCIndexer.h:44
CSCcrosstalk::crosstalk
CrosstalkMap crosstalk
Definition: CSCcrosstalk.h:29
CSCIndexer::dbIndex
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:231
Exception
Definition: hltDiff.cc:245