Skip to content

Commit f752543

Browse files
authored
Update r2p2-4-id.cxx
1 parent 4490474 commit f752543

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/r2p2-4-id.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ struct FillFlagsTable {
230230
break;
231231
}
232232
}
233-
} else
233+
} else {
234234
binNpid = -1;
235+
}
235236
ftable(binNpid);
236237
}
237238
for (auto track : gentracks) {
@@ -290,7 +291,7 @@ struct r2p24id {
290291

291292
void init(InitContext const&)
292293
{
293-
iftrack2 = (((int8_t)pid_particle1 != (int8_t)pid_particle2) && ((bool)ifpid)) || ((bool)iftrackpartition); // denotes whether the partiton1 is different from partition2
294+
iftrack2 = (((int8_t)pid_particle1 != (int8_t)pid_particle2) && (static_cast<bool>(ifpid))) || (static_cast<bool>(iftrackpartition)); // denotes whether the partiton1 is different from partition2
294295
//-----Defining Histograms---------------------------------------------------
295296
const AxisSpec phi{36, 0, 2.0 * constants::math::PI, "phi"}, eta{24, -0.8, 0.8, "eta"}, etaphi1{864, 0, 864, "etaphi1"}, etaphi2{864, 0, 864, "etaphi2"};
296297
histos.add("h1d_n1_phi", "#phi distribution Particle", kTH1D, {phi});

0 commit comments

Comments
 (0)