ATLAS Offline Software
Loading...
Searching...
No Matches
SectorLogicCandData_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
5#ifndef XAODTRIGL0MUON_VERSIONS_SECTORLOGICCANDDATA_V1_H
6#define XAODTRIGL0MUON_VERSIONS_SECTORLOGICCANDDATA_V1_H
7
8// System include(s):
9#include <cstdint>
10#include <string>
11#include <cmath>
12
13// EDM include(s):
15
16namespace xAOD {
17
18
20
21 public:
22
27 enum MuonSystem { RPC, TGC };
28
33 enum Side { A, C };
34
39 enum MSP { MSP_0, MSP_1};
40
45
53 void initialize(const std::vector<uint32_t>& data, int offset, uint16_t bID, uint16_t fID);
54
59 const std::string dump() const;
60
66
72
78
84
90
96
102
108
113 int BCIDOffset() const;
114
119 void setBCIDOffset(int offset);
120
125 unsigned short veto() const;
126
131 void setVeto(unsigned short veto);
132
137 uint32_t pT() const;
138
143 uint32_t charge() const;
144
149 uint32_t rawPhi() const;
150
155 float phi() const;
156
161 uint32_t rawEta() const;
162
167 float eta() const;
168
173 uint32_t mdtSegQual() const;
174
179 uint32_t numMDTSeg() const;
180
185 uint32_t mdtFlag() const;
186
191 uint32_t exotTrig() const;
192
197 uint32_t tileCoin() const;
198
203 uint32_t coinType() const;
204
209 uint32_t isMDT() const;
210
215 uint32_t TCID() const;
216
221 uint32_t ptThresh() const;
222
223 private:
224
225 // Needed for converting from bits to float for eta and phi
226 static constexpr float ETA_MIN = -2.7f;
227 static constexpr float ETA_MAX = 2.7f;
228 static constexpr float ETA_MAX_RAW = 16383.0f;
229 static constexpr float PHI_MAX = 2.0f * M_PI;
230 static constexpr float PHI_MAX_RAW = 511.0f;
231
232 }; // class SectorLogicCandData_v1
233
234} // namespace xAOD
235
236// Declare the inheritance of the class:
237#include "xAODCore/BaseInfo.h"
239
240#endif // XAODTRIGL0MUON_VERSIONS_SECTORLOGICCANDDATA_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.
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
uint32_t charge() const
Retrieve the charge.
uint16_t fiberID() const
Retrieve the fiber ID.
void setBCIDOffset(int offset)
Set the bunch crossing identifier offset.
unsigned short veto() const
Retrieve the veto flag.
uint32_t exotTrig() const
Retrieve the exotic trigger.
uint32_t ptThresh() const
Retrieve the Trigger candidate ID.
void setCandExtraWord(uint32_t word)
Set the candidate extra word (second 32-bits).
uint32_t mdtSegQual() const
Retrieve the MDT segment quality flag.
uint32_t coinType() const
Retrieve the RPC/TGC coincidence type.
uint32_t candWord() const
Retrieve the candidate word (first 32-bits).
float phi() const
Retrieve the position in phi.
float eta() const
Retrieve the position in eta.
uint32_t pT() const
Retrieve the pT value.
void setCandWord(uint32_t word)
Set the candidate word (first 32-bits).
int BCIDOffset() const
Retrieve the bunch crossing identifier offset.
void setFiberID(uint16_t id)
Set the fiber ID.
SectorLogicCandData_v1()
Default constructor.
MuonSystem
Identifies the muon detector system.
uint16_t boardID() const
Retrieve the board ID.
void setBoardID(uint16_t id)
Set the board ID.
uint32_t isMDT() const
Retrieve whether the candidate was processed by MDTTP.
uint32_t TCID() const
Retrieve the Trigger candidate ID.
uint32_t rawPhi() const
Retrieve the bits for the position in phi.
const std::string dump() const
Get the information stored in the SectorLogicCandData_v1 object.
uint32_t candExtraWord() const
Retrieve the candidate extra word (second 32-bits).
uint32_t numMDTSeg() const
Retrieve the number of MDT segments.
uint32_t rawEta() const
Retrieve the bits for the position in eta.
void setVeto(unsigned short veto)
Set the veto flag.
uint32_t tileCoin() const
Retrieve the TILE coincidence presence.
uint32_t mdtFlag() const
Retrieve the MDT flag.
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
Definition TgcBase.h:6
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t
void initialize()