![]() |
Project
|
#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< ColumnData > | getMasks () 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. | |
Definition at line 29 of file ChannelMasksHandler.h.
bool o2::mid::ChannelMasksHandler::applyMask | ( | ColumnData & | data | ) | const |
Applies the mask
data | Data to be masked. They will be modified |
Definition at line 65 of file ChannelMasksHandler.cxx.
|
inline |
Clear masks.
Definition at line 75 of file ChannelMasksHandler.h.
std::vector< ColumnData > o2::mid::ChannelMasksHandler::getMasks | ( | ) | const |
|
inline |
Returns the masks map.
Definition at line 69 of file ChannelMasksHandler.h.
void o2::mid::ChannelMasksHandler::merge | ( | const std::vector< ColumnData > & | masks | ) |
Merges the masks
masks | Vector of masks to be merged |
Definition at line 107 of file ChannelMasksHandler.cxx.
|
inline |
Comparison operator.
Definition at line 72 of file ChannelMasksHandler.h.
void o2::mid::ChannelMasksHandler::setFromChannelMask | ( | const ColumnData & | mask | ) |
Sets the mask
mask | Mask to be added |
Sets the mask from a channel mask
Definition at line 92 of file ChannelMasksHandler.cxx.
void o2::mid::ChannelMasksHandler::setFromChannelMasks | ( | const std::vector< ColumnData > & | masks | ) |
Sets the mask
masks | Masks |
Sets the mask from a vector of channel masks
Definition at line 99 of file ChannelMasksHandler.cxx.
void o2::mid::ChannelMasksHandler::switchOffChannel | ( | uint8_t | deId, |
uint8_t | columnId, | ||
int | lineId, | ||
int | strip, | ||
int | cathode | ||
) |
Masks channel
deId | Detection element ID |
columnId | Column ID |
lineId | Local board line in the column |
strip | Strip number |
cathode | Anode or cathode |
Definition at line 38 of file ChannelMasksHandler.cxx.
void o2::mid::ChannelMasksHandler::switchOffChannels | ( | const ColumnData & | badChannels | ) |
Masks channels
badChannels | Bad channels |
Definition at line 49 of file ChannelMasksHandler.cxx.
void o2::mid::ChannelMasksHandler::switchOffChannels | ( | const std::vector< ColumnData > & | badChannelsList | ) |
Masks channels
badChannelsList | List of bad channels |
Definition at line 58 of file ChannelMasksHandler.cxx.