Belle II Software development
ARICHHapdMask.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#include <TObject.h>
11
12namespace Belle2 {
21 class ARICHHapdMask: public TObject {
22 public:
26 enum {c_Size = 54,
27 };
28
33 {
34 for (unsigned i = 0; i < c_Size; i++)
35 m_mask[i] = 0;
36 };
37
41 explicit ARICHHapdMask(unsigned char* mask)
42 {
43 for (unsigned i = 0; i < c_Size; i++)
44 m_mask[i] = mask[i];
45 };
46
51
52
53 private:
54 unsigned char m_mask[c_Size];
57 };
59} // end namespace Belle2
60
ARICH HAPD Sensor Mask: map of operational/nonoperational HAPDs : one bit per sensor.
Definition: ARICHHapdMask.h:21
ClassDef(ARICHHapdMask, 1)
ClassDef.
ARICHHapdMask()
Default constructor.
Definition: ARICHHapdMask.h:32
unsigned char m_mask[c_Size]
mask 1 bit per sensor
Definition: ARICHHapdMask.h:54
@ c_Size
storage size in bytes 420 sensors / 8 bits
Definition: ARICHHapdMask.h:26
~ARICHHapdMask()
Destructor.
Definition: ARICHHapdMask.h:50
ARICHHapdMask(unsigned char *mask)
Constructor.
Definition: ARICHHapdMask.h:41
Abstract base class for different kinds of events.