Project
Loading...
Searching...
No Matches
o2::mid::ColumnData Struct Reference

Column data structure for MID. More...

#include <ColumnData.h>

Public Member Functions

void setBendPattern (uint16_t pattern, int line)
 Sets the bending plane pattern.
 
uint16_t getBendPattern (int line) const
 Gets the bending plane pattern.
 
void setNonBendPattern (uint16_t pattern)
 Sets the non-bending plane pattern.
 
uint16_t getNonBendPattern () const
 Gets the non-bending plane pattern.
 
void setPattern (uint16_t pattern, int cathode, int line)
 
uint16_t getPattern (int cathode, int line) const
 
void addStrip (int strip, int cathode, int line)
 
bool isNBPStripFired (int istrip) const
 Checks if strip is fired in the non-bending plane.
 
bool isBPStripFired (int istrip, int line) const
 Checks if strip is fired in the bending plane.
 
bool isStripFired (int istrip, int cathode, int line) const
 
bool operator== (const ColumnData &right) const
 
bool isEmpty () const
 

Public Attributes

uint8_t deId = 0
 Index of the detection element.
 
uint8_t columnId = 0
 Column in DE.
 
std::array< uint16_t, 5 > patterns {}
 Strip patterns.
 

Detailed Description

Column data structure for MID.

Definition at line 29 of file ColumnData.h.

Member Function Documentation

◆ addStrip()

void o2::mid::ColumnData::addStrip ( int  strip,
int  cathode,
int  line 
)

Adds a strip to the pattern

Definition at line 42 of file ColumnData.cxx.

◆ getBendPattern()

uint16_t o2::mid::ColumnData::getBendPattern ( int  line) const
inline

Gets the bending plane pattern.

Definition at line 37 of file ColumnData.h.

◆ getNonBendPattern()

uint16_t o2::mid::ColumnData::getNonBendPattern ( ) const
inline

Gets the non-bending plane pattern.

Definition at line 42 of file ColumnData.h.

◆ getPattern()

uint16_t o2::mid::ColumnData::getPattern ( int  cathode,
int  line 
) const

Gets the pattern

Definition at line 36 of file ColumnData.cxx.

◆ isBPStripFired()

bool o2::mid::ColumnData::isBPStripFired ( int  istrip,
int  line 
) const
inline

Checks if strip is fired in the bending plane.

Definition at line 52 of file ColumnData.h.

◆ isEmpty()

bool o2::mid::ColumnData::isEmpty ( ) const

Checks if the data is empty Returns true if all patterns are 0

Definition at line 55 of file ColumnData.cxx.

◆ isNBPStripFired()

bool o2::mid::ColumnData::isNBPStripFired ( int  istrip) const
inline

Checks if strip is fired in the non-bending plane.

Definition at line 50 of file ColumnData.h.

◆ isStripFired()

bool o2::mid::ColumnData::isStripFired ( int  istrip,
int  cathode,
int  line 
) const

Checks if the strip is fired

Definition at line 49 of file ColumnData.cxx.

◆ operator==()

bool o2::mid::ColumnData::operator== ( const ColumnData right) const

Comparison operator

Definition at line 70 of file ColumnData.cxx.

◆ setBendPattern()

void o2::mid::ColumnData::setBendPattern ( uint16_t  pattern,
int  line 
)
inline

Sets the bending plane pattern.

Definition at line 35 of file ColumnData.h.

◆ setNonBendPattern()

void o2::mid::ColumnData::setNonBendPattern ( uint16_t  pattern)
inline

Sets the non-bending plane pattern.

Definition at line 40 of file ColumnData.h.

◆ setPattern()

void o2::mid::ColumnData::setPattern ( uint16_t  pattern,
int  cathode,
int  line 
)

Sets the pattern

Definition at line 26 of file ColumnData.cxx.

Member Data Documentation

◆ columnId

uint8_t o2::mid::ColumnData::columnId = 0

Column in DE.

Definition at line 31 of file ColumnData.h.

◆ deId

uint8_t o2::mid::ColumnData::deId = 0

Index of the detection element.

Definition at line 30 of file ColumnData.h.

◆ patterns

std::array<uint16_t, 5> o2::mid::ColumnData::patterns {}

Strip patterns.

Definition at line 32 of file ColumnData.h.


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