67 {
68
69
70
71
72
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;
82
84
85
87
88
89
92 localStripPos.z() = 0.0;
95 double z_at_center_plane = std::abs(centerPlaneGlobalPos.z());
96
97
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));
100
101 if (!measuresPhi) {
102 if (stripId == static_cast<int>(0xFFFFFFFF)) { return; }
103 uint32_t etaStripID =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, stripId, measuresPhi);
104
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;
110
111 if (RPClayer == Muon::MuonStationIndex::StIndex::BI || (RPClayer == Muon::MuonStationIndex::StIndex::BO && doubletR == 1 && (sector == 11 || sector == 15))) {
112
113
114 int phiStrip = 0;
115 uint32_t phi_discrete = 0;
116
117
118
119 if (rdo_pair[0] && rdo_pair[1]) {
120
124 } else if (rdo_pair[0]) {
125
126 float loc_pos_along_BIstrip = 0;
129 } else if (rdo_pair[1]) {
130
131 float loc_pos_along_BIstrip = 0;
134 }
135
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;
139
140
141
142
144
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];
149
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];
153 }
154 } else {
155
156 uint32_t phiStripID =
getSLStripId(side, sector, doubletPhi, RPClayer, doubletR, stationEta, doubletZ, stripId, measuresPhi);
157
158 stripIDs.push_back(phiStripID);
160 }
161
162}
Scalar eta() const
pseudorapidity method
Acts::Transform3 globalToLocalTransform(const ActsTrk::GeometryContext &ctx) const
Returns the transformation from the global ATLAS coordinate system into the local coordinate system o...
const Acts::Transform3 & localToGlobalTransform(const ActsTrk::GeometryContext &ctx) const override final
Returns the transformation from the local coordinate system of the readout element into the global AT...
Amg::Vector3D stripPosition(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the position of the strip center.
virtual MuonStationIndex::StIndex stationIndex(const Identifier &id) const =0
calculate station index from Identifier
virtual int sector(const Identifier &id) const =0
return sector number 1-16, odd=large, even=small
Eigen::Matrix< double, 3, 1 > Vector3D
uint32_t getBMBOPhiStripCoordinate(const Amg::Vector3D &stripPos)
constexpr double s_propagationVelocity
uint32_t getSLStripId(bool side, int sector, int doubletPhi, Muon::MuonStationIndex::StIndex RPClayer, int doubletR, int stationEta, int doubletZ, int stripNumber, bool measuresPhi)
uint32_t getVirtualBIPhiStripCoordinate(const Amg::Vector3D &stripPos, float loc_pos_along_BIstrip)
int getVirtualBIPhiStripNumber(float loc_pos_along_BIstrip, const MuonGMR4::RpcReadoutElement &readoutElement)
StIndex
enum to classify the different station layers in the muon spectrometer