@@ -648,7 +648,7 @@ GPUd() void GPUTPCGMMerger::MakeBorderTracks(int nBlocks, int nThreads, int iBlo
648648 // * prepare slice tracks for merging with next/previous/same sector
649649 // * each track transported to the border line
650650
651- float fieldBz = Param ().par . constBz ;
651+ float fieldBz = Param ().constBz ;
652652
653653 float dAlpha = Param ().par .dAlpha / 2 ;
654654 float x0 = 0 ;
@@ -680,7 +680,7 @@ GPUd() void GPUTPCGMMerger::MakeBorderTracks(int nBlocks, int nThreads, int iBlo
680680 continue ;
681681 }
682682 if (useOrigTrackParam) { // TODO: Check how far this makes sense with slice track refit
683- if (CAMath::Abs (track->QPt ()) * Param ().par . qptB5Scaler < GPUCA_MERGER_LOOPER_QPTB5_LIMIT ) {
683+ if (CAMath::Abs (track->QPt ()) * Param ().qptB5Scaler < GPUCA_MERGER_LOOPER_QPTB5_LIMIT ) {
684684 continue ;
685685 }
686686 const GPUTPCGMSliceTrack* trackMin = track;
@@ -698,7 +698,7 @@ GPUd() void GPUTPCGMMerger::MakeBorderTracks(int nBlocks, int nThreads, int iBlo
698698 trackTmp.Set (this , trackMin->OrigTrack (), trackMin->Alpha (), trackMin->Slice ());
699699 }
700700 } else {
701- if (CAMath::Abs (track->QPt ()) * Param ().par . qptB5Scaler < GPUCA_MERGER_HORIZONTAL_DOUBLE_QPTB5_LIMIT ) {
701+ if (CAMath::Abs (track->QPt ()) * Param ().qptB5Scaler < GPUCA_MERGER_HORIZONTAL_DOUBLE_QPTB5_LIMIT ) {
702702 if (iBorder == 0 && track->NextNeighbour () >= 0 ) {
703703 continue ;
704704 }
@@ -736,7 +736,7 @@ GPUd() void GPUTPCGMMerger::MergeBorderTracks<0>(int nBlocks, int nThreads, int
736736 for (int itr = iBlock * nThreads + iThread; itr < N1 ; itr += nThreads * nBlocks) {
737737 GPUTPCGMBorderTrack& b = B1 [itr];
738738 float d = CAMath::Max (0 .5f , 3 .5f * CAMath::Sqrt (b.Cov ()[1 ]));
739- if (CAMath::Abs (b.Par ()[4 ]) * Param ().par . qptB5Scaler >= 20 ) {
739+ if (CAMath::Abs (b.Par ()[4 ]) * Param ().qptB5Scaler >= 20 ) {
740740 d *= 2 ;
741741 } else if (d > 3 ) {
742742 d = 3 ;
@@ -756,7 +756,7 @@ GPUd() void GPUTPCGMMerger::MergeBorderTracks<0>(int nBlocks, int nThreads, int
756756 for (int itr = iBlock * nThreads + iThread; itr < N2 ; itr += nThreads * nBlocks) {
757757 GPUTPCGMBorderTrack& b = B2 [itr];
758758 float d = CAMath::Max (0 .5f , 3 .5f * CAMath::Sqrt (b.Cov ()[1 ]));
759- if (CAMath::Abs (b.Par ()[4 ]) * Param ().par . qptB5Scaler >= 20 ) {
759+ if (CAMath::Abs (b.Par ()[4 ]) * Param ().qptB5Scaler >= 20 ) {
760760 d *= 2 ;
761761 } else if (d > 3 ) {
762762 d = 3 ;
@@ -908,15 +908,15 @@ GPUd() void GPUTPCGMMerger::MergeBorderTracks<2>(int nBlocks, int nThreads, int
908908 if (!b1.CheckChi2QPt (b2, factor2k)) {
909909 CADEBUG2 (continue , printf (" !QPt\n " ));
910910 }
911- float fys = CAMath::Abs (b1.Par ()[4 ]) * Param ().par . qptB5Scaler < 20 ? factor2ys : (2 . * factor2ys);
912- float fzt = CAMath::Abs (b1.Par ()[4 ]) * Param ().par . qptB5Scaler < 20 ? factor2zt : (2 . * factor2zt);
911+ float fys = CAMath::Abs (b1.Par ()[4 ]) * Param ().qptB5Scaler < 20 ? factor2ys : (2 . * factor2ys);
912+ float fzt = CAMath::Abs (b1.Par ()[4 ]) * Param ().qptB5Scaler < 20 ? factor2zt : (2 . * factor2zt);
913913 if (!b1.CheckChi2YS (b2, fys)) {
914914 CADEBUG2 (continue , printf (" !YS\n " ));
915915 }
916916 if (!b1.CheckChi2ZT (b2, fzt)) {
917917 CADEBUG2 (continue , printf (" !ZT\n " ));
918918 }
919- if (CAMath::Abs (b1.Par ()[4 ]) * Param ().par . qptB5Scaler < 20 ) {
919+ if (CAMath::Abs (b1.Par ()[4 ]) * Param ().qptB5Scaler < 20 ) {
920920 if (b2.NClusters () < minNPartHits) {
921921 CADEBUG2 (continue , printf (" !NCl2\n " ));
922922 }
@@ -991,7 +991,7 @@ GPUd() void GPUTPCGMMerger::MergeWithinSlicesPrepare(int nBlocks, int nThreads,
991991 int iSlice = track.Slice ();
992992 GPUTPCGMBorderTrack b;
993993 ;
994- if (track.TransportToX (this , x0, Param ().par . constBz , b, maxSin)) {
994+ if (track.TransportToX (this , x0, Param ().constBz , b, maxSin)) {
995995 b.SetTrackID (itr);
996996 CADEBUG (
997997 printf (" WITHIN SLICE %d Track %d - " , iSlice, itr); for (int i = 0 ; i < 5 ; i++) { printf (" %8.3f " , b.Par ()[i]); } printf (" - " ); for (int i = 0 ; i < 5 ; i++) { printf (" %8.3f " , b.Cov ()[i]); } printf (" \n " ));
@@ -1177,7 +1177,7 @@ GPUd() void GPUTPCGMMerger::ResolveMergeSlices(GPUResolveSharedMemory& smem, int
11771177 GPUTPCGMSliceTrack* track1Base = track1;
11781178 GPUTPCGMSliceTrack* track2Base = track2;
11791179
1180- bool sameSegment = CAMath::Abs (track1->NClusters () > track2->NClusters () ? track1->QPt () : track2->QPt ()) * Param ().par . qptB5Scaler < 2 || track1->QPt () * track2->QPt () > 0 ;
1180+ bool sameSegment = CAMath::Abs (track1->NClusters () > track2->NClusters () ? track1->QPt () : track2->QPt ()) * Param ().qptB5Scaler < 2 || track1->QPt () * track2->QPt () > 0 ;
11811181 // GPUInfo("\nMerge %d with %d - same segment %d", itr, itr2, (int) sameSegment);
11821182 // PrintMergeGraph(track1, std::cout);
11831183 // PrintMergeGraph(track2, std::cout);
@@ -1311,7 +1311,7 @@ GPUd() void GPUTPCGMMerger::MergeCEFill(const GPUTPCGMSliceTrack* track, const G
13111311 }
13121312
13131313#ifdef GPUCA_MERGER_CE_ROWLIMIT
1314- if (CAMath::Abs (track->QPt ()) * Param ().par . qptB5Scaler < 0.3 && (cls.row < GPUCA_MERGER_CE_ROWLIMIT || cls.row >= GPUCA_ROW_COUNT - GPUCA_MERGER_CE_ROWLIMIT )) {
1314+ if (CAMath::Abs (track->QPt ()) * Param ().qptB5Scaler < 0.3 && (cls.row < GPUCA_MERGER_CE_ROWLIMIT || cls.row >= GPUCA_ROW_COUNT - GPUCA_MERGER_CE_ROWLIMIT )) {
13151315 return ;
13161316 }
13171317#endif
@@ -1332,7 +1332,7 @@ GPUd() void GPUTPCGMMerger::MergeCEFill(const GPUTPCGMSliceTrack* track, const G
13321332 for (int attempt = 0 ; attempt < 2 ; attempt++) {
13331333 GPUTPCGMBorderTrack b;
13341334 const float x0 = Param ().tpcGeometry .Row2X (attempt == 0 ? 63 : cls.row );
1335- if (track->TransportToX (this , x0, Param ().par . constBz , b, GPUCA_MAX_SIN_PHI_LOW )) {
1335+ if (track->TransportToX (this , x0, Param ().constBz , b, GPUCA_MAX_SIN_PHI_LOW )) {
13361336 b.SetTrackID (itr);
13371337 b.SetNClusters (mOutputTracks [itr].NClusters ());
13381338 if (CAMath::Abs (b.Cov ()[4 ]) >= 0.5 ) {
@@ -1364,7 +1364,7 @@ GPUd() void GPUTPCGMMerger::MergeCE(int nBlocks, int nThreads, int iBlock, int i
13641364 if (!trk[1 ]->OK () || trk[1 ]->CCE ()) {
13651365 continue ;
13661366 }
1367- bool looper = trk[0 ]->Looper () || trk[1 ]->Looper () || (trk[0 ]->GetParam ().GetQPt () * Param ().par . qptB5Scaler > 1 && trk[0 ]->GetParam ().GetQPt () * trk[1 ]->GetParam ().GetQPt () < 0 );
1367+ bool looper = trk[0 ]->Looper () || trk[1 ]->Looper () || (trk[0 ]->GetParam ().GetQPt () * Param ().qptB5Scaler > 1 && trk[0 ]->GetParam ().GetQPt () * trk[1 ]->GetParam ().GetQPt () < 0 );
13681368 if (!looper && trk[0 ]->GetParam ().GetPar (3 ) * trk[1 ]->GetParam ().GetPar (3 ) < 0 ) {
13691369 continue ;
13701370 }
@@ -1603,7 +1603,7 @@ GPUd() void GPUTPCGMMerger::CollectMergedTracks(int nBlocks, int nThreads, int i
16031603 }
16041604 nHits += nTrackHits;
16051605 }
1606- if (nHits < GPUCA_TRACKLET_SELECTOR_MIN_HITS_B5 (track.QPt () * Param ().par . qptB5Scaler )) {
1606+ if (nHits < GPUCA_TRACKLET_SELECTOR_MIN_HITS_B5 (track.QPt () * Param ().qptB5Scaler )) {
16071607 continue ;
16081608 }
16091609
@@ -1782,7 +1782,7 @@ GPUd() void GPUTPCGMMerger::CollectMergedTracks(int nBlocks, int nThreads, int i
17821782
17831783 GPUTPCGMBorderTrack b;
17841784 const float toX = Param ().par .earlyTpcTransform ? clXYZ[0 ].x : Param ().tpcGeometry .Row2X (cl[0 ].row );
1785- if (p2.TransportToX (this , toX, Param ().par . constBz , b, GPUCA_MAX_SIN_PHI , false )) {
1785+ if (p2.TransportToX (this , toX, Param ().constBz , b, GPUCA_MAX_SIN_PHI , false )) {
17861786 p1.X () = toX;
17871787 p1.Y () = b.Par ()[0 ];
17881788 p1.Z () = b.Par ()[1 ];
@@ -2013,7 +2013,7 @@ GPUd() void GPUTPCGMMerger::MergeLoopersInit(int nBlocks, int nThreads, int iBlo
20132013 const auto & trk = mOutputTracks [i];
20142014 const auto & p = trk.GetParam ();
20152015 const float qptabs = CAMath::Abs (p.GetQPt ());
2016- if (trk.NClusters () && qptabs * Param ().par . qptB5Scaler > 5 .f && qptabs * Param (). par .qptB5Scaler <= lowPtThresh) {
2016+ if (trk.NClusters () && qptabs * Param ().qptB5Scaler > 5 .f && qptabs * Param ().qptB5Scaler <= lowPtThresh) {
20172017 const int slice = mClusters [trk.FirstClusterRef () + trk.NClusters () - 1 ].slice ;
20182018 const float refz = p.GetZ () + (Param ().par .earlyTpcTransform ? p.GetTZOffset () : GetConstantMem ()->calibObjects .fastTransform ->convVertexTimeToZOffset (slice, p.GetTZOffset (), Param ().par .continuousMaxTimeBin )) + (trk.CSide () ? -100 : 100 );
20192019 float sinA, cosA;
@@ -2175,7 +2175,7 @@ GPUd() void GPUTPCGMMerger::MergeLoopersMain(int nBlocks, int nThreads, int iBlo
21752175#endif
21762176 if (EQ ) {
21772177 mOutputTracks [params[j].id ].SetMergedLooper (true );
2178- if (CAMath::Abs (param2.GetQPt () * Param ().par . qptB5Scaler ) >= Param ().rec .tpc .rejectQPtB5 ) {
2178+ if (CAMath::Abs (param2.GetQPt () * Param ().qptB5Scaler ) >= Param ().rec .tpc .rejectQPtB5 ) {
21792179 mOutputTracks [params[i].id ].SetMergedLooper (true );
21802180 }
21812181 }
0 commit comments