12 int theLevelPart = muonConstants.
getValue(
"level");
46 const int copyno =
num.getBaseNo(
level);
48 LogDebug(
"CSCNumbering") <<
"endcap=" << fwbw_id;
51 const int station_tag =
num.getSuperNo(
level);
52 station_id = station_tag;
53 LogDebug(
"CSCNumbering") <<
"station=" << station_id;
55 const int copyno =
num.getBaseNo(
level);
56 subring_id = copyno + 1;
57 LogDebug(
"CSCNumbering") <<
"subring=" << subring_id;
59 const int copyno =
num.getBaseNo(
level);
60 sector_id = copyno + 1;
61 LogDebug(
"CSCNumbering") <<
"sector=" << sector_id;
63 const int copyno =
num.getBaseNo(
level);
64 layer_id = copyno + 1;
65 LogDebug(
"CSCNumbering") <<
"layer=" << layer_id;
67 const int ring_tag =
num.getSuperNo(
level);
75 if ((fwbw_id < 1) || (fwbw_id > 2)) {
76 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber"
77 <<
"forward/backward id out of range:" << fwbw_id;
80 if ((station_id < 1) || (station_id > 4)) {
81 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber"
82 <<
"station id out of range:" << station_id;
86 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber"
87 <<
"ring id out of range:" <<
ring_id;
90 if ((subring_id < 1) || (subring_id > 2)) {
91 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber"
92 <<
"subring id out of range:" << subring_id;
95 if ((sector_id < 1) || (sector_id > 36)) {
96 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber"
97 <<
"sector id out of range:" << sector_id;
101 if ((layer_id < 0) || (layer_id > 6)) {
102 edm::LogError(
"CSCNumbering") <<
"@SUB=CSCNumberingScheme::baseNumberToUnitNumber"
103 <<
"layer id out of range" << layer_id;
115 edm::LogVerbatim(
"CSCNumbering") <<
"CSCNumberingScheme : fw/bw " << fwbw_id <<
" station " << station_id <<
" ring "
116 <<
ring_id <<
" subring " << subring_id <<
" chamber " << chamber_id <<
" sector "
117 << sector_id <<
" layer " << layer_id;
131 chamber_id = sector_id;
133 if (subring_id == 1) {
134 chamber_id = 2 * sector_id - 1;
136 chamber_id = 2 * sector_id;