Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,8 @@ struct HadronNucleiCorrelation {
return;
}

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

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

Expand Down Expand Up @@ -691,9 +690,8 @@ struct HadronNucleiCorrelation {
void fillHistogramsGen(T1 const& part0, T1 const& part1, const bool ME)
{

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