Skip to content

Commit aac312a

Browse files
martenoledavidrohr
authored andcommitted
TRD Allow external setting of tracklet resolution
1 parent 83ee34e commit aac312a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ AddOptionRTC(chi2SeparationCut, float, 2.5f, "", 0, "Minimum difference between
8989
AddOptionRTC(nSigmaTerrITSTPC, float, 4.f, "", 0, "Number of sigmas for ITS-TPC track time error estimate")
9090
AddOptionRTC(extraRoadY, float, 2.f, "", 0, "Addition to search road around track prolongation along Y in cm")
9191
AddOptionRTC(extraRoadZ, float, 0.f, "", 0, "Addition to search road around track prolongation along Z in cm")
92+
AddOptionRTC(trkltResRPhiIdeal, float, 0.04f, "", 0, "Optimal tracklet rphi resolution in cm (in case phi of track = lorentz angle)")
9293
AddOptionRTC(applyDeflectionCut, unsigned char, 0, "", 0, "Set to 1 to enable tracklet selection based on deflection")
9394
AddOptionRTC(stopTrkAfterNMissLy, unsigned char, 6, "", 0, "Abandon track following after N layers without a TRD match")
9495
AddOptionRTC(useExternalO2DefaultPropagator, unsigned char, 0, "", 0, "Use the default instance of the o2::Propagator, instead of the GPU Reconstruciton one with GPU B field")

GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,30 +130,31 @@ void GPUTRDTracker_t<TRDTRK, PROP>::InitializeProcessor()
130130
}
131131

132132
float Bz = Param().par.bzkG;
133+
float resRPhiIdeal2 = Param().rec.trd.trkltResRPhiIdeal * Param().rec.trd.trkltResRPhiIdeal;
133134
GPUInfo("Initializing with B-field: %f kG", Bz);
134135
if (CAMath::Abs(CAMath::Abs(Bz) - 2) < 0.1) {
135136
// magnetic field +-0.2 T
136137
if (Bz > 0) {
137138
GPUInfo("Loading error parameterization for Bz = +2 kG");
138-
mRPhiA2 = 1.6e-3f, mRPhiB = -1.43e-2f, mRPhiC2 = 4.55e-2f;
139+
mRPhiA2 = resRPhiIdeal2, mRPhiB = -1.43e-2f, mRPhiC2 = 4.55e-2f;
139140
mDyA2 = 1.225e-3f, mDyB = -9.8e-3f, mDyC2 = 3.88e-2f;
140141
mAngleToDyA = -0.1f, mAngleToDyB = 1.89f, mAngleToDyC = -0.4f;
141142
} else {
142143
GPUInfo("Loading error parameterization for Bz = -2 kG");
143-
mRPhiA2 = 1.6e-3f, mRPhiB = 1.43e-2f, mRPhiC2 = 4.55e-2f;
144+
mRPhiA2 = resRPhiIdeal2, mRPhiB = 1.43e-2f, mRPhiC2 = 4.55e-2f;
144145
mDyA2 = 1.225e-3f, mDyB = 9.8e-3f, mDyC2 = 3.88e-2f;
145146
mAngleToDyA = 0.1f, mAngleToDyB = 1.89f, mAngleToDyC = 0.4f;
146147
}
147148
} else if (CAMath::Abs(CAMath::Abs(Bz) - 5) < 0.1) {
148149
// magnetic field +-0.5 T
149150
if (Bz > 0) {
150151
GPUInfo("Loading error parameterization for Bz = +5 kG");
151-
mRPhiA2 = 1.6e-3f, mRPhiB = 0.125f, mRPhiC2 = 0.0961f;
152+
mRPhiA2 = resRPhiIdeal2, mRPhiB = 0.125f, mRPhiC2 = 0.0961f;
152153
mDyA2 = 1.681e-3f, mDyB = 0.15f, mDyC2 = 0.1849f;
153154
mAngleToDyA = 0.13f, mAngleToDyB = 2.43f, mAngleToDyC = -0.58f;
154155
} else {
155156
GPUInfo("Loading error parameterization for Bz = -5 kG");
156-
mRPhiA2 = 1.6e-3f, mRPhiB = -0.14f, mRPhiC2 = 0.1156f;
157+
mRPhiA2 = resRPhiIdeal2, mRPhiB = -0.14f, mRPhiC2 = 0.1156f;
157158
mDyA2 = 2.209e-3f, mDyB = -0.15f, mDyC2 = 0.2025f;
158159
mAngleToDyA = -0.15f, mAngleToDyB = 2.34f, mAngleToDyC = 0.56f;
159160
}

0 commit comments

Comments
 (0)