ATLAS Offline Software
Loading...
Searching...
No Matches
MuCTPIRoI.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Local include(s):
7
8// TrigT1 include(s):
11
12namespace ROIB {
13
20 MuCTPIRoI::MuCTPIRoI( uint32_t RoIWord )
21 : m_roIWord( RoIWord ) {}
22
29
35 uint32_t MuCTPIRoI::roIWord() const {
36 return m_roIWord;
37 }
38
56
70
79
91
104
115 uint16_t MuCTPIRoI::getRoiNumber() const {
116
117 uint16_t roi = 0;
118 switch ( getSectorLocation() ) {
121 break;
124 break;
127 break;
128 default:
129 roi = 99;
130 break;
131 }
132
133 return roi;
134 }
135
153 uint16_t MuCTPIRoI::getOverlapBits() const {
154
155 uint16_t ol = 0;
156 switch( getSectorLocation() ) {
159 break;
161 ol = 0;
162 break;
165 break;
166 default:
167 ol = 99;
168 break;
169 }
170
171 return ol;
172 }
173
190
200 uint16_t MuCTPIRoI::getSectorID() const {
201
204 } else {
206 }
207 return 0;
208 }
209
221
222} // namespace ROIB
SectorLocation
Enumeration defining the different sources for the muon candidates.
Definition MuCTPI_RDO.h:45
static const uint32_t ROI_CAND_SECTOR_ADDRESS_SHIFT
Position of the sector address in the RoI word.
Definition MuCTPIRoI.h:73
uint16_t getSectorOverflow() const
Method telling whether there were more than two candidates in this candidate's sector.
Definition MuCTPIRoI.cxx:87
uint16_t getSectorID() const
Method returning the number of the trigger sector producing the candidate.
MuCTPI_RDO::SectorLocation getSectorLocation() const
Method returning the name of the system that produced the RoI.
uint16_t getRoiOverflow() const
Method telling whether there were more than one candidates in this candidate's RoI.
uint16_t getHemisphere() const
Method returning the hemisphere of the candidate.
Definition MuCTPIRoI.cxx:76
uint16_t getCandidateIsHighestPt() const
Method telling whether the candidate had the highest pT in the sector.
uint32_t m_roIWord
The RoI word itself.
Definition MuCTPIRoI.h:79
static const uint32_t ROI_CAND_HIGHEST_PT_SHIFT
Position of the "highest p<sub>T</sub> bit" in the RoI word.
Definition MuCTPIRoI.h:75
uint32_t roIWord() const
Method returning the RoI word.
Definition MuCTPIRoI.cxx:35
uint16_t getRoiNumber() const
Method returning the RoI in which the candidate was detected.
unsigned int pt() const
Method returning the pT of the RoI candidate.
Definition MuCTPIRoI.cxx:52
MuCTPIRoI()
Default constructor.
Definition MuCTPIRoI.cxx:27
uint16_t getOverlapBits() const
Method returning the "overlap bits" of the candidate.
unsigned int getSectorAddress() const
Method returning the "electronics address" of the candidate.
Definition MuCTPIRoI.cxx:66
static constexpr uint32_t FORWARD_ADDRESS_MASK
Bit in the candidate's address turned on for forward candidates.
Definition MuCTPI_Bits.h:89
static constexpr uint32_t SECTOR_HEMISPHERE_MASK
Mask for the bit showing which hemisphere the candidate came from.(1: positive; 0: negative)
Definition MuCTPI_Bits.h:80
static constexpr uint32_t CAND_HIGHEST_PT_MASK
gone in v2 Mask for extracting the bit from the data word showing whether the candidate had the highe...
static constexpr uint32_t CAND_OVERFLOW_SHIFT
Definition MuCTPI_Bits.h:28
static constexpr uint32_t ENDCAP_OL_MASK
Mask for extracting the overlap bits for endcap candidates from the data words.
Definition MuCTPI_Bits.h:56
static constexpr uint32_t BARREL_SECTORID_MASK
Mask for extracting the sector ID for barrel candidates from the data word.
static constexpr uint32_t ENDCAP_ROI_MASK
Mask for extracting the RoI for endcap candidates from the data words.
Definition MuCTPI_Bits.h:41
static constexpr uint32_t BARREL_ROI_MASK
new in v2
Definition MuCTPI_Bits.h:39
static constexpr uint32_t ENDCAP_OL_SHIFT
Position of the overlap bits in endcap data words.
Definition MuCTPI_Bits.h:59
static constexpr uint32_t BARREL_OL_MASK
Mask for extracting the overlap bits for barrel candidates from the data words.
Definition MuCTPI_Bits.h:50
static constexpr uint32_t ROI_OVERFLOW_MASK
Mask for the bit showing if more than one muon candidates were in the sector RoI.
Definition MuCTPI_Bits.h:31
static constexpr uint32_t CAND_PT_MASK
Definition MuCTPI_Bits.h:63
static constexpr uint32_t ENDCAP_SECTORID_MASK
Mask for extracting the sector ID for endcap candidates from the data word.
static constexpr uint32_t BARREL_OL_SHIFT
Position of the overlap bits in barrel data words.
Definition MuCTPI_Bits.h:54
static constexpr uint32_t ENDCAP_ADDRESS_MASK
Bit in the candidate's address turned on for endcap candidates.
Definition MuCTPI_Bits.h:87
static constexpr uint32_t CAND_PT_SHIFT
Definition MuCTPI_Bits.h:66
static constexpr uint32_t ROI_OVERFLOW_SHIFT
Definition MuCTPI_Bits.h:34
static constexpr uint32_t CAND_SECTOR_ADDRESS_MASK
Definition MuCTPI_Bits.h:78
static constexpr uint32_t FORWARD_ROI_MASK
Mask for extracting the RoI for forward candidates from the data words.
Definition MuCTPI_Bits.h:43
static constexpr uint32_t CAND_OVERFLOW_MASK
Mask for the bit showing if more than two muon candidates were in the trigger sector.
Definition MuCTPI_Bits.h:25
static constexpr uint32_t ROI_SHIFT
Definition MuCTPI_Bits.h:46
Namespace of the LVL1 RoIB simulation.