Skip to content

Commit 0b4c0b3

Browse files
authored
Fixing computation of longitudinal pseudo-proper time (#296)
* Correcting computation of longitudinal pseudo-proper time
1 parent bb16819 commit 0b4c0b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGDQ/Core/VarManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,10 @@ void VarManager::FillPairVertexing(C const& collision, T const& t1, T const& t2,
982982
ROOT::Math::PtEtaPhiMVector v2(t2.pt(), t2.eta(), t2.phi(), m2);
983983
ROOT::Math::PtEtaPhiMVector v12 = v1 + v2;
984984

985-
values[kVertexingTauz] = (collision.posZ() - secondaryVertex[2]) * v12.M() / (v12.Pz() * o2::constants::physics::LightSpeedCm2NS);
985+
values[kVertexingTauz] = (collision.posZ() - secondaryVertex[2]) * v12.M() / (TMath::Abs(v12.Pz()) * o2::constants::physics::LightSpeedCm2NS);
986986
values[kVertexingTauxy] = values[kVertexingLxy] * v12.M() / (v12.P() * o2::constants::physics::LightSpeedCm2NS);
987987

988-
values[kVertexingTauzErr] = values[kVertexingLzErr] * v12.M() / (v12.Pz() * o2::constants::physics::LightSpeedCm2NS);
988+
values[kVertexingTauzErr] = values[kVertexingLzErr] * v12.M() / (TMath::Abs(v12.Pz()) * o2::constants::physics::LightSpeedCm2NS);
989989
values[kVertexingTauxyErr] = values[kVertexingLxyErr] * v12.M() / (v12.P() * o2::constants::physics::LightSpeedCm2NS);
990990
}
991991

0 commit comments

Comments
 (0)