CbmRoot
|
Class for accessing objects in the 2D area that are stored in ca::Grid. More...
#include <CaGridArea.h>
Public Member Functions | |
GridArea (const ca::Grid &grid, fscal x, fscal y, fscal dx, fscal dy) | |
Constructor. | |
bool | GetNextGridEntry (ca::HitIndex_t &ind) |
look up the next grid entry in the requested area | |
bool | GetNextObjectId (ca::HitIndex_t &objectId) |
look up the next object id in the requested area | |
void | DoLoopOverEntireGrid () |
debug mode: loop over the entire GetEntries() vector ignoring the search area | |
Private Attributes | |
const ca::Grid & | fGrid |
int | fAreaLastBinY {0} |
int | fAreaNbinsX {0} |
int | fAreaFirstBin {0} |
int | fAreaCurrentBinY {0} |
ca::HitIndex_t | fCurentEntry {0} |
ca::HitIndex_t | fEntriesXend {0} |
int | fGridNbinsX {0} |
Class for accessing objects in the 2D area that are stored in ca::Grid.
Definition at line 17 of file CaGridArea.h.
|
inline |
Constructor.
grid | - the grid to work with |
x | - X coordinate of the center of the area |
y | - Y coordinate of the center of the area |
dx | - half-width of the area in X |
dy | - half-width of the area in Y |
Definition at line 53 of file CaGridArea.h.
References fAreaCurrentBinY, fAreaFirstBin, fAreaLastBinY, fAreaNbinsX, fCurentEntry, fEntriesXend, fGrid, fGridNbinsX, cbm::algo::ca::Grid::GetBinX(), cbm::algo::ca::Grid::GetBinY(), cbm::algo::ca::Grid::GetFirstBinEntryIndex(), x, and y.
|
inline |
debug mode: loop over the entire GetEntries() vector ignoring the search area
Definition at line 103 of file CaGridArea.h.
References fAreaCurrentBinY, fAreaFirstBin, fAreaLastBinY, fAreaNbinsX, fCurentEntry, fEntriesXend, fGrid, and cbm::algo::ca::Grid::GetEntries().
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), and cbm::algo::ca::TrackExtender::FindMoreHits().
|
inline |
look up the next grid entry in the requested area
Definition at line 72 of file CaGridArea.h.
References fAreaCurrentBinY, fAreaFirstBin, fAreaLastBinY, fAreaNbinsX, fCurentEntry, fEntriesXend, fGrid, fGridNbinsX, cbm::algo::ca::Grid::GetFirstBinEntryIndex(), and cbm::algo::kf::utils::IsUnlikely().
Referenced by GetNextObjectId().
|
inline |
look up the next object id in the requested area
Definition at line 92 of file CaGridArea.h.
References fGrid, cbm::algo::ca::Grid::GetEntries(), and GetNextGridEntry().
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), and cbm::algo::ca::TrackExtender::FindMoreHits().
|
private |
Definition at line 47 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), and GridArea().
|
private |
Definition at line 46 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), and GridArea().
|
private |
Definition at line 44 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), and GridArea().
|
private |
Definition at line 45 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), and GridArea().
|
private |
Definition at line 48 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), and GridArea().
|
private |
Definition at line 49 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), and GridArea().
|
private |
Definition at line 42 of file CaGridArea.h.
Referenced by DoLoopOverEntireGrid(), GetNextGridEntry(), GetNextObjectId(), and GridArea().
|
private |
Definition at line 50 of file CaGridArea.h.
Referenced by GetNextGridEntry(), and GridArea().