Project
Loading...
Searching...
No Matches
o2::itsmft::PixelData Class Reference

< single pixel datum, with possibility to set a flag of pixel being masked out More...

#include <PixelData.h>

Public Member Functions

 PixelData (const Digit *dig)
 
 PixelData (uint16_t r=0, uint16_t c=0)
 
uint16_t getRow () const
 
uint16_t getCol () const
 
bool isMasked () const
 
void setMask ()
 
void unsetMask ()
 
uint16_t getRowDirect () const
 for faster access when the pixel is guaranteed to not be masked
 
bool operator== (const PixelData &dt) const
 
bool operator> (const PixelData &dt) const
 
bool operator< (const PixelData &dt) const
 
bool isNeighbour (const PixelData &dt, int maxDist) const
 
int compare (const PixelData &dt) const
 

Static Public Attributes

static constexpr uint32_t DummyROF = 0xffffffff
 
static constexpr uint32_t DummyChipID = 0xffff
 

Detailed Description

< single pixel datum, with possibility to set a flag of pixel being masked out

Transient data for single chip fired pixeld Assumes that the digits data is sorted in chip/col/row

Definition at line 32 of file PixelData.h.

Constructor & Destructor Documentation

◆ PixelData() [1/2]

o2::itsmft::PixelData::PixelData ( const Digit dig)
inline

Definition at line 36 of file PixelData.h.

◆ PixelData() [2/2]

o2::itsmft::PixelData::PixelData ( uint16_t  r = 0,
uint16_t  c = 0 
)
inline

Definition at line 37 of file PixelData.h.

Member Function Documentation

◆ compare()

int o2::itsmft::PixelData::compare ( const PixelData dt) const
inline

< compare to pixels (first column then row)

Definition at line 78 of file PixelData.h.

◆ getCol()

uint16_t o2::itsmft::PixelData::getCol ( ) const
inline

Definition at line 39 of file PixelData.h.

◆ getRow()

uint16_t o2::itsmft::PixelData::getRow ( ) const
inline

Definition at line 38 of file PixelData.h.

◆ getRowDirect()

uint16_t o2::itsmft::PixelData::getRowDirect ( ) const
inline

for faster access when the pixel is guaranteed to not be masked

Definition at line 45 of file PixelData.h.

◆ isMasked()

bool o2::itsmft::PixelData::isMasked ( ) const
inline

Definition at line 40 of file PixelData.h.

◆ isNeighbour()

bool o2::itsmft::PixelData::isNeighbour ( const PixelData dt,
int  maxDist 
) const
inline

< check if one pixel is in proximity of another

Definition at line 71 of file PixelData.h.

◆ operator<()

bool o2::itsmft::PixelData::operator< ( const PixelData dt) const
inline

< check if one pixel is lesser than another (first column then row)

Definition at line 62 of file PixelData.h.

◆ operator==()

bool o2::itsmft::PixelData::operator== ( const PixelData dt) const
inline

< check if one pixel is equal to another

Definition at line 47 of file PixelData.h.

◆ operator>()

bool o2::itsmft::PixelData::operator> ( const PixelData dt) const
inline

< check if one pixel is greater than another (first column then row)

Definition at line 53 of file PixelData.h.

◆ setMask()

void o2::itsmft::PixelData::setMask ( )
inline

Definition at line 41 of file PixelData.h.

◆ unsetMask()

void o2::itsmft::PixelData::unsetMask ( )
inline

Definition at line 42 of file PixelData.h.

Member Data Documentation

◆ DummyChipID

constexpr uint32_t o2::itsmft::PixelData::DummyChipID = 0xffff
staticconstexpr

Definition at line 85 of file PixelData.h.

◆ DummyROF

constexpr uint32_t o2::itsmft::PixelData::DummyROF = 0xffffffff
staticconstexpr

Definition at line 84 of file PixelData.h.


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