ATLAS Offline Software
MuonSpectrometer
MuonDigitContainer
src
MdtDigit.cxx
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.cxx
6
7
#include "
MuonDigitContainer/MdtDigit.h
"
8
9
//**********************************************************************
10
// Local definitions
11
//**********************************************************************
12
namespace
{
13
14
// Range of TDC.
15
constexpr
int
tdcmin
= 0;
16
constexpr
int
tdcmax
= 4096;
17
18
}
19
//**********************************************************************
20
// Member functions.
21
//**********************************************************************
22
23
// Full constructor from Identifier.
24
MdtDigit::MdtDigit
(
const
Identifier
&
id
,
int
tdc)
25
:
MuonDigit
(
id
), m_tdc(tdc), m_adc() { }
26
27
//**********************************************************************
28
29
// Full constructor from Identifier for the combined measurement mode
30
31
MdtDigit::MdtDigit
(
const
Identifier
&
id
,
int
tdc,
int
adc
)
32
:
MuonDigit
(
id
), m_tdc(tdc), m_adc(
adc
) { }
33
34
//**********************************************************************
35
36
// Full constructor including masked flag
37
38
MdtDigit::MdtDigit
(
const
Identifier
&
id
,
int
tdc,
int
adc
,
bool
isMasked)
39
:
MuonDigit
(
id
), m_tdc(tdc), m_adc(
adc
), m_isMasked(isMasked) { }
40
41
//**********************************************************************
42
43
// Validity check.
44
45
bool
MdtDigit::is_valid
(
const
MdtIdHelper
* mdtHelper)
const
{
46
return
( (
m_tdc
>=
tdcmin
&&
m_tdc
<=
tdcmax
) && (mdtHelper->
valid
(
m_muonId
)));
47
}
48
TBH6ByteStream-Monitor-EventStorage.tdcmin
tdcmin
Definition:
TBH6ByteStream-Monitor-EventStorage.py:143
MdtDigit::is_valid
bool is_valid(const MdtIdHelper *mdtHelper) const
Definition:
MdtDigit.cxx:45
MdtDigit.h
MuonDigit
Definition:
MuonDigit.h:16
TBH6ByteStream-Monitor-EventStorage.tdcmax
tdcmax
Definition:
TBH6ByteStream-Monitor-EventStorage.py:144
Identifier
Definition:
DetectorDescription/Identifier/Identifier/Identifier.h:32
MdtIdHelper
Definition:
MdtIdHelper.h:61
MdtDigit::m_tdc
int m_tdc
Definition:
MdtDigit.h:24
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:191
MdtIdHelper::valid
bool valid(const Identifier &id) const
Public validation of levels.
Definition:
MdtIdHelper.cxx:531
ReadFloatFromCool.adc
adc
Definition:
ReadFloatFromCool.py:48
MdtDigit::MdtDigit
MdtDigit()=default
MuonDigit::m_muonId
Identifier m_muonId
Definition:
MuonDigit.h:21
Generated on Sun Jun 30 2024 21:21:23 for ATLAS Offline Software by
1.8.18