Skip to content

Commit 655a3fc

Browse files
authored
FemtoUniverse: Fix bug in badpoint fraction calculation
1 parent 73daccf commit 655a3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ class FemtoUniverseDetaDphiStar
877877
badpoints++;
878878
}
879879
}
880-
return badpoints / entries;
880+
return (static_cast<float>(badpoints) / static_cast<float>(entries));
881881
}
882882

883883
// Get particle charge from mask

0 commit comments

Comments
 (0)