#include <CSCChamberMap.h>
Public Types | |
typedef std::map< int, CSCMapItem::MapItem > | CSCMap |
Data are public. @Should be private? More... | |
Public Member Functions | |
int | crate (const CSCDetId &) const |
Interface required use in digi-to-raw. More... | |
CSCChamberMap () | |
int | ddu (const CSCDetId &) const |
ddu id for given DetId More... | |
int | dduInput (const CSCDetId &) const |
ddu input for given DetId More... | |
int | dduSlot (const CSCDetId &) const |
ddu slot for given DetId More... | |
int | dmb (const CSCDetId &) const |
dmb id for given DetId More... | |
const CSCMapItem::MapItem & | item (int key) const |
Accessor for item according to key. More... | |
int | slink (const CSCDetId &) const |
slink id for given DetId More... | |
~CSCChamberMap () | |
Public Attributes | |
CSCMap | ch_map |
Private Member Functions | |
int | dbIndex (const CSCDetId &) const |
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 |
Definition at line 11 of file CSCChamberMap.h.
typedef std::map<int, CSCMapItem::MapItem> CSCChamberMap::CSCMap |
Data are public. @Should be private?
Definition at line 40 of file CSCChamberMap.h.
CSCChamberMap::CSCChamberMap | ( | ) |
Definition at line 4 of file CSCChamberMap.cc.
CSCChamberMap::~CSCChamberMap | ( | ) |
Definition at line 6 of file CSCChamberMap.cc.
int CSCChamberMap::crate | ( | const CSCDetId & | id | ) | const |
Interface required use in digi-to-raw.
vme crate id for given DetId
Definition at line 24 of file CSCChamberMap.cc.
References CSCMapItem::MapItem::crateid, dbIndex(), and item().
|
private |
Decimal-encoded index (as used inside db - the 'Igor' index)
This is the decimal integer ie*100000 + is*10000 + ir*1000 + ic*10 + il
(ie=1-2, is=1-4, ir=1-4, ic=1-36, il=1-6)
But in this case il=0 labels entire chamber.
Definition at line 10 of file CSCChamberMap.cc.
Referenced by crate(), ddu(), dduInput(), dduSlot(), dmb(), and slink().
int CSCChamberMap::ddu | ( | const CSCDetId & | id | ) | const |
ddu id for given DetId
Definition at line 36 of file CSCChamberMap.cc.
References dbIndex(), CSCMapItem::MapItem::ddu, and item().
Referenced by CSCDCCUnpacker::produce().
int CSCChamberMap::dduInput | ( | const CSCDetId & | id | ) | const |
ddu input for given DetId
Definition at line 54 of file CSCChamberMap.cc.
References dbIndex(), CSCMapItem::MapItem::ddu_input, and item().
int CSCChamberMap::dduSlot | ( | const CSCDetId & | id | ) | const |
ddu slot for given DetId
Definition at line 48 of file CSCChamberMap.cc.
References dbIndex(), CSCMapItem::MapItem::ddu_slot, and item().
int CSCChamberMap::dmb | ( | const CSCDetId & | id | ) | const |
dmb id for given DetId
Definition at line 30 of file CSCChamberMap.cc.
References dbIndex(), CSCMapItem::MapItem::dmb, and item().
const CSCMapItem::MapItem & CSCChamberMap::item | ( | int | key | ) | const |
Accessor for item according to key.
Definition at line 8 of file CSCChamberMap.cc.
References ch_map, crabWrapper::key, and edm::second().
Referenced by crate(), ddu(), dduInput(), dduSlot(), dmb(), and slink().
|
private |
int CSCChamberMap::slink | ( | const CSCDetId & | id | ) | const |
slink id for given DetId
Definition at line 42 of file CSCChamberMap.cc.
References dbIndex(), item(), and CSCMapItem::MapItem::slink.
|
friend |
Definition at line 53 of file CSCChamberMap.h.
|
friend |
Definition at line 53 of file CSCChamberMap.h.
CSCMap CSCChamberMap::ch_map |
Definition at line 41 of file CSCChamberMap.h.
Referenced by CSCChamberMapValues::fillChamberMap(), and item().