14 int levelPart =
get(
"level", muonConstants);
16 assert(levelPart != 0);
30 bool barrel_muon = (barrel == 1);
38 throw cms::Exception(
"DD4hep_RPCNumberingScheme",
"num.getLevels() != maxLevel");
64 sector_id = copyno + 1;
65 if (sector_id == 13) {
68 }
else if (sector_id == 14) {
77 }
else if (plane_tag == 2) {
79 }
else if (plane_tag == 3) {
81 }
else if (plane_tag == 4) {
83 }
else if (plane_tag == 5) {
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;
103 forward = (copyno == 0);
107 plane_id = plane_tag;
111 sector_id = copyno + 1;
113 sector_id = sector_id * 2 - 1;
114 }
else if (rr12_id == 2) {
115 sector_id = sector_id * 2;
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))
RPCNumberingScheme(const MuonConstants &muonConstants)
int getBaseNo(int level) const
std::unordered_map< std::string_view, int > MuonConstants
void initMe(const MuonConstants &muonConstants)
Namespace of DDCMS conversion namespace.
int getSuperNo(int level) const
void baseNumberToUnitNumber(const MuonBaseNumber &)
const int get(const char *, const MuonConstants &) const