Skip to content

Commit fb21c11

Browse files
blacwoviealibuild
andauthored
[PWGCF] fix rigidity problem in getkstar() (#13092)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent d6652d3 commit fb21c11

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGCF/FemtoWorld/Core/FemtoWorldMath.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
/// \author Valentina Mantovani Sarti, TU München, valentina.mantovani-sarti@tum.de, Laura Serksnyte, TU München, laura.serksnyte@cern.ch
1515
/// \author Zuzanna Chochulska, WUT Warsaw, zchochul@cern.ch
1616

17-
#ifndef FEMTOWORLDMATH_H_
18-
#define FEMTOWORLDMATH_H_
17+
#ifndef PWGCF_FEMTOWORLD_CORE_FEMTOWORLDMATH_H_
18+
#define PWGCF_FEMTOWORLD_CORE_FEMTOWORLDMATH_H_
1919

2020
#include "Math/Vector4D.h"
2121
#include "Math/Boost.h"
@@ -39,10 +39,10 @@ class FemtoWorldMath
3939
/// \param part2 Particle 2
4040
/// \param mass2 Mass of particle 2
4141
template <typename T>
42-
static float getkstar(const T& part1, const float mass1, const T& part2, const float mass2)
42+
static float getkstar(const T& part1, const float mass1, const T& part2, const float mass2, const float z1 = 1.f, const float z2 = 1.f)
4343
{
44-
const ROOT::Math::PtEtaPhiMVector vecpart1(part1.pt(), part1.eta(), part1.phi(), mass1);
45-
const ROOT::Math::PtEtaPhiMVector vecpart2(part2.pt(), part2.eta(), part2.phi(), mass2);
44+
const ROOT::Math::PtEtaPhiMVector vecpart1(part1.pt() * z1, part1.eta(), part1.phi(), mass1);
45+
const ROOT::Math::PtEtaPhiMVector vecpart2(part2.pt() * z2, part2.eta(), part2.phi(), mass2);
4646
const ROOT::Math::PtEtaPhiMVector trackSum = vecpart1 + vecpart2;
4747

4848
const float beta = trackSum.Beta();
@@ -140,4 +140,4 @@ class FemtoWorldMath
140140

141141
} // namespace o2::analysis::femtoWorld
142142

143-
#endif /* FEMTOWORLDMATH_H_ */
143+
#endif // PWGCF_FEMTOWORLD_CORE_FEMTOWORLDMATH_H_

0 commit comments

Comments
 (0)