Belle II Software  release-05-01-25
ARICHDigit.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 #ifndef ARICHDIGIT_H
12 #define ARICHDIGIT_H
13 
14 // ROOT
15 #include <framework/dataobjects/DigitBase.h>
16 #include <stdint.h>
17 
18 namespace Belle2 {
25 
29  class ARICHDigit : public DigitBase {
30 
31  public:
32 
34  ARICHDigit():
35  m_moduleID(-1),
36  m_channelID(-1),
38  {
40  }
41 
43 
48  ARICHDigit(int moduleID, int channelID, uint8_t bitmap)
49  {
50  m_moduleID = moduleID;
51  m_channelID = channelID;
52  m_bitmap = bitmap;
53  }
54 
57  {
59  }
60 
62  int getModuleID() const { return m_moduleID; }
63 
65  int getChannelID() const { return m_channelID; }
66 
68  uint8_t getBitmap() const { return m_bitmap; }
69 
75  unsigned int getUniqueChannelID() const override {return m_channelID + (m_moduleID << 16);}
76 
85  DigitBase::EAppendStatus addBGDigit(const DigitBase* bg) override;
86 
87  /*
89  void setModuleID(int moduleID) { m_moduleID = moduleID; }
90 
92  void setChannelID(int channelID) { m_channelID = channelID; }
93 
95  void setGlobalTime(double globalTime) { m_globalTime = globalTime; }
96  */
97  private:
98 
99  int m_moduleID;
100  int m_channelID;
101  uint8_t m_bitmap;
104  };
105 
107 } // end namespace Belle2
108 
109 #endif
Belle2::DigitBase::EAppendStatus
EAppendStatus
Enum for return state of addBGDigit function.
Definition: DigitBase.h:42
Belle2::ARICHDigit::m_channelID
int m_channelID
ID number of hit channel.
Definition: ARICHDigit.h:108
Belle2::ARICHDigit
ARICHDigit class for storing photon hit information.
Definition: ARICHDigit.h:37
Belle2::ARICHDigit::ClassDefOverride
ClassDefOverride(ARICHDigit, 3)
the class title
Belle2::ARICHDigit::getModuleID
int getModuleID() const
Get ID number of module that registered hit.
Definition: ARICHDigit.h:70
Belle2::ARICHDigit::getChannelID
int getChannelID() const
Get ID number of hit channel.
Definition: ARICHDigit.h:73
Belle2::ARICHDigit::~ARICHDigit
~ARICHDigit()
Destructor.
Definition: ARICHDigit.h:64
Belle2::ARICHDigit::getBitmap
uint8_t getBitmap() const
Get global time of hit.
Definition: ARICHDigit.h:76
Belle2::ARICHDigit::getUniqueChannelID
unsigned int getUniqueChannelID() const override
Implementation of the base class function.
Definition: ARICHDigit.h:83
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHDigit::m_moduleID
int m_moduleID
ID number of module that registered hit.
Definition: ARICHDigit.h:107
Belle2::ARICHDigit::m_bitmap
uint8_t m_bitmap
bitmap
Definition: ARICHDigit.h:109
Belle2::ARICHDigit::addBGDigit
DigitBase::EAppendStatus addBGDigit(const DigitBase *bg) override
Implementation of the base class function.
Definition: ARICHDigit.cc:16
Belle2::ARICHDigit::ARICHDigit
ARICHDigit()
Default constructor for ROOT IO.
Definition: ARICHDigit.h:42
Belle2::DigitBase
A common base for subdetector Digits.
Definition: DigitBase.h:36