21 fMinX = std::min(xMin, xMax);
22 fMinY = std::min(yMin, yMax);
24 xMax = std::max(xMin, xMax);
25 yMax = std::max(yMin, yMax);
73 for (
int bin = 0; bin <
fN; bin++) {
103 for (
int bin = 0; bin <
fN; bin++) {
A class to store hit information in a backet-sorted way on 2D grid.
A generic hit for the CA tracker (header)
static vector< vector< QAHit > > hits
void StoreHits(const ca::Vector< ca::Hit > &hits, ca::HitIndex_t hitStartIndex, ca::HitIndex_t nHits, const ca::Vector< unsigned char > &hitKeyFlags)
Store objects in the grid.
fscal fMinY
minimal Y value
ca::Vector< ca::GridEntry > fEntries
grid entries with references to the hit index in fWindowHits
void RemoveUsedHits(const ca::Vector< ca::Hit > &hits, const ca::Vector< unsigned char > &hitKeyFlags)
Remove grid entries that correspond to the used hits.
int GetBin(fscal X, fscal Y) const
Get bin index for (X,Y) point with boundary check.
fscal fMaxRangeT
maximal entry range in T
fscal fBinWidthX
bin width in X
void BuildBins(fscal xMin, fscal xMax, fscal yMin, fscal yMax, fscal binWidthX, fscal binWidthY)
Build the grid.
fscal fMaxRangeX
maximal entry range in X
fscal fBinWidthYinv
inverse bin width in Y
fscal fMaxRangeY
maximal entry range in Y
fscal fBinWidthY
bin width in Y
ca::Vector< ca::HitIndex_t > fNofBinEntries
number of hits in the bin
ca::Vector< ca::HitIndex_t > fFirstBinEntryIndex
index of the first entry in the bin
fscal fMinX
minimal X value
fscal fBinWidthXinv
inverse bin width in X
ca::Hit class describes a generic hit for the CA tracker
HitKeyIndex_t BackKey() const
Get the back key index.
fscal RangeX() const
Get the +/- range of uncertainty of X coordinate.
fscal Y() const
Get the Y coordinate.
fscal RangeY() const
Get the +/- range of uncertainty of Y coordinate.
fscal RangeT() const
Get the +/- range of uncertainty of time.
HitKeyIndex_t FrontKey() const
Get the front key index.
fscal X() const
Get the X coordinate.
void shrink(std::size_t count)
Reduces the vector to a given size.
void reset(std::size_t count, Tinput... value)
Clears vector and resizes it to the selected size with selected values.
TODO: SZh 8.11.2022: add selection of parameterisation.
unsigned int HitIndex_t
Index of ca::Hit.