ATLAS Offline Software
Loading...
Searching...
No Matches
TGCCandData_v1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef XAODL0MUONCAND_VERSION_TGCCANDDATA_V1_H
5#define XAODL0MUONCAND_VERSION_TGCCANDDATA_V1_H
6
7// System include(s):
8#include <cstdint>
9
12
13namespace xAOD
14{
15
22
24 public:
25 // default constructor and destructor
26 TGCCandData_v1() = default;
27 ~TGCCandData_v1() = default;
28
33 uint8_t tcId() const;
38 float ptValueGeV() const;
43 bool hasInnerCoincidence() const;
48 bool goodMagneticField() const;
53 float deltaPhi() const; // 4 bits, [2:0] the absolute value in [0,0.032] and [3] the sign (0,1)
58 float deltaTheta() const; // 7 bits, [5:0] the absolute value in [0,0.160]mrad and [6] the sign (0,1)
63 uint8_t deltaPhiWord() const;
68 uint8_t deltaThetaWord() const;
73 uint32_t nswSegment() const;
74
79 void setTcId(uint8_t value);
84 void setHasInnerCoincidence(bool value);
89 void setGoodMagneticField(bool value);
94 void setDeltaPhi(float dphi);
99 void setDeltaTheta(float dtheta);
104 void setDeltaPhiWord(uint8_t value);
109 void setDeltaThetaWord(uint8_t value);
114 void setNswSegment(uint32_t nswout);
115
116 private:
118 static constexpr float s_dthetaRange = 0.160; // radian
119 static constexpr float s_dphiRange = 0.032; // radian
121 static constexpr float s_posRange = 12500.0F;
122
128 static constexpr uint8_t DPHI_BIT_MASK = 0x7;
130 static constexpr uint8_t DTHETA_BIT_MASK = 0x3f;
132 static constexpr uint32_t NSW_BIT_MASK = 0xfffffff;
134 static constexpr uint8_t TC_ID_BIT_MASK = 0x7;
135
136 };
137
138} // namespace xAOD
139
140#include "xAODCore/BaseInfo.h"
142
143#endif // XAODL0MUONCAND_VERSION_TGCCANDDATA_V1_H
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...
ICandData_v1()=default
Default constructor.
Data class describing the L0 muon candidates produced by TGC-SL.
float deltaTheta() const
Retrieve the delta theta value wrt vector from IP to segment position.
static constexpr uint8_t TC_ID_BIT_MASK
Bit mask for the trigger-candidate identifier.
static constexpr float s_dphiRange
void setGoodMagneticField(bool value)
Set the GoodMag bit in CoinType.
static constexpr float s_posRange
range of the TGC hits positions
void setHasInnerCoincidence(bool value)
Set the Inner Coincidence bit in CoinType.
void setDeltaThetaWord(uint8_t value)
Set the raw encoded delta theta word.
static constexpr uint8_t DPHI_BIT_MASK
Bit mask for deltaPhi : 1 bit for sign and 3 bits.
static constexpr uint8_t DTHETA_BIT_MASK
Bit mask for deltaTheta : 1 bit for sign and 6 bits.
uint32_t nswSegment() const
Retrieve the NSW segments.
bool goodMagneticField() const
Check whether the candidate is in a good magnetic-field region.
void setDeltaTheta(float dtheta)
Set the delta theta value.
uint8_t deltaPhiWord() const
Retrieve the raw encoded delta phi word.
bool hasInnerCoincidence() const
Check whether the candidate passed Inner Coincidence.
static constexpr uint8_t COINTYPE_INNER_COINCIDENCE_BIT
CoinType bit for Inner Coincidence.
float deltaPhi() const
Retrieve the delta phi wrt vector from IP to segment position.
float ptValueGeV() const
Retrieve the inherited encoded pT value in GeV.
void setTcId(uint8_t value)
Set the trigger-candidate identifier.
void setDeltaPhi(float dphi)
Set the delta phi value.
uint8_t tcId() const
Retrieve the trigger-candidate identifier.
static constexpr uint8_t COINTYPE_GOOD_MAGNETIC_FIELD_BIT
CoinType bit for the GoodMag flag.
void setNswSegment(uint32_t nswout)
Set the NSW segments.
static constexpr uint32_t NSW_BIT_MASK
Bit mask for NSW-TP output.
~TGCCandData_v1()=default
uint8_t deltaThetaWord() const
Retrieve the raw encoded delta theta word.
static constexpr float s_dthetaRange
range of the RPC hits z positions
void setDeltaPhiWord(uint8_t value)
Set the raw encoded delta phi word.
TGCCandData_v1()=default
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t