BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
L1Grid Class Reference

2-dimensional grid of pointers. More...

#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

Private Member Functions

 L1Grid (const L1Grid &)
L1Grid & operator= (const L1Grid &)

Private Attributes

unsigned int fN
unsigned short fNy
unsigned short fNz
float fYMinOverStep
float fZMinOverStep
float fStepYInv
float fStepZInv
THitI * fFirstHitInBin

Detailed Description

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 48 of file L1Grid.h.

Constructor & Destructor Documentation

◆ L1Grid() [1/2]

L1Grid::L1Grid ( )
inline

Definition at line 51 of file L1Grid.h.

References fFirstHitInBin, fN, fNy, fNz, fStepYInv, fStepZInv, fYMinOverStep, and fZMinOverStep.

Referenced by L1Grid(), and operator=().

Here is the caller graph for this function:

◆ ~L1Grid()

L1Grid::~L1Grid ( )
inline

Definition at line 62 of file L1Grid.h.

References fFirstHitInBin.

◆ L1Grid() [2/2]

L1Grid::L1Grid ( const L1Grid & )
private

References L1Grid().

Here is the call graph for this function:

Member Function Documentation

◆ Create()

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

Definition at line 116 of file L1Grid.h.

References fFirstHitInBin, fN, fNy, fNz, fStepYInv, fStepZInv, fYMinOverStep, fZMinOverStep, zMax, and zMin.

Referenced by L1Algo::CATrackFinder().

Here is the caller graph for this function:

◆ Fill()

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

Definition at line 138 of file L1Grid.h.

References fFirstHitInBin, fN, GetBinBounded(), i, L1_assert, memset(), and n.

Referenced by L1Algo::CATrackFinder().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FirstHitInBin()

THitI L1Grid::FirstHitInBin ( int i) const
inline

Definition at line 81 of file L1Grid.h.

References fFirstHitInBin, and i.

◆ GetBin()

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

Definition at line 153 of file L1Grid.h.

References fNy, fNz, fStepYInv, fStepZInv, fYMinOverStep, and fZMinOverStep.

◆ GetBinBounded() [1/2]

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

Definition at line 98 of file L1Grid.h.

References fNy, and GetBinBounded().

Referenced by Fill(), and GetBinBounded().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBinBounded() [2/2]

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

Definition at line 107 of file L1Grid.h.

References fNy, fNz, fStepYInv, fStepZInv, fYMinOverStep, fZMinOverStep, max(), and min().

Here is the call graph for this function:

◆ GetBinBounds()

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

Definition at line 166 of file L1Grid.h.

References fNy, fStepYInv, fStepZInv, fYMinOverStep, and fZMinOverStep.

◆ N()

unsigned int L1Grid::N ( ) const
inline

Definition at line 77 of file L1Grid.h.

References fN.

◆ Ny()

unsigned short L1Grid::Ny ( ) const
inline

Definition at line 78 of file L1Grid.h.

References fNy.

◆ Nz()

unsigned short L1Grid::Nz ( ) const
inline

Definition at line 79 of file L1Grid.h.

References fNz.

◆ operator=()

L1Grid & L1Grid::operator= ( const L1Grid & )
private

References L1Grid().

Here is the call graph for this function:

Member Data Documentation

◆ fFirstHitInBin

THitI* L1Grid::fFirstHitInBin
private

Definition at line 92 of file L1Grid.h.

Referenced by L1Grid(), ~L1Grid(), Create(), Fill(), and FirstHitInBin().

◆ fN

unsigned int L1Grid::fN
private

Definition at line 84 of file L1Grid.h.

Referenced by L1Grid(), Create(), Fill(), and N().

◆ fNy

unsigned short L1Grid::fNy
private

Definition at line 85 of file L1Grid.h.

Referenced by L1Grid(), Create(), GetBin(), GetBinBounded(), GetBinBounded(), GetBinBounds(), and Ny().

◆ fNz

unsigned short L1Grid::fNz
private

Definition at line 86 of file L1Grid.h.

Referenced by L1Grid(), Create(), GetBin(), GetBinBounded(), and Nz().

◆ fStepYInv

float L1Grid::fStepYInv
private

Definition at line 89 of file L1Grid.h.

Referenced by L1Grid(), Create(), GetBin(), GetBinBounded(), and GetBinBounds().

◆ fStepZInv

float L1Grid::fStepZInv
private

Definition at line 90 of file L1Grid.h.

Referenced by L1Grid(), Create(), GetBin(), GetBinBounded(), and GetBinBounds().

◆ fYMinOverStep

float L1Grid::fYMinOverStep
private

Definition at line 87 of file L1Grid.h.

Referenced by L1Grid(), Create(), GetBin(), GetBinBounded(), and GetBinBounds().

◆ fZMinOverStep

float L1Grid::fZMinOverStep
private

Definition at line 88 of file L1Grid.h.

Referenced by L1Grid(), Create(), GetBin(), GetBinBounded(), and GetBinBounds().


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