We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e41fd5e commit de2fe06Copy full SHA for de2fe06
Common/TableProducer/PID/pidTPCBase.h
@@ -100,8 +100,8 @@ typedef struct Str_dEdx_correction {
100
for (int i = 0; i < fMatrix.GetNrows(); i++) {
101
for (int j = 0; j < fMatrix.GetNcols(); j++) {
102
double param = fMatrix(i, j);
103
- double value1 = i > static_cast<int>(vec1.size()) ? 0 : vec1[i];
104
- double value2 = j > static_cast<int>(vec2.size()) ? 0 : vec2[j];
+ double value1 = i >= static_cast<int>(vec1.size()) ? 0 : vec1[i];
+ double value2 = j >= static_cast<int>(vec2.size()) ? 0 : vec2[j];
105
result += param * value1 * value2;
106
}
107
0 commit comments