Skip to content

Commit

Permalink
[DPG] Fix compilation warnings (AliceO2Group#8915)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera authored and Archita-Dash committed Dec 11, 2024
1 parent c37ba69 commit 52fa97c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DPG/Tasks/AOTTrack/PID/TPC/qaPIDTPCSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ struct tpcPidQaSignal {
return false;
}
histos.fill(HIST("trksel"), 6);
if (pidInTracking != -1 && (track.pidForTracking() != std::abs(pidInTracking))) {
if (pidInTracking != -1 && (track.pidForTracking() != static_cast<unsigned int>(std::abs(pidInTracking)))) {
return false;
}
histos.fill(HIST("trksel"), 7);
Expand Down
4 changes: 2 additions & 2 deletions DPG/Tasks/AOTTrack/qaEfficiency.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2073,8 +2073,8 @@ struct QaEfficiency {
float trackEta = track.eta();
float trackPhi = track.phi();
float trackSign = track.sign();
float occupancy;
float centrality;
float occupancy{};
float centrality{};
if (doOccupancy) {
centrality = collision.centFT0C();
if (useFT0OccEstimator) {
Expand Down
4 changes: 2 additions & 2 deletions DPG/Tasks/AOTTrack/qaEventTrack.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ void qaEventTrack::fillRecoHistogramsGroupedTracks(const C& collision, const T&
sign = pdgInfo->Charge() / abs(pdgInfo->Charge());
}
// resolution plots
if (doExtraPIDqa && track.pidForTracking() != std::abs(PartIdentifier)) {
if (doExtraPIDqa && track.pidForTracking() != static_cast<unsigned int>(std::abs(PartIdentifier))) {
// full eta range
histos.fill(HIST("Tracks/Kine/resoPtVsptmcWrongPIDinTrk"), track.pt() - particle.pt(), particle.pt());
histos.fill(HIST("Tracks/Kine/resoPtVsptmcScaledWrongPIDinTrk"), (track.pt() - particle.pt()) / particle.pt(), particle.pt());
Expand Down Expand Up @@ -1651,7 +1651,7 @@ void qaEventTrack::fillRecoHistogramsGroupedTracks(const C& collision, const T&
}

// optionally check for PID in tracking: select tracks with correct PID in tracking
if (checkPIDforTracking && track.pidForTracking() != std::abs(PartIdentifier)) {
if (checkPIDforTracking && track.pidForTracking() != static_cast<unsigned int>(std::abs(PartIdentifier))) {
continue;
}

Expand Down

0 comments on commit 52fa97c

Please sign in to comment.