12 int theLevelPart = muonConstants.
getValue(
"level");
40 bool barrel_muon = (
barrel == 1);
48 if (
num.getLevels() != maxLevel) {
50 <<
"RPCNumberingScheme::BNToUN: BaseNumber has " <<
num.getLevels() <<
" levels, need " << maxLevel;
77 const int copyno =
num.getBaseNo(
level);
81 const int copyno =
num.getBaseNo(
level);
83 sector_id = copyno + 1;
84 if (sector_id == 13) {
87 }
else if (sector_id == 14) {
95 const int plane_tag =
num.getSuperNo(
level);
99 }
else if (plane_tag == 2) {
101 }
else if (plane_tag == 3) {
110 }
else if (plane_tag == 4) {
118 }
else if (plane_tag == 5) {
125 const int copyno =
num.getBaseNo(
level);
126 if ((plane_id == 4) && (sector_id == 4 * 3)) {
127 copy_id = sector_copy * 2 + copyno + 1;
128 }
else if ((plane_id == 4) && (sector_id == 10 * 3)) {
129 copy_id = sector_copy + 1;
131 copy_id = copyno + 1;
133 const int rollno =
num.getSuperNo(
level);
139 const int copyno =
num.getBaseNo(
level);
140 forward = (copyno == 0);
142 const int plane_tag =
num.getSuperNo(
level);
143 const int rr12_tag =
num.getBaseNo(
level);
144 plane_id = plane_tag;
147 const int copyno =
num.getBaseNo(
level);
148 sector_id = copyno + 1;
150 sector_id = sector_id * 2 - 1;
151 }
else if (rr12_id == 2) {
152 sector_id = sector_id * 2;
155 const int copyno =
num.getBaseNo(
level);
156 const int eta_tag =
num.getSuperNo(
level);
158 if ((eta_tag == 1) || (eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
160 }
else if ((eta_tag == 2) || (eta_tag == 5)) {
162 }
else if ((eta_tag == 3) || (eta_tag == 6)) {
167 eta_id = 12 - eta_id;
171 if ((eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
175 roll_id = copyno + 1;
182 int trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
191 edm::LogVerbatim(
"RPCNumberingScheme") <<
"RPCNumberingScheme (backward): ";
194 edm::LogVerbatim(
"RPCNumberingScheme") <<
" roll " << roll_id <<
" copy " << copy_id <<
" sector " << sector_id
195 <<
" plane " << plane_id <<
" eta " << eta_id <<
" rr12 " << rr12_id;
200 id.buildfromTrIndex(trIndex);