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
Copy file name to clipboardExpand all lines: Detectors/ITSMFT/ITS/workflow/src/ThresholdCalibratorSpec.cxx
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1001,8 +1001,8 @@ void ITSThresholdCalibrator::setRunType(const short int& runtype)
1001
1001
this->mFitType = NO_FIT;
1002
1002
this->mMin = 0;
1003
1003
this->mMax = 400; // strobe delay goes from 0 to 400 (included) in steps of 4
1004
-
this->mStep = 4;
1005
-
this->mStrobeWindow = 5; // it's 4 but it corresponds to 4+1 (as from alpide manual)
1004
+
this->mStep = 1;
1005
+
this->mStrobeWindow = 1; // it's 0 but it corresponds to 0+1 (as from alpide manual)
1006
1006
this->N_RANGE = (mMax - mMin) / mStep + 1;
1007
1007
this->mCheckExactRow = true;
1008
1008
} elseif (runtype == TOT_CALIBRATION_1_ROW) {
@@ -1013,7 +1013,7 @@ void ITSThresholdCalibrator::setRunType(const short int& runtype)
1013
1013
this->mMin = 0;
1014
1014
this->mMax = 2000; // strobe delay goes from 0 to 2000 in steps of 10
1015
1015
this->mStep = 10;
1016
-
this->mStrobeWindow = 2; // it's 1 but it corresponds to 1+1 (as from alpide manual)
1016
+
this->mStrobeWindow = 10; // it's 9 but it corresponds to 9+1 (as from alpide manual)
1017
1017
this->N_RANGE = (mMax - mMin) / mStep + 1;
1018
1018
this->mMin2 = 0; // charge min
1019
1019
this->mMax2 = 170; // charge max
@@ -1028,7 +1028,7 @@ void ITSThresholdCalibrator::setRunType(const short int& runtype)
1028
1028
this->mMin = 300;
1029
1029
this->mMax = 1100; // strobe delay goes from 300 to 1100 (included) in steps of 10
1030
1030
this->mStep = 10;
1031
-
this->mStrobeWindow = 2; // it's 1 but it corresponds to 1+1 (as from alpide manual)
1031
+
this->mStrobeWindow = 10; // it's 9 but it corresponds to 9+1 (as from alpide manual)
1032
1032
this->N_RANGE = (mMax - mMin) / mStep + 1;
1033
1033
this->mMin2 = 30; // charge min
1034
1034
this->mMax2 = 60; // charge max
@@ -1116,39 +1116,39 @@ std::vector<float> ITSThresholdCalibrator::calculatePulseParams(const short int&
1116
1116
1117
1117
for (auto itrow = mPixelHits[chipID].begin(); itrow != mPixelHits[chipID].end(); itrow++) { // loop over the chip rows
1118
1118
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&& mPixelHits[chipID][row][col_i][0][sdel_i] < nInj && rt_mindel < 0) { // from left, the last bin with 0 hits or the first with some hits
1122
-
rt_mindel = sdel_i > 0 ? ((sdel_i - 1) * mStep) + 1 : (sdel_i * mStep) + 1;// + 1 because if delay = n, we get n+1 in reality (ALPIDE feature)
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
1123
}
1124
-
if (mPixelHits[chipID][row][col_i][0][sdel_i] == nInj) {
1124
+
if (mPixelHits[chipID][row][col_i][0][sdel_i] >= 0.9 * nInj) {// for Rt max take the 90% point
1125
1125
rt_maxdel = (sdel_i * mStep) + 1;
1126
+
break;
1127
+
}
1128
+
}
1129
+
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
1126
1131
tot_mindel = (sdel_i * mStep) + 1;
1127
1132
break;
1128
1133
}
1129
1134
}
1130
1135
1131
-
for (shortint sdel_i = N_RANGE - 1; sdel_i >= 0; sdel_i--) { // from right, the first bin with nInj hits
1132
-
if (mPixelHits[chipID][row][col_i][0][sdel_i] == nInj) {
1136
+
for (shortint sdel_i = N_RANGE - 1; sdel_i >= 0; sdel_i--) { // from right, the first bin with 50% nInj hits
1137
+
if (mPixelHits[chipID][row][col_i][0][sdel_i] >= 0.5 * nInj) {
0 commit comments