ATLAS Offline Software
Loading...
Searching...
No Matches
IL1CandData_v1.h
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4*/
5#ifndef XAODTRIGL1MUON_VERSION_IL1CANDDATA_V1_H
6#define XAODTRIGL1MUON_VERSION_IL1CANDDATA_V1_H
7
8#include <cstdint>
9#include <cmath>
11
12namespace xAOD {
13
16
18 {
19 public:
21 IL1CandData_v1() = default;
22 virtual ~IL1CandData_v1() = default;
23
24
34
49 uint16_t bcTag() const;
64 uint8_t coinType() const;
65
70 uint16_t l1Eta() const;
75 uint16_t l1Phi() const;
80 uint8_t l1Pt() const;
85 uint8_t tcId() const;
86
91 void setL1SubdetectorId(uint16_t subdetectorId);
96 void setL1SectorId(uint16_t sectorId);
106 void setL1Eta(float eta);
111 void setL1Phi(float phi);
116 void setL1Pt(float pt);
126 void setL1CandCharge(uint8_t candCharge);
136 void setTcId(uint8_t value);
137
139
145
146 void initialize(uint16_t subdetectorId, uint16_t sectorId, uint16_t bcTag);
147
148
149 static constexpr float etaRange() { return s_etaRange; }
150 static constexpr uint16_t etaBitRange() { return s_etaBitRange; }
151 static constexpr float phiRange() { return s_phiRange; }
152 static constexpr uint16_t phiBitRange() { return s_phiBitRange; }
153 static constexpr float ptResolution() { return s_ptResolution; }
154 static constexpr float ptRange() { return s_ptRange; }
155 static constexpr uint8_t ptBitRange() { return s_ptBitRange; }
156 static constexpr uint8_t coinTypeBitMask() { return COINTYPE_BIT_MASK; }
157 static constexpr uint8_t tcIdBitMask() { return TC_ID_BIT_MASK; }
158
159 protected:
161 static constexpr float s_etaRange = 2.7;
162 static constexpr float s_phiRange = 2.0 * M_PI;
163 static constexpr float s_ptResolution = 0.5F;
164
167 static constexpr uint16_t s_etaBitRange = 0x3fff;
168 static constexpr uint16_t s_phiBitRange = 0x1ff;
169 static constexpr uint8_t s_ptBitRange = 0xff;
170 static constexpr float s_ptRange =
171 s_ptResolution * static_cast<float>(s_ptBitRange);
172
174 static constexpr uint8_t COINTYPE_BIT_MASK = 0x7;
176 static constexpr uint8_t TC_ID_BIT_MASK = 0x7;
177 };
178
179} // namespace xAOD
180
181#include "xAODCore/BaseInfo.h"
183
184#endif // XAODTRIGL1MUON_VERSION_IL1CANDDATA_V1_H
#define M_PI
Scalar eta() const
pseudorapidity method
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
base class providing a common interface with shared variables for the L0 muon candidates from RPC/TGC...
IL1CandData_v1()=default
Default constructor.
static constexpr uint8_t s_ptBitRange
static constexpr float ptResolution()
static constexpr uint16_t phiBitRange()
void setL1Pt(float pt)
Set the candidate pT.
static constexpr float s_etaRange
Variables range.
void setCoinType(uint8_t coinType)
Set the coincidence type.
uint8_t coinType() const
Retrieve the coincidence type.
BC_ID
Bunch crossing identifier.
void setTcId(uint8_t value)
Set the trigger-candidate identifier.
static constexpr float etaRange()
uint8_t l1Threshold() const
Retrieve the threshold.
virtual ~IL1CandData_v1()=default
static constexpr float s_ptRange
uint8_t l1CandCharge() const
Retrieve the candidate charge.
static constexpr uint16_t s_etaBitRange
Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt.
static constexpr float ptRange()
void setL1Eta(float eta)
Set the eta.
static constexpr uint8_t ptBitRange()
void setL1Threshold(uint8_t threshold)
Set the threshold.
uint16_t l1SectorId() const
Retrieve the sector id.
static constexpr uint16_t etaBitRange()
uint16_t bcTag() const
Retrieve the bunch crossing tag.
static constexpr uint8_t TC_ID_BIT_MASK
Bit mask for the trigger-candidate identifier.
uint8_t l1Pt() const
Retrieve the encoded candidate pT.
static constexpr uint8_t COINTYPE_BIT_MASK
Bit mask for Coincidence Types.
static constexpr uint8_t coinTypeBitMask()
void setL1Phi(float phi)
Set the phi.
uint16_t l1Eta() const
Retrieve the eta.
uint8_t tcId() const
Retrieve the trigger-candidate identifier.
void setL1CandCharge(uint8_t candCharge)
Set the candidate charge.
void setL1SectorId(uint16_t sectorId)
Set the sector id.
void setBcTag(uint16_t bcTag)
Set the bunch crossing tag.
uint16_t l1Phi() const
Retrieve the phi.
static constexpr float s_ptResolution
GeV per pT code.
static constexpr uint16_t s_phiBitRange
uint16_t l1SubdetectorId() const
Retrieve the sub detector id.
void setL1SubdetectorId(uint16_t subdetectorId)
Set the sub detector id.
static constexpr float phiRange()
static constexpr uint8_t tcIdBitMask()
static constexpr float s_phiRange
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setRcore setEtHad setFside pt
setWord1 uint16_t
void initialize()