17 int theLevelPart = muonConstants.
getValue(
"level");
45 bool barrel_muon = (barrel == 1);
55 <<
"RPCNumberingScheme::BNToUN: BaseNumber has " << num.
getLevels() <<
" levels, need " << maxLevel;
88 sector_id = copyno + 1;
89 if (sector_id == 13) {
92 }
else if (sector_id == 14) {
102 if (plane_tag == 1) {
104 }
else if (plane_tag == 2) {
106 }
else if (plane_tag == 3) {
115 }
else if (plane_tag == 4) {
123 }
else if (plane_tag == 5) {
131 if ((plane_id == 4) && (sector_id == 4 * 3)) {
132 copy_id = sector_copy * 2 + copyno + 1;
133 }
else if ((plane_id == 4) && (sector_id == 10 * 3)) {
134 copy_id = sector_copy + 1;
136 copy_id = copyno + 1;
145 forward = (copyno == 0);
149 plane_id = plane_tag;
153 sector_id = copyno + 1;
155 sector_id = sector_id * 2 - 1;
156 }
else if (rr12_id == 2) {
157 sector_id = sector_id * 2;
163 if ((eta_tag == 1) || (eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
165 }
else if ((eta_tag == 2) || (eta_tag == 5)) {
167 }
else if ((eta_tag == 3) || (eta_tag == 6)) {
172 eta_id = 12 - eta_id;
176 if ((eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
180 roll_id = copyno + 1;
187 int trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
196 edm::LogVerbatim(
"RPCNumberingScheme") <<
"RPCNumberingScheme (backward): ";
199 edm::LogVerbatim(
"RPCNumberingScheme") <<
" roll " << roll_id <<
" copy " << copy_id <<
" sector " << sector_id
200 <<
" plane " << plane_id <<
" eta " << eta_id <<
" rr12 " << rr12_id;
205 id.buildfromTrIndex(trIndex);
int baseNumberToUnitNumber(const MuonBaseNumber &) override
int getBaseNo(int level) const
Compact representation of the geometrical detector hierarchy.
void initMe(const MuonDDDConstants &muonConstants)
RPCNumberingScheme(const DDCompactView &cpv)
int getValue(const std::string &name) const
int getSuperNo(int level) const