ATLAS Offline Software
RPCCandData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
5 
6 namespace L0Muon
7 {
8 
10  : ICandData(subdetectorId, sectorId, bcTag)
11 
12  {
13  // Initialize the z positions and coincidence type
14  for (int i = 0; i < 4; ++i)
15  {
16  m_zPos[i] = 0xffff;
17  }
18  m_coinType = 0;
19  }
20 
21  void RPCCandData::setZPos(float zPos, int index)
22  {
23  if (index < 0 || index > 3)
24  {
25  return;
26  }
29  }
31  {
34  }
35 
36  float RPCCandData::zPos(int index) const
37  {
38  if (index < 0 || index > 3)
39  {
40  return 0.0;
41  }
42  return (float)m_zPos[index] / (float)s_zPosBitRange * s_zPosRange;
43  }
45  {
47  }
48 
49 }
L0Muon::RPCCandData::RPCCandData
RPCCandData()=default
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:558
L0Muon::RPCCandData::s_coinTypeBitRange
static constexpr uint8_t s_coinTypeBitRange
3 bits for the coincidence type
Definition: RPCCandData.h:43
index
Definition: index.py:1
L0Muon::RPCCandData::s_coinTypeRange
static constexpr uint8_t s_coinTypeRange
range of the coincidence type value
Definition: RPCCandData.h:39
L0Muon::RPCCandData::s_zPosBitRange
static constexpr uint16_t s_zPosBitRange
12 bits for z position
Definition: RPCCandData.h:41
L0Muon::ICandData
Definition: ICandData.h:14
L0Muon::RPCCandData::setCoinType
void setCoinType(uint8_t coinType)
Definition: RPCCandData.cxx:30
L0Muon
Definition: L0MuonSmearingAlg.cxx:13
L0Muon::RPCCandData::setZPos
void setZPos(float zPos, int index)
Definition: RPCCandData.cxx:21
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
lumiFormat.i
int i
Definition: lumiFormat.py:85
RPCCandData.h
L0Muon::RPCCandData::s_zPosRange
static constexpr float s_zPosRange
range of the RPC hits z positions
Definition: RPCCandData.h:37
DeMoScan.index
string index
Definition: DeMoScan.py:362
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition: TgcByteStreamData.h:359
L0Muon::RPCCandData::m_zPos
uint16_t m_zPos[4]
Z positions of the RPC hits.
Definition: RPCCandData.h:50
L0Muon::RPCCandData::coinType
uint8_t coinType() const
Definition: RPCCandData.cxx:44
L0Muon::RPCCandData::zPos
float zPos(int index) const
Definition: RPCCandData.cxx:36
L0Muon::RPCCandData::m_coinType
uint8_t m_coinType
coincidence type
Definition: RPCCandData.h:52
python.LArMinBiasAlgConfig.float
float
Definition: LArMinBiasAlgConfig.py:65