Skip to content

Commit 3873a08

Browse files
committed
Add default case to fix compiler warning
1 parent eb1a275 commit 3873a08

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Common/Core/PID/PIDResponse.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigma, tofNSigma, //! Nsigma separation with
127127
return He;
128128
case o2::track::PID::Alpha:
129129
return Al;
130+
default:
131+
return -999.f;
130132
}
131133
});
132134
} // namespace pidtof
@@ -189,6 +191,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigma, tofNSigma, //! Nsigma separation wit
189191
return bin_width * static_cast<float>(He);
190192
case o2::track::PID::Alpha:
191193
return bin_width * static_cast<float>(Al);
194+
default:
195+
return -999.f;
192196
}
193197
});
194198

@@ -314,6 +318,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigma, tpcNSigma, //! Nsigma separation with
314318
return He;
315319
case o2::track::PID::Alpha:
316320
return Al;
321+
default:
322+
return -999.f;
317323
}
318324
});
319325

@@ -372,6 +378,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigma, tpcNSigma, //! Nsigma separation wit
372378
return bin_width * static_cast<float>(He);
373379
case o2::track::PID::Alpha:
374380
return bin_width * static_cast<float>(Al);
381+
default:
382+
return -999.f;
375383
}
376384
});
377385
} // namespace pidtpc_tiny

0 commit comments

Comments
 (0)