12 int theLevelPart = muonConstants.
getValue(
"level");
39 bool barrel_muon = (
barrel == 1);
47 if (
num.getLevels() != maxLevel) {
48 edm::LogWarning(
"MuonGeom") <<
"RPCNumberingScheme::BNToUN: BaseNumber has " <<
num.getLevels() <<
" levels, need "
76 const int copyno =
num.getBaseNo(
level);
80 const int copyno =
num.getBaseNo(
level);
82 sector_id = copyno + 1;
83 if (sector_id == 13) {
86 }
else if (sector_id == 14) {
94 const int plane_tag =
num.getSuperNo(
level);
98 }
else if (plane_tag == 2) {
100 }
else if (plane_tag == 3) {
109 }
else if (plane_tag == 4) {
117 }
else if (plane_tag == 5) {
124 const int copyno =
num.getBaseNo(
level);
125 if ((plane_id == 4) && (sector_id == 4 * 3)) {
126 copy_id = sector_copy * 2 + copyno + 1;
127 }
else if ((plane_id == 4) && (sector_id == 10 * 3)) {
128 copy_id = sector_copy + 1;
130 copy_id = copyno + 1;
132 const int rollno =
num.getSuperNo(
level);
138 const int copyno =
num.getBaseNo(
level);
139 forward = (copyno == 0);
141 const int plane_tag =
num.getSuperNo(
level);
142 const int rr12_tag =
num.getBaseNo(
level);
143 plane_id = plane_tag;
146 const int copyno =
num.getBaseNo(
level);
147 sector_id = copyno + 1;
149 sector_id = sector_id * 2 - 1;
150 }
else if (rr12_id == 2) {
151 sector_id = sector_id * 2;
154 const int copyno =
num.getBaseNo(
level);
155 const int eta_tag =
num.getSuperNo(
level);
157 if ((eta_tag == 1) || (eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
159 }
else if ((eta_tag == 2) || (eta_tag == 5)) {
161 }
else if ((eta_tag == 3) || (eta_tag == 6)) {
166 eta_id = 12 - eta_id;
170 if ((eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
174 roll_id = copyno + 1;
181 int trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
193 edm::LogVerbatim(
"MuonGeom") <<
" roll " << roll_id <<
" copy " << copy_id <<
" sector " << sector_id <<
" plane "
194 << plane_id <<
" eta " << eta_id <<
" rr12 " << rr12_id;
199 id.buildfromTrIndex(trIndex);