From abe58b7cc1898ac665c398e66b26184f92ce5c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Jacazio?= Date: Wed, 22 Sep 2021 17:55:15 +0200 Subject: [PATCH] PID: Add default case to fix compiler warning --- Common/Core/PID/PIDResponse.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Common/Core/PID/PIDResponse.h b/Common/Core/PID/PIDResponse.h index a38a3015f83..8bbd5f67b45 100644 --- a/Common/Core/PID/PIDResponse.h +++ b/Common/Core/PID/PIDResponse.h @@ -127,6 +127,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigma, tofNSigma, //! Nsigma separation with return He; case o2::track::PID::Alpha: return Al; + default: + return -999.f; } }); } // namespace pidtof @@ -189,6 +191,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigma, tofNSigma, //! Nsigma separation wit return bin_width * static_cast(He); case o2::track::PID::Alpha: return bin_width * static_cast(Al); + default: + return -999.f; } }); @@ -314,6 +318,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigma, tpcNSigma, //! Nsigma separation with return He; case o2::track::PID::Alpha: return Al; + default: + return -999.f; } }); @@ -372,6 +378,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigma, tpcNSigma, //! Nsigma separation wit return bin_width * static_cast(He); case o2::track::PID::Alpha: return bin_width * static_cast(Al); + default: + return -999.f; } }); } // namespace pidtpc_tiny