ATLAS Offline Software
Loading...
Searching...
No Matches
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
19class MdtDigit : public MuonDigit {
20 public:
21 // Default constructor.
22 MdtDigit() = default;
23 // Full constructor for combined measurement mode tdc+adc
24 MdtDigit(const Identifier& id, int16_t tdc, int16_t adc, bool isMasked);
25 // Return the TDC.
26 int16_t tdc() const { return m_tdc; }
27 // Return the ADC
28 int16_t adc() const { return m_adc; }
30 bool isMasked() const { return m_isMasked; }
32 void setTdc(const int16_t tdc);
34 void setAdc(const int16_t adc);
35
36 private:
37 // TDC value.
38 int16_t m_tdc{0};
39 // ADC value for combined measurement mode
40 int16_t m_adc{0};
42 bool m_isMasked{false};
43
44
45};
46
47#endif
int16_t adc() const
Definition MdtDigit.h:28
bool isMasked() const
Return whether the digit is masked or not.
Definition MdtDigit.h:30
MdtDigit()=default
int16_t m_tdc
Definition MdtDigit.h:38
void setTdc(const int16_t tdc)
Overwrites a new tdc value.
Definition MdtDigit.cxx:12
void setAdc(const int16_t adc)
Overwrites a new adc value.
Definition MdtDigit.cxx:13
bool m_isMasked
Masked lag.
Definition MdtDigit.h:42
int16_t m_adc
Definition MdtDigit.h:40
int16_t tdc() const
Definition MdtDigit.h:26
MuonDigit()=default