Go to the documentation of this file.
14 std::map<int, int>::const_iterator it =
hw2sw_.find(hid);
20 edm::LogError(
"CSC") <<
" cannot find requested hw id = " << hid <<
" in mapping.";
39 if (
station == 1 &&
ring == 1 && cfeb >= 4 && cfeb <= 6) {
58 CSCLabel newRecord(
endcap,
station,
ring,
chamber, vmecrate, dmb, tmb, tsector, cscid, ddu, dcc);
63 if (
hw2sw_.insert(std::make_pair(hid, sid)).second) {
69 sw2hw_.insert(std::make_pair(sid, newRecord));
81 std::map<int, CSCLabel>::const_iterator it =
sw2hw_.find(sid);
87 edm::LogError(
"CSC") <<
" cannot find requested sw id = " <<
id <<
" in mapping.";
virtual ~CSCReadoutMapping()
Destructor.
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
virtual int hwId(int endcap, int station, int vme, int dmb, int tmb) const =0
int dccId(const CSCDetId &) const
returns DCC# given CSCDetId
std::vector< CSCLabel > mapping_
int chamber(int endcap, int station, int vmecrate, int dmb, int tmb) const
CSCLabel findHardwareId(const CSCDetId &) const
returns hardware ids given chamber id
int dduId(const CSCDetId &) const
returns DDU# given CSCDetId
void addRecord(int endcap, int station, int ring, int chamber, int vmecrate, int dmb, int tmb, int tsector, int cscid, int ddu, int dcc)
std::map< int, int > hw2sw_
CSCReadoutMapping()
Default constructor.
std::map< int, CSCLabel > sw2hw_
int swId(int endcap, int station, int ring, int chamber) const
Log< level::Error, false > LogError
int crate(const CSCDetId &) const
returns vmecrate given CSCDetId
int dmbId(const CSCDetId &) const
returns dmbId given CSCDetId
CSCDetId detId(int endcap, int station, int vmecrate, int dmb, int tmb, int cfeb, int layer=0) const