Skip to content

Commit 12ea35b

Browse files
authored
Refactor conditional statements for particle momentum
1 parent 88b57fa commit 12ea35b

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

PWGJE/TableProducer/diffWakeTreeProducer.cxx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ struct DiffWakeTreeProducer {
233233
uint64_t bitmask20Bits = 0b11111111111111111111;
234234

235235
int64_t particlePx = (track.px() * 6000);
236-
if (particlePx < 0)
237-
{
236+
if (particlePx < 0) {
238237
substituteP |= static_cast<uint64_t>(1) << uppermostBit;
239238
particlePx = (-1) * particlePx;
240239
}
@@ -243,8 +242,7 @@ struct DiffWakeTreeProducer {
243242
uppermostBit = 41;
244243
lowermostBit = 21;
245244
int64_t particlePy = (track.py() * 6000);
246-
if (particlePy < 0)
247-
{
245+
if (particlePy < 0) {
248246
substituteP |= static_cast<uint64_t>(1) << uppermostBit;
249247
particlePy = (-1) * particlePy;
250248
}
@@ -253,8 +251,7 @@ struct DiffWakeTreeProducer {
253251
uppermostBit = 62;
254252
lowermostBit = 42;
255253
int64_t particlePz = (track.pz() * 6000);
256-
if (particlePz < 0)
257-
{
254+
if (particlePz < 0) {
258255
substituteP |= static_cast<uint64_t>(1) << uppermostBit;
259256
particlePz = (-1) * particlePz;
260257
}

0 commit comments

Comments
 (0)