[PWGDQ] Track rotation ep preserving mepm rotated legs - #17983
XiaozhiBai merged 13 commits into
Conversation
…-preserving-mepm-rotated-legs
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for 3c4f361 at 2026-09-20 14:49: Full log here. |
|
Error while checking build/O2Physics/code-check for 1cc3502 at 2026-09-20 14:52: Full log here. |
|
Error while checking build/O2Physics/code-check for 2a7605a at 2026-09-20 14:53: Full log here. |
|
Error while checking build/O2Physics/code-check for 20dee4c at 2026-09-20 14:57: Full log here. |
|
Error while checking build/O2Physics/staging for 2a7605a at 2026-09-20 14:59: Full log here. |
|
Error while checking build/O2Physics/o2 for 20dee4c at 2026-09-20 15:07: Full log here. |
|
Error while checking build/O2Physics/o2 for 1cc3502 at 2026-09-20 15:36: Full log here. |
|
Error while checking build/O2Physics/staging for 3c4f361 at 2026-09-20 16:00: Full log here. |
|
Error while checking build/O2Physics/staging for 1cc3502 at 2026-09-20 16:08: Full log here. |
|
Error while checking build/O2Physics/o2 for 3c4f361 at 2026-09-20 16:58: Full log here. |
| if (rotationphi2 >= o2::constants::math::TwoPI) { | ||
| rotationphi2 -= o2::constants::math::TwoPI; | ||
| } else if (rotationphi2 < 0) { | ||
| rotationphi2 += o2::constants::math::TwoPI; | ||
| } |
There was a problem hiding this comment.
@ayatsujiringo Why did you replace the constrainAngle function?
| if (rotationphi2 >= o2::constants::math::TwoPI) { | ||
| rotationphi2 -= o2::constants::math::TwoPI; | ||
| } else if (rotationphi2 < 0) { | ||
| rotationphi2 += o2::constants::math::TwoPI; | ||
| } |
There was a problem hiding this comment.
Again, this should be done with constrainAngle.
| ROOT::Math::PtEtaPhiMVector v1(t1.pt, t1.eta, t1.phi, m1); | ||
| ROOT::Math::PtEtaPhiMVector v2(t2.pt, t2.eta, rotationphi2, m1); | ||
| ROOT::Math::PtEtaPhiMVector v12 = v1 + v2; |
There was a problem hiding this comment.
Please consider using RecoDecay methods.
| double Ptot1 = TMath::Sqrt(v1.Px() * v1.Px() + v1.Py() * v1.Py() + v1.Pz() * v1.Pz()); | ||
| double Ptot2 = TMath::Sqrt(v2.Px() * v2.Px() + v2.Py() * v2.Py() + v2.Pz() * v2.Pz()); |
There was a problem hiding this comment.
Please consider using RecoDecay methods.
add mix event rotated unlikesign pair to calculate rotated pair acceptance