ATLAS Offline Software
Loading...
Searching...
No Matches
ICandData_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 XAODL0MUONCAND_VERSION_ICANDDATA_V1_H
6#define XAODL0MUONCAND_VERSION_ICANDDATA_V1_H
7
8#include <cstdint>
9#include <cmath>
11
12namespace xAOD
13{
14
17
19 {
20 public:
22 ICandData_v1() = default;
23 virtual ~ICandData_v1() = default;
24
25
35 // quality of the candidate
36 enum class Quality : uint8_t
37 {
41 };
42
57 uint16_t bcTag() const;
77 uint8_t coinType() const;
78
83 uint16_t eta() const;
88 uint16_t phi() const;
93 uint8_t pt() const;
99
100
101
121 void setEta(float eta);
126 void setPhi(float phi);
131 void setPt(float pt);
157
159
165
167
168
169 static constexpr float etaRange() { return s_etaRange; }
170 static constexpr uint16_t etaBitRange() { return s_etaBitRange; }
171 static constexpr float phiRange() { return s_phiRange; }
172 static constexpr uint16_t phiBitRange() { return s_phiBitRange; }
173 static constexpr float ptRange() { return s_ptRange; }
174 static constexpr uint8_t ptBitRange() { return s_ptBitRange; }
175 static constexpr uint8_t coinTypeBitMask() { return COINTYPE_BIT_MASK; }
176
177 protected:
179 static constexpr float s_etaRange = 2.7;
180 static constexpr float s_phiRange = 2.0 * M_PI;
181 static constexpr float s_ptRange = 1000.0;
182
185 static constexpr uint16_t s_etaBitRange = 0x3fff;
186 static constexpr uint16_t s_phiBitRange = 0x1ff;
187 static constexpr uint8_t s_ptBitRange = 0xff;
188
190 static constexpr uint8_t COINTYPE_BIT_MASK = 0x7;
191 };
192
193} // namespace xAOD
194
195#include "xAODCore/BaseInfo.h"
197
198#endif // XAODL0MUONCAND_VERSION_ICANDDATA_V1_H
#define M_PI
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...
void setThreshold(uint8_t threshold)
Set the threshold.
static constexpr float ptRange()
static constexpr uint8_t COINTYPE_BIT_MASK
Bit mask for Coincidence Types.
uint8_t mdtFlag() const
Retrieve the MDT flag.
void setBcTag(uint16_t bcTag)
Set the bunch crossing tag.
void setPhi(float phi)
Set the phi.
void setCandQuality(Quality candQuality)
Set the candidate quality.
BC_ID
Bunch crossing identifier.
uint16_t sectorId() const
Retrieve the sector id.
uint16_t eta() const
Retrieve the eta.
uint8_t coinType() const
Retrieve the coincidence type.
void setPt(float pt)
Set the pt.
uint8_t candCharge() const
Retrieve the candidate charge.
static constexpr uint16_t phiBitRange()
static constexpr float s_ptRange
static constexpr float etaRange()
void setCandCharge(uint8_t candCharge)
Set the candidate charge.
static constexpr float phiRange()
static constexpr float s_phiRange
uint8_t threshold() const
Retrieve the threshold.
virtual ~ICandData_v1()=default
uint16_t bcTag() const
Retrieve the bunch crossing tag.
void setEta(float eta)
Set the eta.
uint8_t pt() const
Retrieve the pt.
static constexpr uint16_t s_phiBitRange
Quality candQuality() const
Retrieve the candidate quality.
ICandData_v1()=default
Default constructor.
void setMdtFlag(uint8_t mdtFlag)
Set the MDT flag.
uint16_t phi() const
Retrieve the phi.
void setSubdetectorId(uint16_t subdetectorId)
Set the sub detector id.
static constexpr float s_etaRange
Variables range.
uint16_t subdetectorId() const
Retrieve the sub detector id.
static constexpr uint16_t etaBitRange()
static constexpr uint8_t coinTypeBitMask()
void setSectorId(uint16_t sectorId)
Set the sector id.
static constexpr uint8_t s_ptBitRange
static constexpr uint8_t ptBitRange()
static constexpr uint16_t s_etaBitRange
Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt.
void setCoinType(uint8_t coinType)
Set the coincidence type.
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.
setWord1 uint16_t
void initialize()