From af1656a52917f56ade20b7e3b114b2b7103f70b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= Date: Tue, 9 Jul 2024 12:39:05 +0200 Subject: [PATCH 1/2] Common: Fix compilation warnings --- Common/DataModel/PIDResponse.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Common/DataModel/PIDResponse.h b/Common/DataModel/PIDResponse.h index 43c2f87c845..007deedd794 100644 --- a/Common/DataModel/PIDResponse.h +++ b/Common/DataModel/PIDResponse.h @@ -96,7 +96,7 @@ using hasTPCAl = decltype(std::declval().tpcNSigmaAl()); // PID index as template argument #define perSpeciesWrapper(functionName) \ template \ - const auto functionName(const TrackType& track) \ + auto functionName(const TrackType& track) \ { \ if constexpr (index == o2::track::PID::Electron) { \ return track.functionName##El(); \ @@ -122,7 +122,7 @@ using hasTPCAl = decltype(std::declval().tpcNSigmaAl()); perSpeciesWrapper(tofNSigma); perSpeciesWrapper(tofExpSigma); template -const auto tofExpSignal(const TrackType& track) +auto tofExpSignal(const TrackType& track) { if constexpr (index == o2::track::PID::Electron) { return track.tofExpSignalEl(track.tofSignal()); @@ -149,7 +149,7 @@ perSpeciesWrapper(tofExpSignalDiff); perSpeciesWrapper(tpcNSigma); perSpeciesWrapper(tpcExpSigma); template -const auto tpcExpSignal(const TrackType& track) +auto tpcExpSignal(const TrackType& track) { if constexpr (index == o2::track::PID::Electron) { return track.tpcExpSignalEl(track.tpcSignal()); @@ -178,7 +178,7 @@ perSpeciesWrapper(tpcExpSignalDiff); // PID index as function argument for TOF #define perSpeciesWrapper(functionName) \ template \ - const auto functionName(const o2::track::PID::ID index, const TrackType& track) \ + auto functionName(const o2::track::PID::ID index, const TrackType& track) \ { \ switch (index) { \ case o2::track::PID::Electron: \ @@ -226,7 +226,7 @@ perSpeciesWrapper(tpcExpSignalDiff); perSpeciesWrapper(tofNSigma); perSpeciesWrapper(tofExpSigma); template -const auto tofExpSignal(const o2::track::PID::ID index, const TrackType& track) +auto tofExpSignal(const o2::track::PID::ID index, const TrackType& track) { switch (index) { case o2::track::PID::Electron: @@ -277,7 +277,7 @@ perSpeciesWrapper(tofExpSignalDiff); // PID index as function argument for TPC #define perSpeciesWrapper(functionName) \ template \ - const auto functionName(const o2::track::PID::ID index, const TrackType& track) \ + auto functionName(const o2::track::PID::ID index, const TrackType& track) \ { \ switch (index) { \ case o2::track::PID::Electron: \ @@ -325,7 +325,7 @@ perSpeciesWrapper(tofExpSignalDiff); perSpeciesWrapper(tpcNSigma); perSpeciesWrapper(tpcExpSigma); template -const auto tpcExpSignal(const o2::track::PID::ID index, const TrackType& track) +auto tpcExpSignal(const o2::track::PID::ID index, const TrackType& track) { switch (index) { case o2::track::PID::Electron: From bb2d2935c6fb41cba6935ec660fb9c37db98798b Mon Sep 17 00:00:00 2001 From: ALICE Builder Date: Tue, 9 Jul 2024 12:47:03 +0200 Subject: [PATCH 2/2] Please consider the following formatting changes (#88) --- Common/DataModel/PIDResponse.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/DataModel/PIDResponse.h b/Common/DataModel/PIDResponse.h index 007deedd794..3ef77fef8d4 100644 --- a/Common/DataModel/PIDResponse.h +++ b/Common/DataModel/PIDResponse.h @@ -96,7 +96,7 @@ using hasTPCAl = decltype(std::declval().tpcNSigmaAl()); // PID index as template argument #define perSpeciesWrapper(functionName) \ template \ - auto functionName(const TrackType& track) \ + auto functionName(const TrackType& track) \ { \ if constexpr (index == o2::track::PID::Electron) { \ return track.functionName##El(); \ @@ -178,7 +178,7 @@ perSpeciesWrapper(tpcExpSignalDiff); // PID index as function argument for TOF #define perSpeciesWrapper(functionName) \ template \ - auto functionName(const o2::track::PID::ID index, const TrackType& track) \ + auto functionName(const o2::track::PID::ID index, const TrackType& track) \ { \ switch (index) { \ case o2::track::PID::Electron: \ @@ -277,7 +277,7 @@ perSpeciesWrapper(tofExpSignalDiff); // PID index as function argument for TPC #define perSpeciesWrapper(functionName) \ template \ - auto functionName(const o2::track::PID::ID index, const TrackType& track) \ + auto functionName(const o2::track::PID::ID index, const TrackType& track) \ { \ switch (index) { \ case o2::track::PID::Electron: \