Skip to content

Commit 5680a22

Browse files
sgorbunodavidrohr
authored andcommitted
TPC Splines: non-uniform grid that corresponds to the track residual voxels
1 parent d0d6303 commit 5680a22

File tree

6 files changed

+619
-387
lines changed

6 files changed

+619
-387
lines changed

Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackResiduals.h

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,14 @@ class TrackResiduals
318318
void getVoxelCoordinates(int isec, int ix, int ip, int iz, float& x, float& p, float& z) const;
319319

320320
/// Calculates the x-coordinate for given x bin.
321-
/// \param i Bin index
321+
/// \param ix Bin index in x
322322
/// \return Coordinate in X
323-
float getX(int i) const;
323+
float getX(int ix) const;
324+
325+
/// Calculates the max y/x-coordinate for given x bin taking the dead zone into account.
326+
/// \param ix Bin index in x
327+
/// \return Max coordinate in Y/X
328+
float getMaxY2X(int ix) const;
324329

325330
/// Calculates the y/x-coordinate.
326331
/// \param ix Bin index in X
@@ -560,9 +565,15 @@ inline float TrackResiduals::getDXI(int ix) const
560565
}
561566

562567
//_____________________________________________________
563-
inline float TrackResiduals::getX(int i) const
568+
inline float TrackResiduals::getX(int ix) const
569+
{
570+
return mUniformBins[VoxX] ? param::MinX + (ix + 0.5) * mDX : param::RowX[ix];
571+
}
572+
573+
//_____________________________________________________
574+
inline float TrackResiduals::getMaxY2X(int ix) const
564575
{
565-
return mUniformBins[VoxX] ? param::MinX + (i + 0.5) * mDX : param::RowX[i];
576+
return mMaxY2X[ix];
566577
}
567578

568579
//_____________________________________________________

0 commit comments

Comments
 (0)