Skip to content

Commit 5b6fccc

Browse files
committed
GPU: Remove obsolete GPUCA_GM_USE_FULL_FIELD
1 parent 1250d5e commit 5b6fccc

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

GPU/GPUTracking/Definitions/GPUDefConstantsAndSettings.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
#endif
6868

6969
//#define GPUCA_MERGER_BY_MC_LABEL // Use MC labels for TPC track merging - for performance studies // TODO: Cleanup unneeded options
70-
//#define GPUCA_GM_USE_FULL_FIELD // Use offline magnetic field during GMPropagator prolongation
7170

7271
// clang-format on
7372

GPU/GPUTracking/Merger/GPUTPCGMPropagator.cxx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
#include "GPUDebugStreamer.h"
2323
#include "GPUTPCGMMerger.h"
2424

25-
#if defined(GPUCA_GM_USE_FULL_FIELD)
26-
#include "AliTracker.h"
27-
#include "AliMagF.h"
28-
#endif
29-
3025
using namespace o2::gpu;
3126

3227
GPUd() void GPUTPCGMPropagator::GetBxByBzBase(float cosAlpha, float sinAlpha, float X, float Y, float Z, float B[3]) const
@@ -36,24 +31,6 @@ GPUd() void GPUTPCGMPropagator::GetBxByBzBase(float cosAlpha, float sinAlpha, fl
3631
float gx = getGlobalX(cosAlpha, sinAlpha, X, Y);
3732
float gy = getGlobalY(cosAlpha, sinAlpha, X, Y);
3833

39-
#if defined(GPUCA_GM_USE_FULL_FIELD)
40-
const float kCLight = gpu_common_constants::kCLight;
41-
double r[3] = {gx, gy, Z};
42-
double bb[3];
43-
AliTracker::GetBxByBz(r, bb);
44-
bb[0] *= kCLight;
45-
bb[1] *= kCLight;
46-
bb[2] *= kCLight;
47-
/*
48-
cout<<"AliTracker::GetBz()= "<<AliTracker::GetBz()<<endl;
49-
cout<<"AliTracker::UniformField() "<<AliTracker::UniformField()<<endl;
50-
AliMagF* fld = (AliMagF*)TGeoGlobalMagField::Instance()->GetField();
51-
cout<<"Fast field = "<<(void*) fld->GetFastField()<<endl;
52-
AliMagF::BMap_t type = fld->GetMapType() ;
53-
cout<<"Field type: "<<type<<endl;
54-
// fMapType==k2BMap_t
55-
*/
56-
#else
5734
float bb[3];
5835
switch (mFieldRegion) {
5936
case ITS:
@@ -67,8 +44,6 @@ GPUd() void GPUTPCGMPropagator::GetBxByBzBase(float cosAlpha, float sinAlpha, fl
6744
mField->GetField(gx, gy, Z, bb);
6845
}
6946

70-
#endif
71-
7247
// rotate field to local coordinates
7348

7449
B[0] = bb[0] * cosAlpha + bb[1] * sinAlpha;
@@ -81,13 +56,6 @@ GPUd() float GPUTPCGMPropagator::GetBzBase(float cosAlpha, float sinAlpha, float
8156
float gx = getGlobalX(cosAlpha, sinAlpha, X, Y);
8257
float gy = getGlobalY(cosAlpha, sinAlpha, X, Y);
8358

84-
#if defined(GPUCA_GM_USE_FULL_FIELD)
85-
const float kCLight = gpu_common_constants::kCLight;
86-
double r[3] = {gx, gy, Z};
87-
double bb[3];
88-
AliTracker::GetBxByBz(r, bb);
89-
return bb[2] * kCLight;
90-
#else
9159
switch (mFieldRegion) {
9260
case ITS:
9361
return mField->GetFieldItsBz(gx, gy, Z);
@@ -97,7 +65,6 @@ GPUd() float GPUTPCGMPropagator::GetBzBase(float cosAlpha, float sinAlpha, float
9765
default:
9866
return mField->GetFieldBz(gx, gy, Z);
9967
}
100-
#endif
10168
}
10269

10370
GPUd() int32_t GPUTPCGMPropagator::RotateToAlpha(float newAlpha)

GPU/GPUTracking/SectorTracker/GPUTPCDef.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,5 @@ typedef uint32_t cahit;
3333
struct cahit2 { cahit x, y; };
3434
} // namespace o2::GPU
3535

36-
37-
#if defined(GPUCA_STANDALONE) || defined(GPUCA_GPUCODE) // No support for Full Field Propagator or Statistical errors
38-
#ifdef GPUCA_GM_USE_FULL_FIELD
39-
#undef GPUCA_GM_USE_FULL_FIELD
40-
#endif
41-
#endif
42-
4336
#endif //GPUDTPCEF_H
4437
// clang-format on

0 commit comments

Comments
 (0)