Skip to content

Commit a183d02

Browse files
authored
[PWGLF] Fix code check warnings in previous PR (#17985)
1 parent 298bd1d commit a183d02

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,8 @@ struct HadronNucleiCorrelation {
620620
return;
621621
}
622622

623-
float deltaEta = part0.eta() - part1.eta();
624-
float deltaPhi = part0.phi() - part1.phi();
625-
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -1 * o2::constants::math::PIHalf);
623+
const float deltaEta = part0.eta() - part1.eta();
624+
const float deltaPhi = RecoDecay::constrainAngle(part0.phi() - part1.phi(), -1 * o2::constants::math::PIHalf);
626625

627626
for (int k = 0; k < nBinspT; k++) {
628627

@@ -691,9 +690,8 @@ struct HadronNucleiCorrelation {
691690
void fillHistogramsGen(T1 const& part0, T1 const& part1, const bool ME)
692691
{
693692

694-
float deltaEta = part0.eta() - part1.eta();
695-
float deltaPhi = part0.phi() - part1.phi();
696-
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -1 * o2::constants::math::PIHalf);
693+
const float deltaEta = part0.eta() - part1.eta();
694+
const float deltaPhi = RecoDecay::constrainAngle(part0.phi() - part1.phi(), -1 * o2::constants::math::PIHalf);
697695
// Here we have to use doRapidity
698696
const float deltaRapidity = part0.rapidityForPdg(pdgPart0) - part1.rapidityForPdg(pdgPart1);
699697
for (int k = 0; k < nBinspT; k++) {

0 commit comments

Comments
 (0)