Project
Loading...
Searching...
No Matches
o2::mid::ColumnDataHandler Class Reference

#include <ColumnDataHandler.h>

Public Member Functions

void add (uint8_t deId, uint8_t columnId, int lineId, int strip, int cathode)
 Add single strip.
 
bool merge (const ColumnData &col, size_t idx=0)
 Merges digit.
 
void merge (gsl::span< const ColumnData > colVec, size_t idx=0)
 Merges digits.
 
void clear ()
 Clears inner maps.
 
std::vector< ColumnDatagetMerged () const
 Returns the merged data.
 
std::vector< size_t > getMergedIndexes (const ColumnData &col) const
 Returns the indexes of the ColumnData merged into this one.
 

Detailed Description

Definition at line 30 of file ColumnDataHandler.h.

Member Function Documentation

◆ add()

void o2::mid::ColumnDataHandler::add ( uint8_t  deId,
uint8_t  columnId,
int  lineId,
int  strip,
int  cathode 
)

Add single strip.

Parameters
deIdDetection element ID
columnIdColumn ID
lineIdLocal board line in the column
stripStrip number
cathodeAnode or cathode

Definition at line 24 of file ColumnDataHandler.cxx.

◆ clear()

void o2::mid::ColumnDataHandler::clear ( )

Clears inner maps.

Definition at line 70 of file ColumnDataHandler.cxx.

◆ getMerged()

std::vector< ColumnData > o2::mid::ColumnDataHandler::getMerged ( ) const

Returns the merged data.

Returns
Vector of merged ColumnData

Gets the masks

Definition at line 60 of file ColumnDataHandler.cxx.

◆ getMergedIndexes()

std::vector< size_t > o2::mid::ColumnDataHandler::getMergedIndexes ( const ColumnData col) const

Returns the indexes of the ColumnData merged into this one.

Parameters
colMerged ColumnData
Returns
Vector of the indexes of the ColumnData merged into this one

Definition at line 76 of file ColumnDataHandler.cxx.

◆ merge() [1/2]

bool o2::mid::ColumnDataHandler::merge ( const ColumnData col,
size_t  idx = 0 
)

Merges digit.

Parameters
colinput digit
idxindex of col in the vector. Useful to keep track of what digit was merged
Returns
true if this is the first added digit

Definition at line 37 of file ColumnDataHandler.cxx.

◆ merge() [2/2]

void o2::mid::ColumnDataHandler::merge ( gsl::span< const ColumnData colVec,
size_t  idx = 0 
)

Merges digits.

Parameters
colVecspan of column data
idxOffset index of the first ColumnData in the vector. It can be different from 0 if we are merging a subspan.

Definition at line 53 of file ColumnDataHandler.cxx.


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