Skip to content

Commit bf977bd

Browse files
committed
nMax for NUA correction and applying it
1 parent f55a115 commit bf977bd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

PWGUD/Tasks/upcPhotonuclearAnalysisJMG.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ struct UpcPhotonuclearAnalysisJMG {
515515
}
516516
// weight NUA for track1
517517
float phi1 = phi(track1.px(), track1.py());
518+
phi1 = RecoDecay::constrainAngle(phi1, 0.f);
518519
float eta1 = eta(track1.px(), track1.py(), track1.pz());
519520
float w1 = getNUAWeight(posZ, eta1, phi1);
520521
target->getTriggerHist()->Fill(CorrelationContainer::kCFStepReconstructed, track1.pt(), multiplicity, posZ, 1.0);
@@ -527,6 +528,7 @@ struct UpcPhotonuclearAnalysisJMG {
527528
}
528529
// weight NUA for track 2
529530
float phi2 = phi(track2.px(), track2.py());
531+
phi2 = RecoDecay::constrainAngle(phi2, 0.f);
530532
float eta2 = eta(track2.px(), track2.py(), track2.pz());
531533
float w2 = getNUAWeight(posZ, eta2, phi2);
532534
// total weight

0 commit comments

Comments
 (0)