Skip to content

Commit de3d03b

Browse files
nivram-phyvkucera
andauthored
pt definition
Co-authored-by: Vít Kučera <26327373+vkucera@users.noreply.github.com>
1 parent 25eedc6 commit de3d03b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGDQ/Tasks/qaMatching.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ struct qaMatching {
14591459
double pMCH = mchTrackAtVertex.getP();
14601460
double px = pMCH * sin(M_PI / 2 - atan(mftTrack.tgl())) * cos(mftTrack.phi());
14611461
double py = pMCH * sin(M_PI / 2 - atan(mftTrack.tgl())) * sin(mftTrack.phi());
1462-
double pt = std::sqrt(std::pow(px, 2) + std::pow(py, 2));
1462+
double pt = std::hypot(px, py);
14631463
double sign = mchTrack.sign();
14641464

14651465
o2::dataformats::GlobalFwdTrack track = FwdToTrackPar(mftTrack, mftTrackCov);

0 commit comments

Comments
 (0)