|
16 | 16 | #include <algorithm> |
17 | 17 | #include <iterator> |
18 | 18 | #include <ranges> |
| 19 | +#include <cmath> |
19 | 20 | #include <type_traits> |
20 | 21 |
|
21 | 22 | #include <oneapi/tbb/blocked_range.h> |
|
33 | 34 | #include "ITStracking/Tracklet.h" |
34 | 35 | #include "ReconstructionDataFormats/Track.h" |
35 | 36 |
|
36 | | -using o2::base::PropagatorF; |
37 | | - |
38 | 37 | namespace o2::its |
39 | 38 | { |
40 | 39 |
|
@@ -896,7 +895,7 @@ bool TrackerTraits<NLayers>::fitTrack(TrackITSExt& track, int start, int end, in |
896 | 895 | } |
897 | 896 | nCl++; |
898 | 897 | } |
899 | | - return std::abs(track.getQ2Pt()) < maxQoverPt && track.getChi2() < chi2ndfcut * (nCl * 2 - 5); |
| 898 | + return std::abs(track.getQ2Pt()) < maxQoverPt && track.getChi2() < chi2ndfcut * (float)((nCl * 2) - 5); |
900 | 899 | } |
901 | 900 |
|
902 | 901 | // create a new seed either from the existing track inner param or reseed from the edgepointd and cluster in the middle |
@@ -947,17 +946,17 @@ track::TrackParCov TrackerTraits<NLayers>::buildTrackSeed(const Cluster& cluster |
947 | 946 | { |
948 | 947 | const float sign = reverse ? -1.f : 1.f; |
949 | 948 |
|
950 | | - float ca, sa; |
| 949 | + float ca = NAN, sa = NAN; |
951 | 950 | o2::gpu::CAMath::SinCos(tf3.alphaTrackingFrame, sa, ca); |
952 | 951 |
|
953 | | - const float x1 = cluster1.xCoordinate * ca + cluster1.yCoordinate * sa; |
954 | | - const float y1 = -cluster1.xCoordinate * sa + cluster1.yCoordinate * ca; |
955 | | - const float x2 = cluster2.xCoordinate * ca + cluster2.yCoordinate * sa; |
956 | | - const float y2 = -cluster2.xCoordinate * sa + cluster2.yCoordinate * ca; |
| 952 | + const float x1 = (cluster1.xCoordinate * ca) + (cluster1.yCoordinate * sa); |
| 953 | + const float y1 = (-cluster1.xCoordinate * sa) + (cluster1.yCoordinate * ca); |
| 954 | + const float x2 = (cluster2.xCoordinate * ca) + (cluster2.yCoordinate * sa); |
| 955 | + const float y2 = (-cluster2.xCoordinate * sa) + (cluster2.yCoordinate * ca); |
957 | 956 | const float x3 = tf3.xTrackingFrame; |
958 | 957 | const float y3 = tf3.positionTrackingFrame[0]; |
959 | 958 |
|
960 | | - float snp, q2pt, q2pt2; |
| 959 | + float snp = NAN, q2pt = NAN, q2pt2 = NAN; |
961 | 960 | if (mIsZeroField) { |
962 | 961 | const float dx = x3 - x1; |
963 | 962 | const float dy = y3 - y1; |
|
0 commit comments