You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 999225e
Browse filesBrowse the repository at this point in the historyBrowse files
// Check whether the mid-position of the step is within the active area of the chip
237
+
if (!sSegmentation->localToDetector(currentPosLocal.X(), currentPosLocal.Z(), row, col, subdetectorID)) {
238
+
LOG(debug) << "Step is in passive area: (" << currentPosLocal.X() << ", " << currentPosLocal.Z() << ") is outside the active area of chip " << subdetectorID;
239
+
currentPosLocal += stepVector;
240
+
continue;
241
+
}
242
+
243
+
// Update the pixel center coordinates if the row or column has changed
256
244
if (row != rowPrev || col != colPrev) {
245
+
if (!sSegmentation->detectorToLocal(row, col, xPixelCenter, zPixelCenter, subdetectorID)) {
246
+
LOG(debug) << "Failed to get pixel center for row " << row << ", col " << col << ", chip " << chipID;
247
+
currentPosLocal += stepVector;
248
+
continue;
249
+
}
257
250
rowPrev = row;
258
251
colPrev = col;
259
252
}
260
253
254
+
// Apply efficiency cut based on the step position relative to the pixel center
255
+
if (!isEfficient(currentPosLocal.X() - xPixelCenter, currentPosLocal.Z() - zPixelCenter)) {
0 commit comments