ATLAS Offline Software
RpcSectorLogicContainer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
9 {
10  for (int i=0 ; i<2 ; ++i) m_sectorList[i]=0;
11 }
12 
14  uint32_t sector = (1<<(sectorId-side*32));
15  return ( m_sectorList[side] & sector);
16 }
17 
19  uint32_t sector = (1<<(sectorId-side*32));
20  if ( !(m_sectorList[side] & sector)) {
22  return true;
23  }
24  else {
25  return false;
26  }
27 }
28 
29 
32 {
33  return m_sectorList;
34 }
35 
36 
37 void RpcSectorLogicContainer::setSectorList (const SectorList_t& sectorList)
38 {
39  m_sectorList[0] = sectorList[0];
40  m_sectorList[1] = sectorList[1];
41 }
RpcSectorLogicContainer.h
RpcSectorLogicContainer::sectorList
const SectorListElement_t * sectorList() const
Definition: RpcSectorLogicContainer.cxx:31
RpcSectorLogic
Definition: RpcSectorLogic.h:20
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
RpcSectorLogicContainer::m_sectorList
SectorList_t m_sectorList
Definition: RpcSectorLogicContainer.h:44
TRT::Hit::side
@ side
Definition: HitInfo.h:83
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
lumiFormat.i
int i
Definition: lumiFormat.py:85
RpcSectorLogicContainer::RpcSectorLogicContainer
RpcSectorLogicContainer()
Default constructor.
Definition: RpcSectorLogicContainer.cxx:7
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
RpcSectorLogicContainer::SectorListElement_t
uint32_t SectorListElement_t
Definition: RpcSectorLogicContainer.h:23
RpcSectorLogicContainer::setSectorList
void setSectorList(const SectorList_t &sectorList)
Definition: RpcSectorLogicContainer.cxx:37
RpcSectorLogicContainer::findSector
bool findSector(const uint16_t sectorId, const uint16_t side=0) const
Check if the sector has already been decoded.
Definition: RpcSectorLogicContainer.cxx:13
RpcSectorLogicContainer::setSector
bool setSector(uint16_t sectorId, const uint16_t side=0)
Flag the sector as already decoded.
Definition: RpcSectorLogicContainer.cxx:18