Belle II Software  release-05-01-25
ARICHChannelMask.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Luka Santelj *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 #include <arich/dbobjects/ARICHModulesInfo.h>
15 
16 namespace Belle2 {
22 
27  class ARICHChannelMask : public TObject {
28 
29  public:
30 
33 
40  bool isActive(unsigned modId, unsigned chNo) const;
41 
48  void setActiveCh(unsigned modId, unsigned chNo, bool active);
49 
55  void setActiveHAPD(unsigned modId, bool active);
56 
63  void setActiveAPD(unsigned modId, unsigned apdId, bool active);
64 
68  void print() const;
69 
70  private:
71 
72  uint32_t m_DetectorMask[N_HAPDS * N_CHANNELS / 32 + 1] = {0xFFFFFFFF};
76  };
77 
79 } // namespace
Belle2::ARICHChannelMask::print
void print() const
dump content
Definition: ARICHChannelMask.cc:58
Belle2::ARICHChannelMask::setActiveHAPD
void setActiveHAPD(unsigned modId, bool active)
Set active/non-active HAPD module.
Definition: ARICHChannelMask.cc:34
Belle2::ARICHChannelMask::ClassDef
ClassDef(ARICHChannelMask, 1)
ClassDef, must be the last term before the closing {}.
Belle2::ARICHChannelMask::setActiveCh
void setActiveCh(unsigned modId, unsigned chNo, bool active)
Set active/non-active channel.
Definition: ARICHChannelMask.cc:24
Belle2::ARICHChannelMask::isActive
bool isActive(unsigned modId, unsigned chNo) const
Check if channel is active.
Definition: ARICHChannelMask.cc:49
Belle2::ARICHChannelMask::m_DetectorMask
uint32_t m_DetectorMask[N_HAPDS *N_CHANNELS/32+1]
Detector Mask of active channels.
Definition: ARICHChannelMask.h:80
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHChannelMask::setActiveAPD
void setActiveAPD(unsigned modId, unsigned apdId, bool active)
Set active/non-active APD of HAPD module.
Definition: ARICHChannelMask.cc:41
Belle2::ARICHChannelMask::ARICHChannelMask
ARICHChannelMask()
Default constructor.
Definition: ARICHChannelMask.cc:19