Belle II Software development
TOPAsicMask.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12#include <vector>
13
14namespace Belle2 {
24
25 public:
26
31 {}
32
37 void set(const std::vector<unsigned short>& masks) {m_masks = masks;}
38
43 const std::vector<unsigned short>& get() const {return m_masks;}
44
50 bool isActive(int moduleID, unsigned channel) const;
51
52 private:
53
54 std::vector<unsigned short> m_masks;
58 };
59
60
62} // end namespace Belle2
Defines interface for accessing relations of objects in StoreArray.
Class to store bit fields of masked ASICs, as reported in raw data.
Definition: TOPAsicMask.h:23
ClassDef(TOPAsicMask, 1)
ClassDef.
TOPAsicMask()
Default constructor.
Definition: TOPAsicMask.h:30
const std::vector< unsigned short > & get() const
Returns bit fields of masked ASIC's.
Definition: TOPAsicMask.h:43
std::vector< unsigned short > m_masks
bit fields of masked ASIC's (one per BS)
Definition: TOPAsicMask.h:54
void set(const std::vector< unsigned short > &masks)
Sets bit fields of masked ASIC's.
Definition: TOPAsicMask.h:37
bool isActive(int moduleID, unsigned channel) const
Returns true if channel is not explicitely labeled as masked.
Definition: TOPAsicMask.cc:17
Abstract base class for different kinds of events.