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

#include <ChannelMasksHandler.h>

Public Member Functions

void switchOffChannel (uint8_t deId, uint8_t columnId, int lineId, int strip, int cathode)
 
void switchOffChannels (const ColumnData &badChannels)
 
void switchOffChannels (const std::vector< ColumnData > &badChannelsList)
 
void setFromChannelMask (const ColumnData &mask)
 
void setFromChannelMasks (const std::vector< ColumnData > &masks)
 
bool applyMask (ColumnData &data) const
 
void merge (const std::vector< ColumnData > &masks)
 
std::vector< ColumnDatagetMasks () const
 Gets the masks.
 
const std::unordered_map< uint16_t, ColumnData > & getMasksMap () const
 Returns the masks map.
 
bool operator== (const ChannelMasksHandler &right) const
 Comparison operator.
 
void clear ()
 Clear masks.
 

Detailed Description

Definition at line 29 of file ChannelMasksHandler.h.

Member Function Documentation

◆ applyMask()

bool o2::mid::ChannelMasksHandler::applyMask ( ColumnData data) const

Applies the mask

Parameters
dataData to be masked. They will be modified
Returns
false if the data is completely masked

Definition at line 65 of file ChannelMasksHandler.cxx.

◆ clear()

void o2::mid::ChannelMasksHandler::clear ( )
inline

Clear masks.

Definition at line 75 of file ChannelMasksHandler.h.

◆ getMasks()

std::vector< ColumnData > o2::mid::ChannelMasksHandler::getMasks ( ) const

Gets the masks.

Gets the masks

Definition at line 82 of file ChannelMasksHandler.cxx.

◆ getMasksMap()

const std::unordered_map< uint16_t, ColumnData > & o2::mid::ChannelMasksHandler::getMasksMap ( ) const
inline

Returns the masks map.

Definition at line 69 of file ChannelMasksHandler.h.

◆ merge()

void o2::mid::ChannelMasksHandler::merge ( const std::vector< ColumnData > &  masks)

Merges the masks

Parameters
masksVector of masks to be merged

Definition at line 107 of file ChannelMasksHandler.cxx.

◆ operator==()

bool o2::mid::ChannelMasksHandler::operator== ( const ChannelMasksHandler right) const
inline

Comparison operator.

Definition at line 72 of file ChannelMasksHandler.h.

◆ setFromChannelMask()

void o2::mid::ChannelMasksHandler::setFromChannelMask ( const ColumnData mask)

Sets the mask

Parameters
maskMask to be added

Sets the mask from a channel mask

Definition at line 92 of file ChannelMasksHandler.cxx.

◆ setFromChannelMasks()

void o2::mid::ChannelMasksHandler::setFromChannelMasks ( const std::vector< ColumnData > &  masks)

Sets the mask

Parameters
masksMasks

Sets the mask from a vector of channel masks

Definition at line 99 of file ChannelMasksHandler.cxx.

◆ switchOffChannel()

void o2::mid::ChannelMasksHandler::switchOffChannel ( uint8_t  deId,
uint8_t  columnId,
int  lineId,
int  strip,
int  cathode 
)

Masks channel

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

Definition at line 38 of file ChannelMasksHandler.cxx.

◆ switchOffChannels() [1/2]

void o2::mid::ChannelMasksHandler::switchOffChannels ( const ColumnData badChannels)

Masks channels

Parameters
badChannelsBad channels

Definition at line 49 of file ChannelMasksHandler.cxx.

◆ switchOffChannels() [2/2]

void o2::mid::ChannelMasksHandler::switchOffChannels ( const std::vector< ColumnData > &  badChannelsList)

Masks channels

Parameters
badChannelsListList of bad channels

Definition at line 58 of file ChannelMasksHandler.cxx.


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