9#include <top/dataobjects/TOPAsicMask.h>
19 if (
m_masks.empty())
return true;
21 unsigned asic = channel / 8;
22 unsigned bs = (moduleID - 1) * 4 + asic / 16;
23 if (bs >=
m_masks.size())
return true;
26 unsigned bit = asic % 16;
27 return ((word >> bit) & 0x1) == 0;
std::vector< unsigned short > m_masks
bit fields of masked ASIC's (one per BS)
bool isActive(int moduleID, unsigned channel) const
Returns true if channel is not explicitely labeled as masked.
Abstract base class for different kinds of events.