Skip to content

Commit ff02841

Browse files
authored
Updated the calculation of angle between dimuon and event plane
1 parent d7bc1c5 commit ff02841

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PWGDQ/Core/VarManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ class VarManager : public TObject
627627
kCosThetaCS,
628628
kPhiHE,
629629
kPhiCS,
630+
kCosPhiVP,
630631
kPhiVP,
631632
kDeltaPhiPair2,
632633
kDeltaEtaPair2,
@@ -4414,6 +4415,7 @@ void VarManager::FillPairVn(T1 const& t1, T2 const& t2, float* values)
44144415
auto vDimu = (t1.sign() > 0 ? ROOT::Math::XYZVectorF(v1_vp.Px(), v1_vp.Py(), v1_vp.Pz()).Cross(ROOT::Math::XYZVectorF(v2_vp.Px(), v2_vp.Py(), v2_vp.Pz()))
44154416
: ROOT::Math::XYZVectorF(v2_vp.Px(), v2_vp.Py(), v2_vp.Pz()).Cross(ROOT::Math::XYZVectorF(v1_vp.Px(), v1_vp.Py(), v1_vp.Pz())));
44164417
auto vRef = p12_vp.Cross(p12_vp_projXZ);
4418+
values[kCosPhiVP] = vDimu.Dot(vRef) / (vRef.R() * vDimu.R());
44174419
values[kPhiVP] = std::acos(vDimu.Dot(vRef) / (vRef.R() * vDimu.R()));
44184420
}
44194421

0 commit comments

Comments
 (0)