Skip to content
Snippets Groups Projects
Commit 1a13be8d authored by Martin Beyer's avatar Martin Beyer Committed by Florian Uhlig
Browse files

interpolate error spam fix

parent f6478063
No related branches found
No related tags found
1 merge request!1512TrdPid Interpolate error spam fix #3067
Pipeline #26101 failed
...@@ -389,6 +389,9 @@ Double_t CbmTrdSetTracksPidLike::GetProbability(Int_t k, Double_t mom, Double_t ...@@ -389,6 +389,9 @@ Double_t CbmTrdSetTracksPidLike::GetProbability(Int_t k, Double_t mom, Double_t
// and particle type k from the precalculated de/dx distributions // and particle type k from the precalculated de/dx distributions
// //
/// check for undefined dedx (dedx = -1. is sometimes passed in)
if (dedx < 0.) { return -999.; }
/// useless protection /// useless protection
if (k < 0 || k > fgkNParts) { return -999.; } if (k < 0 || k > fgkNParts) { return -999.; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment