ATLAS Offline Software
LUCID_Digit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LUCID_DIGIT_H
6 #define LUCID_DIGIT_H
7 
8 class LUCID_Digit {
9 
10  public:
11 
12  LUCID_Digit();
13  LUCID_Digit(const unsigned short tubeID,
14  const double npe,
15  const unsigned short npeGas,
16  const unsigned short npePmt,
17  const unsigned short qdc,
18  const unsigned short tdc,
19  const bool isHit);
20 
21  inline unsigned short getTubeID() const { return m_tubeID; }
22  inline double getNpe () const { return m_npe; }
23  inline unsigned short getNpeGas() const { return m_npeGas; }
24  inline unsigned short getNpePmt() const { return m_npePmt; }
25  inline unsigned short getQDC () const { return m_qdc; }
26  inline unsigned short getTDC () const { return m_tdc; }
27  inline bool isHit () const { return m_isHit; }
28 
29  inline bool isSideA() const { return (m_tubeID < 20); }
30  inline bool isSideC() const { return (m_tubeID >= 20); }
31 
32  private:
33 
34  unsigned short m_tubeID;
35  double m_npe;
36  unsigned short m_npeGas;
37  unsigned short m_npePmt;
38  unsigned short m_qdc;
39  unsigned short m_tdc;
40  bool m_isHit;
41 };
42 
43 #endif
LUCID_Digit::getNpe
double getNpe() const
Definition: LUCID_Digit.h:22
LUCID_Digit::getNpeGas
unsigned short getNpeGas() const
Definition: LUCID_Digit.h:23
LUCID_Digit::getTDC
unsigned short getTDC() const
Definition: LUCID_Digit.h:26
LUCID_Digit::getQDC
unsigned short getQDC() const
Definition: LUCID_Digit.h:25
LUCID_Digit
Definition: LUCID_Digit.h:8
LUCID_Digit::LUCID_Digit
LUCID_Digit()
Definition: LUCID_Digit.cxx:8
LUCID_Digit::m_npeGas
unsigned short m_npeGas
Definition: LUCID_Digit.h:36
LUCID_Digit::m_npe
double m_npe
Definition: LUCID_Digit.h:35
LUCID_Digit::m_tubeID
unsigned short m_tubeID
Definition: LUCID_Digit.h:34
LUCID_Digit::m_tdc
unsigned short m_tdc
Definition: LUCID_Digit.h:39
LUCID_Digit::isSideA
bool isSideA() const
Definition: LUCID_Digit.h:29
LUCID_Digit::getTubeID
unsigned short getTubeID() const
Definition: LUCID_Digit.h:21
LUCID_Digit::isSideC
bool isSideC() const
Definition: LUCID_Digit.h:30
LUCID_Digit::isHit
bool isHit() const
Definition: LUCID_Digit.h:27
LUCID_Digit::getNpePmt
unsigned short getNpePmt() const
Definition: LUCID_Digit.h:24
LUCID_Digit::m_npePmt
unsigned short m_npePmt
Definition: LUCID_Digit.h:37
LUCID_Digit::m_qdc
unsigned short m_qdc
Definition: LUCID_Digit.h:38
LUCID_Digit::m_isHit
bool m_isHit
Definition: LUCID_Digit.h:40