ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
13bool RpcSectorLogicContainer::findSector(const uint16_t sectorId, uint16_t side) const {
14 uint32_t sector = (1<<(sectorId-side*32));
15 return ( m_sectorList[side] & sector);
16}
17
18bool RpcSectorLogicContainer::setSector(uint16_t sectorId, uint16_t side) {
19 uint32_t sector = (1<<(sectorId-side*32));
20 if ( !(m_sectorList[side] & sector)) {
21 m_sectorList[side]=m_sectorList[side]|sector;
22 return true;
23 }
24 else {
25 return false;
26 }
27}
28
29
35
36
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
void setSectorList(const SectorList_t &sectorList)
SectorListElement_t SectorList_t[2]
const SectorListElement_t * sectorList() const
bool setSector(uint16_t sectorId, const uint16_t side=0)
Flag the sector as already decoded.
bool findSector(const uint16_t sectorId, const uint16_t side=0) const
Check if the sector has already been decoded.
RpcSectorLogicContainer()
Default constructor.