14 int levelPart =
get(
"level", muonConstants);
30 bool barrel_muon = (
barrel == 1);
37 if (
num.getLevels() != maxLevel) {
38 throw cms::Exception(
"DD4hep_RPCNumberingScheme",
"num.getLevels() != maxLevel");
60 const int copyno =
num.getBaseNo(
level);
63 const int copyno =
num.getBaseNo(
level);
64 sector_id = copyno + 1;
65 if (sector_id == 13) {
68 }
else if (sector_id == 14) {
74 const int plane_tag =
num.getSuperNo(
level);
77 }
else if (plane_tag == 2) {
79 }
else if (plane_tag == 3) {
81 }
else if (plane_tag == 4) {
83 }
else if (plane_tag == 5) {
89 const int copyno =
num.getBaseNo(
level);
90 if ((plane_id == 4) && (sector_id == 4 * 3)) {
91 copy_id = sector_copy * 2 + copyno + 1;
92 }
else if ((plane_id == 4) && (sector_id == 10 * 3)) {
93 copy_id = sector_copy + 1;
97 const int rollno =
num.getSuperNo(
level);
102 const int copyno =
num.getBaseNo(
level);
103 forward = (copyno == 0);
105 const int plane_tag =
num.getSuperNo(
level);
106 const int rr12_tag =
num.getBaseNo(
level);
107 plane_id = plane_tag;
110 const int copyno =
num.getBaseNo(
level);
111 sector_id = copyno + 1;
113 sector_id = sector_id * 2 - 1;
114 }
else if (rr12_id == 2) {
115 sector_id = sector_id * 2;
118 const int copyno =
num.getBaseNo(
level);
119 const int eta_tag =
num.getSuperNo(
level);
120 if ((eta_tag == 1) || (eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
122 }
else if ((eta_tag == 2) || (eta_tag == 5)) {
124 }
else if ((eta_tag == 3) || (eta_tag == 6)) {
128 eta_id = 12 - eta_id;
129 if ((eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
132 roll_id = copyno + 1;
136 int trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
138 id.buildfromTrIndex(trIndex);
144 auto const& it = (muonConstants.find(
key));
145 if (it !=
end(muonConstants))