Skip to content

Commit d595bfb

Browse files
authored
Update nucleitpcpbpb.cxx
1 parent 3d91b31 commit d595bfb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGLF/Tasks/Nuspex/nucleitpcpbpb.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,8 @@ struct NucleitpcPbPb {
644644
if (!track.hasTOF() || !cfgFillmass)
645645
return;
646646
float beta{o2::pid::tof::Beta::GetBeta(track)};
647-
if (beta <= 0.f || beta >= 1.f)
647+
const float eps = 1e-6f;
648+
if (beta < eps || beta > 1.0f - eps)
648649
return;
649650
float charge = (species == he3 || species == he4) ? 2.f : 1.f;
650651
float p = getRigidity(track); // assuming this is the momentum from inner TPC
@@ -669,7 +670,8 @@ struct NucleitpcPbPb {
669670
if (!track.hasTOF() || !cfgFillmassnsigma)
670671
return;
671672
float beta{o2::pid::tof::Beta::GetBeta(track)};
672-
if (beta <= 0.f || beta >= 1.f)
673+
const float eps = 1e-6f;
674+
if (beta < eps || beta > 1.0f - eps)
673675
return;
674676
float charge = (species == he3 || species == he4) ? 2.f : 1.f;
675677
float p = getRigidity(track); // assuming this is the momentum from inner TPC

0 commit comments

Comments
 (0)