Skip to content

Commit c516d92

Browse files
lauraserLaura Serksnyte
andauthored
Fix bug in Data Model for FemtoDream (#10095)
Co-authored-by: Laura Serksnyte <laura.serksnyte@cern.ch>
1 parent ef70ab1 commit c516d92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGCF/DataModel/FemtoDerived.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ DECLARE_SOA_DYNAMIC_COLUMN(Theta, theta, //! Compute the theta of the track
140140
});
141141
DECLARE_SOA_DYNAMIC_COLUMN(Px, px, //! Compute the momentum in x in GeV/c
142142
[](float pt, float phi) -> float {
143-
return pt * std::sin(phi);
143+
return pt * std::cos(phi);
144144
});
145145
DECLARE_SOA_DYNAMIC_COLUMN(Py, py, //! Compute the momentum in y in GeV/c
146146
[](float pt, float phi) -> float {
147-
return pt * std::cos(phi);
147+
return pt * std::sin(phi);
148148
});
149149
DECLARE_SOA_DYNAMIC_COLUMN(Pz, pz, //! Compute the momentum in z in GeV/c
150150
[](float pt, float eta) -> float {

0 commit comments

Comments
 (0)