11 if (station > 1 && ring > 1) {
12 result = ((
static_cast<unsigned>(chamber - 3) & 0x7f) / 6) + 1;
14 result = (station != 1) ? ((static_cast<unsigned>(chamber - 2) & 0x1f) / 3) + 1 :
15 ((
static_cast<unsigned>(chamber - 3) & 0x7f) / 6) + 1;
19 return (result <= 6) ? result : 6;
44 result = (chamber + 1) % 3 + 1;
46 result = (chamber + 3) % 6 + 4;
53 int i = 2 * istation + iring;
64 return "ME" + eSign + std::to_string(station) +
"/" + std::to_string(ring) +
"/" + std::to_string(chamber);
72 os <<
" E:" <<
id.endcap() <<
" S:" <<
id.station() <<
" R:" <<
id.ring() <<
" C:" <<
id.chamber()
73 <<
" L:" <<
id.layer();
std::ostream & operator<<(std::ostream &os, const CSCDetId &id)
unsigned short iChamberType() const
std::string chamberName() const
int triggerSector() const