Skip to content

Commit 9265d8a

Browse files
committed
Find voxel bin for TPC cluster position, not track interpolation position
1 parent b055ec6 commit 9265d8a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Detectors/GlobalTrackingWorkflow/tpcinterpolationworkflow/src/TPCResidualReaderSpec.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ void TPCResidualReader::run(ProcessingContext& pc)
194194
auto& statVecOut = mVoxStatsSector[sec];
195195
std::array<unsigned char, TrackResiduals::VoxDim> bvox;
196196
float xPos = param::RowX[residIn.row];
197-
float yPos = residIn.y * param::MaxY / 0x7fff;
198-
float zPos = residIn.z * param::MaxZ / 0x7fff;
197+
float yPos = residIn.y * param::MaxY / 0x7fff + residIn.dy * param::MaxResid / 0x7fff;
198+
float zPos = residIn.z * param::MaxZ / 0x7fff + residIn.dz * param::MaxResid / 0x7fff;
199199
if (!mTrackResiduals.findVoxelBin(sec, xPos, yPos, zPos, bvox)) {
200200
// we are not inside any voxel
201201
LOGF(debug, "Dropping residual in sec(%i), x(%f), y(%f), z(%f)", sec, xPos, yPos, zPos);

Detectors/TPC/calibration/SpacePoints/macro/staticMapCreator.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ void staticMapCreator(std::string fileInput = "files.txt",
254254
auto& statVecOut = voxStatsSec[sec];
255255
std::array<unsigned char, TrackResiduals::VoxDim> bvox;
256256
float xPos = param::RowX[residIn.row];
257-
float yPos = residIn.y * param::MaxY / 0x7fff;
258-
float zPos = residIn.z * param::MaxZ / 0x7fff;
257+
float yPos = residIn.y * param::MaxY / 0x7fff + residIn.dy * param::MaxResid / 0x7fff;
258+
float zPos = residIn.z * param::MaxZ / 0x7fff + residIn.dz * param::MaxResid / 0x7fff;
259259
if (!trackResiduals.findVoxelBin(sec, xPos, yPos, zPos, bvox)) {
260260
// we are not inside any voxel
261261
LOGF(debug, "Dropping residual in sec(%i), x(%f), y(%f), z(%f)", sec, xPos, yPos, zPos);

Detectors/TPC/calibration/SpacePoints/src/ResidualAggregator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ void ResidualsContainer::fill(const o2::dataformats::TFIDInfo& ti, const gsl::sp
175175
auto& statVecOut = stats[sec];
176176
std::array<unsigned char, TrackResiduals::VoxDim> bvox;
177177
float xPos = param::RowX[residIn.row];
178-
float yPos = residIn.y * param::MaxY / 0x7fff;
179-
float zPos = residIn.z * param::MaxZ / 0x7fff;
178+
float yPos = residIn.y * param::MaxY / 0x7fff + residIn.dy * param::MaxResid / 0x7fff;
179+
float zPos = residIn.z * param::MaxZ / 0x7fff + residIn.dz * param::MaxResid / 0x7fff;
180180
if (!trackResiduals->findVoxelBin(sec, xPos, yPos, zPos, bvox)) {
181181
// we are not inside any voxel
182182
LOGF(debug, "Dropping residual in sec(%i), x(%f), y(%f), z(%f)", sec, xPos, yPos, zPos);

0 commit comments

Comments
 (0)