ATLAS Offline Software
Loading...
Searching...
No Matches
NSWEncoding.h File Reference
#include "xAODTrigL1Muon/NSWTPBits.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <numbers>
Include dependency graph for NSWEncoding.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  L1Muon
namespace  L1Muon::NSWEncoding
 Quantisation of NSW segment quantities into the Run 4 NSW-TP -> TGC-SL segment word (L1Muon interface document, EDMS 2377909, Section 4.2, Figure 13).

Functions

double L1Muon::NSWEncoding::wrapTwoPi (double phi)
 Map any angle to [0, 2pi).
uint16_t L1Muon::NSWEncoding::etaIndex (double eta, bool &inRange)
double L1Muon::NSWEncoding::etaValue (uint16_t idx)
uint16_t L1Muon::NSWEncoding::phiIndex (double phi)
double L1Muon::NSWEncoding::phiValue (uint16_t idx)
uint8_t L1Muon::NSWEncoding::dthetaIndex (double dtheta, double step, double range, bool &inRange)
double L1Muon::NSWEncoding::dthetaValue (uint8_t idx, double step)
uint16_t L1Muon::NSWEncoding::boardID (int sectorPhi, bool isSideC)

Variables

constexpr double L1Muon::NSWEncoding::kTwoPi = 2. * std::numbers::pi
constexpr unsigned L1Muon::NSWEncoding::kDthMagMax = 15
constexpr uint8_t L1Muon::NSWEncoding::kDthSignBit = 0x10
constexpr uint8_t L1Muon::NSWEncoding::kQualityMM = 3