65 std::map<uint32_t, uint32_t>& strip_etabin,
74 int stationEta = cabling.eta;
75 int sector = idHelperSvc->
sector(offId);
76 bool side = stationEta > 0;
77 int doubletPhi = cabling.doubletPhi;
78 int doubletR = cabling.doubletR;
79 int doubletZ = cabling.doubletZ;
80 bool measuresPhi = cabling.measuresPhi();
81 int stripId = cabling.strip;
92 localStripPos.z() = 0.0;
95 double z_at_center_plane = std::abs(centerPlaneGlobalPos.z());
98 z_at_center_plane = std::clamp(z_at_center_plane / 16368.0, 0.0, 1.0);
99 uint32_t z_discrete =
static_cast<uint32_t
>(std::round(z_at_center_plane * 1023.0f));
102 if (stripId ==
static_cast<int>(0xFFFFFFFF)) {
return; }
103 uint32_t etaStripID =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, stripId, measuresPhi);
105 stripIDs.push_back(etaStripID);
106 float eta = stripPos.eta();
107 uint32_t etaBin_discrete = std::min(
static_cast<uint32_t
>(std::round( std::abs(
eta) / 0.05f)), 22u);
108 strip_etabin[etaStripID] = etaBin_discrete;
109 strip_coordinates[etaStripID] = z_discrete;
111 if (RPClayer == Muon::MuonStationIndex::StIndex::BI || (RPClayer == Muon::MuonStationIndex::StIndex::BO && doubletR == 1 && (sector == 11 || sector == 15))) {
115 uint32_t phi_discrete = 0;
119 if (rdo_pair[0] && rdo_pair[1]) {
124 }
else if (rdo_pair[0]) {
126 float loc_pos_along_BIstrip = 0;
129 }
else if (rdo_pair[1]) {
131 float loc_pos_along_BIstrip = 0;
136 uint32_t phiStripID =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, phiStrip,
true);
137 stripIDs.push_back(phiStripID);
138 strip_coordinates[phiStripID] = phi_discrete;
143 doubletPhi = (doubletPhi == 2) ? 1 : 2;
145 uint32_t etaStripID_2 =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, stripId,
false);
146 stripIDs.push_back(etaStripID_2);
147 strip_etabin[etaStripID_2] = strip_etabin[etaStripID];
148 strip_coordinates[etaStripID_2] = strip_coordinates[etaStripID];
150 uint32_t phiStripID_2 =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, phiStrip,
true);
151 stripIDs.push_back(phiStripID_2);
152 strip_coordinates[phiStripID_2] = strip_coordinates[phiStripID];
156 uint32_t phiStripID =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, stripId, measuresPhi);
158 stripIDs.push_back(phiStripID);
void getStripIdforAlg(const RdoPairs &rdo_pair, std::vector< uint32_t > &stripIDs, std::map< uint32_t, uint32_t > &strip_coordinates, std::map< uint32_t, uint32_t > &strip_etabin, const Muon::RpcCablingData &cabling, const Identifier &offId, const ActsTrk::GeometryContext &geoCtx, const Muon::IMuonIdHelperSvc *idHelperSvc, const MuonGMR4::MuonDetectorManager *detMgr)