ATLAS Offline Software
Loading...
Searching...
No Matches
Event/xAOD/xAODTrigL1Muon/xAODTrigL1Muon/NSWTPBits.h
Go to the documentation of this file.
1#ifndef XAODTRIGL1MUON_NSWTPBITS_H
2#define XAODTRIGL1MUON_NSWTPBITS_H
3
4#include <cstdint>
5#include <numbers>
6
7namespace L0Muon {
8 namespace NSWTPBits {
9 // Shifts and masks for Run 4 NSW-TP segment packed words
10
13 constexpr uint32_t RUN4_NSWTP_ETA_SHIFT = 0;
14 constexpr uint32_t RUN4_NSWTP_ETA_MASK = 0x3FFF; // 14 bits
15 constexpr float ETA_MAX_RAW = 16383.0f; // 2^14 - 1
16 constexpr float ETA_MIN = -2.7f;
17 constexpr float ETA_MAX = 2.7f;
18
21 constexpr uint32_t RUN4_NSWTP_PHI_SHIFT = 14;
22 constexpr uint32_t RUN4_NSWTP_PHI_MASK = 0x3FF; // 10 bits
23 constexpr float PHI_MAX_RAW = 1023.0f; // 2^10 - 1
24 constexpr float PHI_MAX = static_cast<float>(std::numbers::pi * 2.0);
25
29 constexpr uint32_t RUN4_NSWTP_DTH_SHIFT = 24;
30 constexpr uint32_t RUN4_NSWTP_DTH_MASK = 0x1F; // 5 bits
31
35 constexpr uint32_t RUN4_NSWTP_QUAL_SHIFT = 29;
36 constexpr uint32_t RUN4_NSWTP_QUAL_MASK = 0x7; // 3 bits
37 }
38}
39
40#endif // XAODTRIGL1MUON_NSWTPBITS_H
constexpr uint32_t RUN4_NSWTP_DTH_SHIFT
Angular deviation of the locally defined segment from the infinite momentum track.
constexpr uint32_t RUN4_NSWTP_PHI_SHIFT
Segment position in phi.
constexpr uint32_t RUN4_NSWTP_ETA_SHIFT
Segment position in eta.
constexpr uint32_t RUN4_NSWTP_QUAL_SHIFT
Valid flag and detector information.