Skip to content

Commit

Permalink
Common: Fix compilation warnings (AliceO2Group#6779)
Browse files Browse the repository at this point in the history
* Common: Fix compilation warnings

* Please consider the following formatting changes (#88)

---------

Co-authored-by: ALICE Builder <[email protected]>
  • Loading branch information
vkucera and alibuild authored Jul 9, 2024
1 parent 0b0024a commit 038c43a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Common/DataModel/PIDResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ using hasTPCAl = decltype(std::declval<T&>().tpcNSigmaAl());
// PID index as template argument
#define perSpeciesWrapper(functionName) \
template <o2::track::PID::ID index, typename TrackType> \
const auto functionName(const TrackType& track) \
auto functionName(const TrackType& track) \
{ \
if constexpr (index == o2::track::PID::Electron) { \
return track.functionName##El(); \
Expand All @@ -122,7 +122,7 @@ using hasTPCAl = decltype(std::declval<T&>().tpcNSigmaAl());
perSpeciesWrapper(tofNSigma);
perSpeciesWrapper(tofExpSigma);
template <o2::track::PID::ID index, typename TrackType>
const auto tofExpSignal(const TrackType& track)
auto tofExpSignal(const TrackType& track)
{
if constexpr (index == o2::track::PID::Electron) {
return track.tofExpSignalEl(track.tofSignal());
Expand All @@ -149,7 +149,7 @@ perSpeciesWrapper(tofExpSignalDiff);
perSpeciesWrapper(tpcNSigma);
perSpeciesWrapper(tpcExpSigma);
template <o2::track::PID::ID index, typename TrackType>
const auto tpcExpSignal(const TrackType& track)
auto tpcExpSignal(const TrackType& track)
{
if constexpr (index == o2::track::PID::Electron) {
return track.tpcExpSignalEl(track.tpcSignal());
Expand Down Expand Up @@ -178,7 +178,7 @@ perSpeciesWrapper(tpcExpSignalDiff);
// PID index as function argument for TOF
#define perSpeciesWrapper(functionName) \
template <typename TrackType> \
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: \
Expand Down Expand Up @@ -226,7 +226,7 @@ perSpeciesWrapper(tpcExpSignalDiff);
perSpeciesWrapper(tofNSigma);
perSpeciesWrapper(tofExpSigma);
template <typename TrackType>
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:
Expand Down Expand Up @@ -277,7 +277,7 @@ perSpeciesWrapper(tofExpSignalDiff);
// PID index as function argument for TPC
#define perSpeciesWrapper(functionName) \
template <typename TrackType> \
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: \
Expand Down Expand Up @@ -325,7 +325,7 @@ perSpeciesWrapper(tofExpSignalDiff);
perSpeciesWrapper(tpcNSigma);
perSpeciesWrapper(tpcExpSigma);
template <typename TrackType>
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:
Expand Down

0 comments on commit 038c43a

Please sign in to comment.