ATLAS Offline Software
Loading...
Searching...
No Matches
ICandData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace L0Muon
8{
9
13 {
15 m_eta = (uint16_t)(eta / s_etaRange * (float)s_etaBitRange);
16 }
18 {
19 m_phi = (uint16_t)(phi / s_phiRange * (float)s_phiBitRange);
20 }
21 void ICandData::setPt(float pt)
22 {
23 m_pt = (uint16_t)(pt / s_ptRange * (float)s_ptBitRange);
24 }
25
27 float ICandData::eta() const
28 {
29 return (float)m_eta / (float)s_etaBitRange * s_etaRange;
30 }
31 float ICandData::phi() const
32 {
33 return (float)m_phi / (float)s_phiBitRange * s_phiRange;
34 }
35 float ICandData::pt() const
36 {
37 return (float)m_pt / (float)s_ptBitRange * s_ptRange;
38 }
39
40} // namespace L0Muon
uint16_t m_eta
theta coordinate of the candidate
Definition ICandData.h:70
static constexpr float s_phiRange
Definition ICandData.h:54
static constexpr float s_etaRange
variables range
Definition ICandData.h:53
static constexpr uint16_t s_phiBitRange
Definition ICandData.h:60
float pt() const
Definition ICandData.cxx:35
static constexpr float s_ptRange
Definition ICandData.h:55
uint16_t m_pt
pt of the candidate
Definition ICandData.h:74
void setEta(float eta)
Set functions of the modifiable parameters.
Definition ICandData.cxx:12
float phi() const
Definition ICandData.cxx:31
void setPhi(float phi)
Definition ICandData.cxx:17
static constexpr uint16_t s_etaBitRange
variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt
Definition ICandData.h:59
float eta() const
get the kinematic parameters
Definition ICandData.cxx:27
uint16_t m_phi
phi coordinate of the candidate
Definition ICandData.h:72
void setPt(float pt)
Definition ICandData.cxx:21
static constexpr uint16_t s_ptBitRange
Definition ICandData.h:61