Belle II Software development
ARICHDigit.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#ifndef ARICHDIGIT_H
10#define ARICHDIGIT_H
11
12// ROOT
13#include <framework/dataobjects/DigitBase.h>
14#include <stdint.h>
15
16namespace Belle2 {
24
27 class ARICHDigit : public DigitBase {
28
29 public:
30
33 m_moduleID(-1),
34 m_channelID(-1),
35 m_bitmap(0)
36 {
38 }
39
41
46 ARICHDigit(int moduleID, int channelID, uint8_t bitmap)
47 {
48 m_moduleID = moduleID;
49 m_channelID = channelID;
50 m_bitmap = bitmap;
51 }
52
55 {
57 }
58
60 int getModuleID() const { return m_moduleID; }
61
63 int getChannelID() const { return m_channelID; }
64
66 uint8_t getBitmap() const { return m_bitmap; }
67
73 unsigned int getUniqueChannelID() const override {return m_channelID + (m_moduleID << 16);}
74
84
85 /*
87 void setModuleID(int moduleID) { m_moduleID = moduleID; }
88
90 void setChannelID(int channelID) { m_channelID = channelID; }
91
93 void setGlobalTime(double globalTime) { m_globalTime = globalTime; }
94 */
95 private:
96
99 uint8_t m_bitmap;
102 };
103
105} // end namespace Belle2
106
107#endif
ARICHDigit class for storing photon hit information.
Definition: ARICHDigit.h:27
DigitBase::EAppendStatus addBGDigit(const DigitBase *bg) override
Implementation of the base class function.
Definition: ARICHDigit.cc:14
int m_channelID
ID number of hit channel.
Definition: ARICHDigit.h:98
uint8_t m_bitmap
bitmap
Definition: ARICHDigit.h:99
int m_moduleID
ID number of module that registered hit.
Definition: ARICHDigit.h:97
ARICHDigit(int moduleID, int channelID, uint8_t bitmap)
Useful constructor.
Definition: ARICHDigit.h:46
ARICHDigit()
Default constructor for ROOT IO.
Definition: ARICHDigit.h:32
int getModuleID() const
Get ID number of module that registered hit.
Definition: ARICHDigit.h:60
unsigned int getUniqueChannelID() const override
Implementation of the base class function.
Definition: ARICHDigit.h:73
uint8_t getBitmap() const
Get global time of hit.
Definition: ARICHDigit.h:66
int getChannelID() const
Get ID number of hit channel.
Definition: ARICHDigit.h:63
~ARICHDigit()
Destructor.
Definition: ARICHDigit.h:54
ClassDefOverride(ARICHDigit, 3)
the class title
A common base for subdetector Digits.
Definition: DigitBase.h:26
EAppendStatus
Enum for return state of addBGDigit function.
Definition: DigitBase.h:32
Abstract base class for different kinds of events.