Skip to content

Commit dbcbf6e

Browse files
sgorbunocbmsw
authored andcommitted
TPC Splines: non-uniform grid that corresponds to the track residual voxels
1 parent 7bf4288 commit dbcbf6e

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
@@ -552,9 +557,15 @@ inline float TrackResiduals::getDXI(int ix) const
552557
}
553558

554559
//_____________________________________________________
555-
inline float TrackResiduals::getX(int i) const
560+
inline float TrackResiduals::getX(int ix) const
561+
{
562+
return mUniformBins[VoxX] ? param::MinX + (ix + 0.5) * mDX : param::RowX[ix];
563+
}
564+
565+
//_____________________________________________________
566+
inline float TrackResiduals::getMaxY2X(int ix) const
556567
{
557-
return mUniformBins[VoxX] ? param::MinX + (i + 0.5) * mDX : param::RowX[i];
568+
return mMaxY2X[ix];
558569
}
559570

560571
//_____________________________________________________

0 commit comments

Comments
 (0)