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
for (auto itrow = mPixelHits[chipID].begin(); itrow != mPixelHits[chipID].end(); itrow++) { // loop over the chip rows
1118
1119
shortint row = itrow->first;
1119
-
for (shortint col_i = 0; col_i < this->N_COL; col_i++) { // loop over the pixels on the row
1120
-
for (shortint sdel_i = 0; sdel_i < this->N_RANGE; sdel_i++) { // loop over the strobe delays
1121
-
if (mPixelHits[chipID][row][col_i][0][sdel_i] > 0.1 * nInj && mPixelHits[chipID][row][col_i][0][sdel_i] < nInj && rt_mindel < 0) { // from left, first bin with 10% hits and 90% hits
1122
-
rt_mindel = (sdel_i * mStep) + 1; // + 1 because if delay = n, we get n+1 in reality (ALPIDE feature)
1123
-
}
1124
-
if (mPixelHits[chipID][row][col_i][0][sdel_i] >= 0.9 * nInj) { // for Rt max take the 90% point
1125
-
rt_maxdel = (sdel_i * mStep) + 1;
1126
-
break;
1127
-
}
1128
-
}
1120
+
for (shortint col_i = 0; col_i < this->N_COL; col_i++) { // loop over the pixels on the row
1121
+
1129
1122
for (shortint sdel_i = 0; sdel_i < N_RANGE; sdel_i++) {
1130
-
if (mPixelHits[chipID][row][col_i][0][sdel_i] >= 0.5 * nInj) { // for ToT take the 50% point
1131
-
tot_mindel = (sdel_i * mStep) + 1;
1123
+
if (mPixelHits[chipID][row][col_i][0][sdel_i] >= 0.5 * nInj) { // for ToT and ToA take the 50% point
1124
+
tot_mindel = (sdel_i * mStep) + 1; // +1 is for n --> n+1 (alpide manual)
1125
+
toa = (sdel_i * mStep) + 1;
1132
1126
break;
1133
1127
}
1134
1128
}
@@ -1146,24 +1140,23 @@ std::vector<float> ITSThresholdCalibrator::calculatePulseParams(const short int&
0 commit comments