Project
Loading...
Searching...
No Matches
o2::mch::StatusMap Class Reference

#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
 

Detailed Description

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 :

  • kBadPedestal : the list generated at each pedestal run at Pt2
  • kRejectList : a (manual) list
  • kBadHV : the list derived from the DCS HV values

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.

Member Typedef Documentation

◆ const_iterator

using o2::mch::StatusMap::const_iterator = std::map<ChannelCode, uint32_t>::const_iterator

Definition at line 54 of file StatusMap.h.

◆ iterator

using o2::mch::StatusMap::iterator = std::map<ChannelCode, uint32_t>::iterator

Definition at line 53 of file StatusMap.h.

Member Enumeration Documentation

◆ Status

enum o2::mch::StatusMap::Status : uint32_t
Enumerator
kOK 
kBadPedestal 
kRejectList 
kBadHV 

Definition at line 46 of file StatusMap.h.

Member Function Documentation

◆ add() [1/2]

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.

Exceptions
runtime_errorif the mask is invalid

Definition at line 50 of file StatusMap.cxx.

◆ add() [2/2]

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.

Exceptions
runtime_errorif the mask is invalid

Definition at line 36 of file StatusMap.cxx.

◆ addDE()

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.

Exceptions
runtime_errorif the mask is invalid

Definition at line 87 of file StatusMap.cxx.

◆ addDS() [1/2]

void o2::mch::StatusMap::addDS ( DsIndex  badDS,
uint32_t  mask 
)

add all the channels of the badDS referenced using DsIndex to this status map, assigning them the corresponding mask.

Exceptions
runtime_errorif the mask is invalid

Definition at line 58 of file StatusMap.cxx.

◆ addDS() [2/2]

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.

Exceptions
runtime_errorif the mask is invalid

Definition at line 67 of file StatusMap.cxx.

◆ begin() [1/2]

iterator o2::mch::StatusMap::begin ( )
inline

Definition at line 56 of file StatusMap.h.

◆ begin() [2/2]

const_iterator o2::mch::StatusMap::begin ( ) const
inline

Definition at line 58 of file StatusMap.h.

◆ clear()

void o2::mch::StatusMap::clear ( )
inline

clear the content of the statusmap (after clear the statusmap is thus empty)

Definition at line 96 of file StatusMap.h.

◆ empty()

bool o2::mch::StatusMap::empty ( ) const
inline

whether or not this statusmap contains no (potentially) bad channels

Definition at line 93 of file StatusMap.h.

◆ end() [1/2]

iterator o2::mch::StatusMap::end ( )
inline

Definition at line 57 of file StatusMap.h.

◆ end() [2/2]

const_iterator o2::mch::StatusMap::end ( ) const
inline

Definition at line 59 of file StatusMap.h.

◆ status()

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.


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