BmnRoot
Loading...
Searching...
No Matches
L1Grid Class Reference

#include <L1Grid.h>

Public Member Functions

 L1Grid ()
 
 ~L1Grid ()
 
void Create (float yMin, float yMax, float zMin, float zMax, float sy, float sz)
 
void Fill (const L1HitPoint *points, THitI n)
 
int GetBin (float Y, float Z) const
 
unsigned int GetBinBounded (const float &Y, const float &Z) const
 
void GetBinBounded (const float &Y, const float &Z, unsigned short *bY, unsigned short *bZ) const
 
void GetBinBounds (unsigned int iBin, float &Ymin, float &Ymax, float &Zmin, float &Zmax) const
 
unsigned int N () const
 
unsigned short Ny () const
 
unsigned short Nz () const
 
THitI FirstHitInBin (int i) const
 

Detailed Description

2-dimensional grid of pointers. pointers to (y,z)-like objects are assigned to the corresponding grid bin used by L1Tracker to speed-up the hit operations grid axis are named Z,Y to be similar to TPC row coordinates.

Definition at line 46 of file L1Grid.h.

Constructor & Destructor Documentation

◆ L1Grid()

L1Grid::L1Grid ( )
inline

Definition at line 48 of file L1Grid.h.

◆ ~L1Grid()

L1Grid::~L1Grid ( )
inline

Definition at line 52 of file L1Grid.h.

Member Function Documentation

◆ Create()

void L1Grid::Create ( float  yMin,
float  yMax,
float  zMin,
float  zMax,
float  sy,
float  sz 
)
inline

Definition at line 103 of file L1Grid.h.

Referenced by L1Algo::CATrackFinder().

◆ Fill()

void L1Grid::Fill ( const L1HitPoint points,
THitI  n 
)
inline

Definition at line 124 of file L1Grid.h.

References GetBinBounded(), i, L1_assert, and memset().

Referenced by L1Algo::CATrackFinder().

◆ FirstHitInBin()

THitI L1Grid::FirstHitInBin ( int  i) const
inline

Definition at line 67 of file L1Grid.h.

References i.

Referenced by L1HitArea::GetNext(), and L1HitArea::L1HitArea().

◆ GetBin()

int L1Grid::GetBin ( float  Y,
float  Z 
) const
inline

Definition at line 139 of file L1Grid.h.

◆ GetBinBounded() [1/2]

unsigned int L1Grid::GetBinBounded ( const float &  Y,
const float &  Z 
) const
inline

Definition at line 85 of file L1Grid.h.

References GetBinBounded().

Referenced by Fill(), GetBinBounded(), L1HitArea::L1HitArea(), and L1HitsSortHelper::L1HitsSortHelper().

◆ GetBinBounded() [2/2]

void L1Grid::GetBinBounded ( const float &  Y,
const float &  Z,
unsigned short *  bY,
unsigned short *  bZ 
) const
inline

Definition at line 94 of file L1Grid.h.

References max(), and min().

◆ GetBinBounds()

void L1Grid::GetBinBounds ( unsigned int  iBin,
float &  Ymin,
float &  Ymax,
float &  Zmin,
float &  Zmax 
) const
inline

Definition at line 152 of file L1Grid.h.

Referenced by L1HitArea::L1HitArea().

◆ N()

unsigned int L1Grid::N ( ) const
inline

Definition at line 63 of file L1Grid.h.

Referenced by L1HitArea::GetNext(), and L1HitArea::L1HitArea().

◆ Ny()

unsigned short L1Grid::Ny ( ) const
inline

Definition at line 64 of file L1Grid.h.

◆ Nz()

unsigned short L1Grid::Nz ( ) const
inline

Definition at line 65 of file L1Grid.h.


The documentation for this class was generated from the following file: