12 int theLevelPart = muonConstants.
getValue(
"level");
46 const int copyno =
num.getBaseNo(
level);
52 const int station_tag =
num.getSuperNo(
level);
53 station_id = station_tag;
58 const int copyno =
num.getBaseNo(
level);
59 subring_id = copyno + 1;
64 const int copyno =
num.getBaseNo(
level);
65 sector_id = copyno + 1;
70 const int copyno =
num.getBaseNo(
level);
71 layer_id = copyno + 1;
76 const int ring_tag =
num.getSuperNo(
level);
86 if ((fwbw_id < 1) || (fwbw_id > 2)) {
87 edm::LogError(
"MuonGeom") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" 88 <<
"forward/backward id out of range:" << fwbw_id;
91 if ((station_id < 1) || (station_id > 4)) {
92 edm::LogError(
"MuonGeom") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" 93 <<
"station id out of range:" << station_id;
97 edm::LogError(
"MuonGeom") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" 98 <<
"ring id out of range:" <<
ring_id;
101 if ((subring_id < 1) || (subring_id > 2)) {
102 edm::LogError(
"MuonGeom") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" 103 <<
"subring id out of range:" << subring_id;
106 if ((sector_id < 1) || (sector_id > 36)) {
107 edm::LogError(
"MuonGeom") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" 108 <<
"sector id out of range:" << sector_id;
112 if ((layer_id < 0) || (layer_id > 6)) {
113 edm::LogError(
"MuonGeom") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber" 114 <<
"layer id out of range" << layer_id;
126 edm::LogVerbatim(
"MuonGeom") <<
"CSCNumberingScheme : fw/bw " << fwbw_id <<
" station " << station_id <<
" ring " 127 <<
ring_id <<
" subring " << subring_id <<
" chamber " << chamber_id <<
" sector " 128 << sector_id <<
" layer " << layer_id;
142 chamber_id = sector_id;
144 if (subring_id == 1) {
145 chamber_id = 2 * sector_id - 1;
147 chamber_id = 2 * sector_id;
int getValue(const std::string &name) const
Log< level::Info, true > LogVerbatim
static int rawIdMaker(int iendcap, int istation, int iring, int ichamber, int ilayer)
Log< level::Error, false > LogError
int chamberIndex(int, int, int, int) const
void initMe(const MuonGeometryConstants &muonConstants)
int baseNumberToUnitNumber(const MuonBaseNumber &) const override
CSCNumberingScheme(const MuonGeometryConstants &muonConstants)