Skip to content

Commit 9db6d76

Browse files
committed
Remoce magic numbers
1 parent 3d8cf10 commit 9db6d76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tutorials/PWGCF/EventPlane/src/spectatorPlaneTutorial.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ struct SpectatorPlaneTutorial {
152152
float centrality = collision.centFT0C();
153153
registry.fill(HIST("hCentrality"), centrality);
154154

155-
if (centrality > 80 || centrality < 0)
155+
float centMin = 0;
156+
float centMax = 80;
157+
158+
if (centrality > centMax || centrality < centMin)
156159
return;
157160

158161
if (collision.isSelected() == false)

0 commit comments

Comments
 (0)