Skip to content

Commit 42100c5

Browse files
committed
cpplint
1 parent d3eb48c commit 42100c5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

PWGCF/Tasks/correlations.cxx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <cmath>
4444
#include <experimental/type_traits>
4545
#include <string>
46+
#include <utility>
4647
#include <vector>
4748

4849
using namespace o2;
@@ -429,8 +430,9 @@ struct CorrelationTask {
429430
if (cfgTriggerCharge != 0) {
430431
if (cfgTriggerCharge * track1.sign() < 0)
431432
continue;
432-
} else if (track1.sign() == 0)
433+
} else if (track1.sign() == 0) {
433434
continue; // reject neutral MC particles
435+
}
434436
}
435437
} else if constexpr (std::experimental::is_detected<HasSign, typename TTracks1::iterator>::value) {
436438
// Check reco objects that have the sign attribute. There are no neutrals to deal with.
@@ -465,8 +467,9 @@ struct CorrelationTask {
465467
// TParticlePDG *p = pdg->GetParticle(track1.pdgCode());
466468
// target->getTriggerHist()->Fill(step, track1.pt(), multiplicity, posZ, p->Mass(), triggerWeight);
467469
target->getTriggerHist()->Fill(step, track1.pt(), multiplicity, posZ, 1.8, triggerWeight);
468-
} else
470+
} else {
469471
LOGF(fatal, "Can not fill mass axis without invMass column. Disable cfgMassAxis.");
472+
}
470473
} else {
471474
target->getTriggerHist()->Fill(step, track1.pt(), multiplicity, posZ, triggerWeight);
472475
}
@@ -559,8 +562,9 @@ struct CorrelationTask {
559562
if (cfgAssociatedCharge != 0) {
560563
if (cfgAssociatedCharge * track2.sign() < 0)
561564
continue;
562-
} else if (track2.sign() == 0) // mc particles come in neutrals, need to check explicitly
565+
} else if (track2.sign() == 0) { // mc particles come in neutrals, need to check explicitly
563566
continue;
567+
}
564568
}
565569

566570
if constexpr (std::experimental::is_detected<HasSign, typename TTracks1::iterator>::value && std::experimental::is_detected<HasSign, typename TTracks2::iterator>::value) {
@@ -608,8 +612,9 @@ struct CorrelationTask {
608612
else if constexpr (std::experimental::is_detected<HasPDGCode, typename TTracks1::iterator>::value) {
609613
// TParticlePDG *p = pdg->GetParticle(track1.pdgCode()); //TODO: get the mass for the PDG properly
610614
target->getPairHist()->Fill(step, track1.eta() - track2.eta(), track2.pt(), track1.pt(), multiplicity, deltaPhi, posZ, 1.8, associatedWeight); // p->Mass()
611-
} else
615+
} else {
612616
LOGF(fatal, "Can not fill mass axis without invMass column. Disable cfgMassAxis.");
617+
}
613618
} else {
614619
target->getPairHist()->Fill(step, track1.eta() - track2.eta(), track2.pt(), track1.pt(), multiplicity, deltaPhi, posZ, associatedWeight);
615620
}

0 commit comments

Comments
 (0)