@@ -416,7 +416,8 @@ struct UpcPhotonuclearAnalysisJMG {
416416 if (isTrackCut (track) == false ) {
417417 continue ;
418418 }
419- float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f , TwoPI);
419+ float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f );
420+
420421 histos.fill (HIST (" yields" ), multiplicity, track.pt (), eta (track.px (), track.py (), track.pz ()));
421422 histos.fill (HIST (" etaphi" ), multiplicity, eta (track.px (), track.py (), track.pz ()), phiVal);
422423 }
@@ -503,7 +504,7 @@ struct UpcPhotonuclearAnalysisJMG {
503504 float getNUAWeight (float vz, float eta, float phi)
504505 {
505506 auto hWeight = histos.get <TH3>(HIST (" weightNUA" ));
506- phi = RecoDecay::constrainAngle (phi, 0 .f , TwoPI );
507+ phi = RecoDecay::constrainAngle (phi, 0 .f );
507508 int iPhi = hWeight->GetZaxis ()->FindBin (phi);
508509 int iEta = hWeight->GetYaxis ()->FindBin (eta);
509510 int iVz = hWeight->GetXaxis ()->FindBin (vz);
@@ -530,7 +531,7 @@ struct UpcPhotonuclearAnalysisJMG {
530531 if (isTrackCut (track) == false ) {
531532 continue ;
532533 }
533- float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f , TwoPI );
534+ float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f );
534535 histos.fill (HIST (" etaphiVtx" ), reconstructedCollision.posZ (), eta (track.px (), track.py (), track.pz ()), phiVal);
535536 histos.fill (HIST (" Tracks/hTrackPhiBeforeCorr" ), phiVal);
536537 }
@@ -561,7 +562,7 @@ struct UpcPhotonuclearAnalysisJMG {
561562 }
562563 nTracksCharged++;
563564 sumPt += track.pt ();
564- float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f , TwoPI );
565+ float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f );
565566 histos.fill (HIST (" Tracks/SGsideA/hTrackPt" ), track.pt ());
566567 histos.fill (HIST (" Tracks/SGsideA/hTrackPhi" ), phiVal);
567568 histos.fill (HIST (" Tracks/SGsideA/hTrackEta" ), eta (track.px (), track.py (), track.pz ()));
@@ -621,7 +622,7 @@ struct UpcPhotonuclearAnalysisJMG {
621622 }
622623 nTracksCharged++;
623624 sumPt += track.pt ();
624- float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f , TwoPI );
625+ float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f );
625626 histos.fill (HIST (" Tracks/SGsideC/hTrackPt" ), track.pt ());
626627 histos.fill (HIST (" Tracks/SGsideC/hTrackPhi" ), phiVal);
627628 histos.fill (HIST (" Tracks/SGsideC/hTrackEta" ), eta (track.px (), track.py (), track.pz ()));
@@ -859,7 +860,7 @@ struct UpcPhotonuclearAnalysisJMG {
859860 ++multiplicity;
860861
861862 float weightNUA = getNUAWeight (reconstructedCollision.posZ (), eta (track.px (), track.py (), track.pz ()), phi (track.px (), track.py ()));
862- float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f , TwoPI );
863+ float phiVal = RecoDecay::constrainAngle (phi (track.px (), track.py ()), 0 .f );
863864 histos.fill (HIST (" Tracks/hTrackPhiAfterCorr" ), phiVal, weightNUA);
864865 }
865866 // multiplicity = reconstructedTracks.size();
0 commit comments