CMS 3D CMS Logo

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

#include <CSCPedestals.h>

Classes

struct  Item
 

Public Types

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

Public Member Functions

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

Public Attributes

PedestalMap pedestals
 

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

Member Typedef Documentation

◆ PedestalMap

typedef std::map<int, std::vector<Item> > CSCPedestals::PedestalMap

Definition at line 24 of file CSCPedestals.h.

Constructor & Destructor Documentation

◆ CSCPedestals()

CSCPedestals::CSCPedestals ( )

Definition at line 5 of file CSCPedestals.cc.

5 {}

◆ ~CSCPedestals()

CSCPedestals::~CSCPedestals ( )

Definition at line 6 of file CSCPedestals.cc.

6 {}

Member Function Documentation

◆ item()

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

Definition at line 8 of file CSCPedestals.cc.

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

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

◆ serialize()

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

◆ cond::serialization::access

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

Definition at line 27 of file CSCPedestals.h.

Member Data Documentation

◆ pedestals

PedestalMap CSCPedestals::pedestals

Definition at line 25 of file CSCPedestals.h.

Referenced by item(), and CSCFakePedestalsConditions::prefillPedestals().