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
18
20 public:
21 // default constructor and destructor
22 TGCCandData_v1() = default;
23 ~TGCCandData_v1() = default;
24
29 float deltaPhi() const; // 4 bits, [2:0] the absolute value in [0,0.032] and [3] the sign (0,1)
34 float deltaTheta() const; // 7 bits, [5:0] the absolute value in [0,0.160]mrad and [6] the sign (0,1)
39 uint32_t nswSegment() const;
40
45 void setDeltaPhi(float dphi);
50 void setDeltaTheta(float dtheta);
55 void setNswSegment(uint32_t nswout);
56
57 private:
59 static constexpr float s_dthetaRange = 0.160; // radian
60 static constexpr float s_dphiRange = 0.032; // radian
62 static constexpr float s_posRange = 12500.0F;
63
65 static constexpr uint8_t DPHI_BIT_MASK = 0x7;
67 static constexpr uint8_t DTHETA_BIT_MASK = 0x3f;
69 static constexpr uint32_t NSW_BIT_MASK = 0xfffffff;
70
71 };
72
73} // namespace xAOD
74
75#include "xAODCore/BaseInfo.h"
77
78#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.
ICandData_v1()=default
Default constructor.
Data class describing the L0 muon candidates from TGC-SL to MDT-TP.
float deltaTheta() const
Retrieve the delta theta value wrt vector from IP to segment position.
static constexpr float s_dphiRange
static constexpr float s_posRange
range of the TGC hits positions
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.
void setDeltaTheta(float dtheta)
Set the delta theta value.
float deltaPhi() const
Retrieve the delta phi wrt vector from IP to segment position.
void setDeltaPhi(float dphi)
Set the delta phi value.
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
static constexpr float s_dthetaRange
range of the RPC hits z positions
TGCCandData_v1()=default
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.
setEventNumber uint32_t