CMS 3D CMS Logo

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

#include <CSCGains.h>

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
 

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 CSCGains.h.

Member Typedef Documentation

◆ GainsMap

typedef std::map<int, std::vector<Item> > CSCGains::GainsMap

Definition at line 25 of file CSCGains.h.

Constructor & Destructor Documentation

◆ CSCGains()

CSCGains::CSCGains ( )

Definition at line 5 of file CSCGains.cc.

5 {}

◆ ~CSCGains()

CSCGains::~CSCGains ( )

Definition at line 6 of file CSCGains.cc.

6 {}

Member Function Documentation

◆ item()

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

Definition at line 8 of file CSCGains.cc.

References CSCIndexer::dbIndex(), Exception, gains, and nano_mu_digi_cff::strip.

8  {
9  CSCIndexer indexer;
10  GainsMap::const_iterator mapItr = gains.find(indexer.dbIndex(cscId, strip));
11  if (mapItr == gains.end()) {
12  throw cms::Exception("CSCGains") << "Cannot find CSC conditions for chamber " << cscId;
13  }
14  return mapItr->second.at(strip - 1);
15 }
GainsMap gains
Definition: CSCGains.h:26
int dbIndex(const CSCDetId &id, int &channel)
Definition: CSCIndexer.cc:235

◆ serialize()

template<class Archive >
void CSCGains::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 28 of file CSCGains.h.

◆ cond::serialization::access

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

Definition at line 28 of file CSCGains.h.

Member Data Documentation

◆ gains

GainsMap CSCGains::gains