![]() |
Project
|
#include <StatusMap.h>
Public Types | |
enum | Status : uint32_t { kOK = 0 , kBadPedestal = 1 << 0 , kRejectList = 1 << 1 , kBadHV = 1 << 2 } |
using | iterator = std::map< ChannelCode, uint32_t >::iterator |
using | const_iterator = std::map< ChannelCode, uint32_t >::const_iterator |
Public Member Functions | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
void | add (gsl::span< const DsChannelId > badchannels, uint32_t mask) |
void | add (gsl::span< const ChannelCode > badchannels, uint32_t mask) |
void | addDS (DsIndex badDS, uint32_t mask) |
void | addDS (raw::DsDetId badDS, uint32_t mask) |
void | addDE (uint16_t badDE, uint32_t mask) |
bool | empty () const |
void | clear () |
uint32_t | status (const ChannelCode &id) const |
The StatusMap contains the list of MCH channels that are not nominal. Said otherwise, it's a list of potential bad channels.
Each potentially bad channel is ascribed a 32-bits mask that indicate the source of information used to incriminate it.
So far only three sources exist :
In the future (based on our experience during Run1,2), we'll most probably need to add information from the DCS LV values as well.
Definition at line 43 of file StatusMap.h.
using o2::mch::StatusMap::const_iterator = std::map<ChannelCode, uint32_t>::const_iterator |
Definition at line 54 of file StatusMap.h.
using o2::mch::StatusMap::iterator = std::map<ChannelCode, uint32_t>::iterator |
Definition at line 53 of file StatusMap.h.
enum o2::mch::StatusMap::Status : uint32_t |
Enumerator | |
---|---|
kOK | |
kBadPedestal | |
kRejectList | |
kBadHV |
Definition at line 46 of file StatusMap.h.
void o2::mch::StatusMap::add | ( | gsl::span< const ChannelCode > | badchannels, |
uint32_t | mask | ||
) |
add all the badchannels referenced using ChannelCode to this status map, assigning them the corresponding mask.
runtime_error | if the mask is invalid |
Definition at line 50 of file StatusMap.cxx.
void o2::mch::StatusMap::add | ( | gsl::span< const DsChannelId > | badchannels, |
uint32_t | mask | ||
) |
add all the badchannels referenced using DsChannelId (aka readout channel id, aka (solar,group,index)) to this status map, assigning them the corresponding mask.
runtime_error | if the mask is invalid |
Definition at line 36 of file StatusMap.cxx.
void o2::mch::StatusMap::addDE | ( | uint16_t | badDE, |
uint32_t | mask | ||
) |
add all the channels of the badDE referenced using DE Id to this status map, assigning them the corresponding mask.
runtime_error | if the mask is invalid |
Definition at line 87 of file StatusMap.cxx.
add all the channels of the badDS referenced using DsIndex to this status map, assigning them the corresponding mask.
runtime_error | if the mask is invalid |
Definition at line 58 of file StatusMap.cxx.
void o2::mch::StatusMap::addDS | ( | raw::DsDetId | badDS, |
uint32_t | mask | ||
) |
add all the channels of the badDS referenced using DsDetId to this status map, assigning them the corresponding mask.
runtime_error | if the mask is invalid |
Definition at line 67 of file StatusMap.cxx.
|
inline |
Definition at line 56 of file StatusMap.h.
|
inline |
Definition at line 58 of file StatusMap.h.
|
inline |
clear the content of the statusmap (after clear the statusmap is thus empty)
Definition at line 96 of file StatusMap.h.
|
inline |
whether or not this statusmap contains no (potentially) bad channels
Definition at line 93 of file StatusMap.h.
|
inline |
Definition at line 57 of file StatusMap.h.
|
inline |
Definition at line 59 of file StatusMap.h.
uint32_t o2::mch::StatusMap::status | ( | const ChannelCode & | id | ) | const |
return the status of a given channel
Definition at line 106 of file StatusMap.cxx.