Skip to content

Commit 98474d8

Browse files
committed
Fix warnings in PID code
1 parent 534db63 commit 98474d8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

ALICE3/Core/TOFResoALICE3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TOFResoALICE3 : public Parametrization
3939
}
4040

4141
/** get info **/
42-
const float time = x[1];
42+
// const float time = x[1];
4343
const float evtimereso = x[2];
4444
const float mass = x[3];
4545
const float L = x[4];

Common/TableProducer/PID/pidBayes.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ struct bayesPid {
313313
}
314314
constexpr respTOF<pid> responseTOFPID;
315315

316-
const float pt = track.pt();
316+
// const float pt = track.pt();
317317
float mismPropagationFactor[10] = {1., 1., 1., 1., 1., 1., 1., 1., 1., 1.};
318318
// In the O2 this cannot be done because the cluster information is missing in the AOD
319319
// if (!fNoTOFmism) { // this flag allows to disable mismatch for iterative procedure to get prior probabilities
@@ -416,7 +416,7 @@ struct bayesPid {
416416
}
417417
if (sum <= 0) {
418418
LOG(warning) << "Invalid probability densities or prior probabilities";
419-
for (int i = 0; i < Probability[kBayesian].size(); i++) {
419+
for (long unsigned int i = 0; i < Probability[kBayesian].size(); i++) {
420420
Probability[kBayesian][i] = 1.f / Probability[kBayesian].size();
421421
}
422422
return;

Common/TableProducer/PID/pidTOF.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ struct tofPidQa {
293293
continue;
294294
}
295295

296-
const float tof = t.tofSignal() - collisionTime_ps;
296+
// const float tof = t.tofSignal() - collisionTime_ps;
297297

298298
//
299299
histos.fill(HIST("event/tofsignal"), t.p(), t.tofSignal());

0 commit comments

Comments
 (0)