ATLAS Offline Software
MdtDigit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // MdtDigit.h
6 
7 #ifndef MdtDigitUH
8 #define MdtDigitUH
9 
10 // David Adams
11 // November 2001
12 //
13 // MDT digitization. Holds a channel ID and a TDC value.
14 
15 #include <iosfwd>
18 
19 class MdtDigit : public MuonDigit {
20 
21 private: // data
22 
23 // TDC value.
24  int m_tdc{0};
25 
26  // ADC value for combined measurement mode
27  int m_adc{0};
28 
29  // Masked digit flag
30  bool m_isMasked{false};
31 
32 public: // functions
33 
34  // Default constructor.
35  MdtDigit() = default;
36 
37  // Full constructor --- From Identifier.
38  MdtDigit(const Identifier& id, int tdc);
39 
40  // Full constructor for combined measurement mode tdc+adc
41  MdtDigit(const Identifier& id, int tdc, int adc);
42 
43  // Full constructor for masked digits
44  MdtDigit(const Identifier& id, int tdc, int adc, bool isMasked);
45 
46  // Is this a valid digit?
47  bool is_valid(const MdtIdHelper * mdtHelper) const;
48 
49  // Return the TDC.
50  int tdc() const { return m_tdc; }
51 
52  // Return the ADC
53  int adc() const { return m_adc; }
54 
55  // Return the isMasked flag
56  bool is_masked() const {return m_isMasked;}
57 
58 };
59 
60 #endif
MdtDigit::m_isMasked
bool m_isMasked
Definition: MdtDigit.h:30
MdtDigit
Definition: MdtDigit.h:19
MdtDigit::tdc
int tdc() const
Definition: MdtDigit.h:50
MdtDigit::is_valid
bool is_valid(const MdtIdHelper *mdtHelper) const
Definition: MdtDigit.cxx:45
MuonDigit
Definition: MuonDigit.h:16
MdtDigit::is_masked
bool is_masked() const
Definition: MdtDigit.h:56
MuonDigit.h
MdtDigit::m_adc
int m_adc
Definition: MdtDigit.h:27
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
MdtIdHelper
Definition: MdtIdHelper.h:61
MdtIdHelper.h
MdtDigit::m_tdc
int m_tdc
Definition: MdtDigit.h:24
MdtDigit::MdtDigit
MdtDigit()=default
MdtDigit::adc
int adc() const
Definition: MdtDigit.h:53