Skip to content

Commit 169acc6

Browse files
committed
Code readability
1 parent d7d735c commit 169acc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGCF/TwoParticleCorrelations/TableProducer/identifiedBfFilter.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ bool loadfromccdb = false;
7878

7979
std::vector<int> recoIdMethods = {0, 1, 2}; // Reconstructed PID Methods, 0 is no PID, 1 is calculated PID, 2 is MC PID
8080
std::vector<int> trackTypes = {0, 1, 2, 3};
81-
int two = 2;
81+
const int twoDenom = 2; // Used to test if a value is even or odd
8282

8383
//============================================================================================
8484
// The IdentifiedBfFilter histogram objects
@@ -1164,10 +1164,10 @@ struct IdentifiedBfFilterTracks {
11641164
if (!(pid < 0)) {
11651165
naccepted++;
11661166
/* update charged multiplicities */
1167-
if (pid % two == trackTypes[0]) {
1167+
if (pid % twoDenom == trackTypes[0]) {
11681168
trkMultPos[kIdBfCharged]++;
11691169
}
1170-
if (pid % two == trackTypes[1]) {
1170+
if (pid % twoDenom == trackTypes[1]) {
11711171
trkMultNeg[kIdBfCharged]++;
11721172
}
11731173
if (fullDerivedData) {

0 commit comments

Comments
 (0)