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 476dce6 commit e3ba242Copy full SHA for e3ba242
Common/Tools/PID/pidTPCModule.h
@@ -189,8 +189,8 @@ typedef struct Str_dEdx_correction {
189
for (int i = 0; i < fMatrix.GetNrows(); i++) {
190
for (int j = 0; j < fMatrix.GetNcols(); j++) {
191
double param = fMatrix(i, j);
192
- double value1 = i > static_cast<int>(vec1.size()) ? 0 : vec1[i];
193
- 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];
194
result += param * value1 * value2;
195
}
196
0 commit comments