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) {
108 edm::LogVerbatim(
"MuonNumbering") <<
" KONTROLA w RPCNumberingScheme: eta_id: " << eta_id
109 <<
", plane_tag: " << plane_tag <<
", plane_id: " << plane_id;
111 }
else if (plane_tag == 4) {
119 edm::LogVerbatim(
"MuonNumbering") <<
" KONTROLA w RPCNumberingScheme: eta_id: " << eta_id
120 <<
", plane_tag: " << plane_tag <<
", plane_id: " << plane_id;
122 }
else if (plane_tag == 5) {
129 const int copyno =
num.getBaseNo(
level);
130 if ((plane_id == 4) && (sector_id == 4 * 3)) {
131 copy_id = sector_copy * 2 + copyno + 1;
132 }
else if ((plane_id == 4) && (sector_id == 10 * 3)) {
133 copy_id = sector_copy + 1;
135 copy_id = copyno + 1;
137 const int rollno =
num.getSuperNo(
level);
143 const int copyno =
num.getBaseNo(
level);
144 forward = (copyno == 0);
146 const int plane_tag =
num.getSuperNo(
level);
147 const int rr12_tag =
num.getBaseNo(
level);
148 plane_id = plane_tag;
151 const int copyno =
num.getBaseNo(
level);
152 sector_id = copyno + 1;
154 sector_id = sector_id * 2 - 1;
155 }
else if (rr12_id == 2) {
156 sector_id = sector_id * 2;
159 const int copyno =
num.getBaseNo(
level);
160 const int eta_tag =
num.getSuperNo(
level);
162 if ((eta_tag == 1) || (eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
164 }
else if ((eta_tag == 2) || (eta_tag == 5)) {
166 }
else if ((eta_tag == 3) || (eta_tag == 6)) {
171 eta_id = 12 - eta_id;
175 if ((eta_tag == 4) || (eta_tag == 7) || (eta_tag == 8)) {
179 roll_id = copyno + 1;
186 int trIndex = (eta_id * 10000 + plane_id * 1000 + sector_id * 10 + copy_id) * 10 + roll_id;
198 edm::LogVerbatim(
"MuonGeom") <<
" roll " << roll_id <<
" copy " << copy_id <<
" sector " << sector_id <<
" plane " 199 << plane_id <<
" eta " << eta_id <<
" rr12 " << rr12_id;
204 id.buildfromTrIndex(trIndex);
int getValue(const std::string &name) const
Log< level::Info, true > LogVerbatim
int baseNumberToUnitNumber(const MuonBaseNumber &) const override
void initMe(const MuonGeometryConstants &muonConstants)
RPCNumberingScheme(const MuonGeometryConstants &muonConstants)
Log< level::Warning, false > LogWarning