Belle II Software development
ARICHChannelMask.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 <TObject.h>
12#include <arich/dbobjects/ARICHModulesInfo.h>
13
14namespace Belle2 {
21
25 class ARICHChannelMask : public TObject {
26
27 public:
28
31
38 bool isActive(unsigned modId, unsigned chNo) const;
39
46 void setActiveCh(unsigned modId, unsigned chNo, bool active);
47
53 void setActiveHAPD(unsigned modId, bool active);
54
61 void setActiveAPD(unsigned modId, unsigned apdId, bool active);
62
66 void print() const;
67
68 private:
69
70 uint32_t m_DetectorMask[N_HAPDS * N_CHANNELS / 32 + 1] = {0xFFFFFFFF};
74 };
75
77} // namespace
The Class for ARICH HAPD channel mask.
void setActiveHAPD(unsigned modId, bool active)
Set active/non-active HAPD module.
ARICHChannelMask()
Default constructor.
void setActiveCh(unsigned modId, unsigned chNo, bool active)
Set active/non-active channel.
void setActiveAPD(unsigned modId, unsigned apdId, bool active)
Set active/non-active APD of HAPD module.
uint32_t m_DetectorMask[N_HAPDS *N_CHANNELS/32+1]
Detector Mask of active channels.
void print() const
dump content
bool isActive(unsigned modId, unsigned chNo) const
Check if channel is active.
ClassDef(ARICHChannelMask, 1)
ClassDef, must be the last term before the closing {}.
Abstract base class for different kinds of events.