ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSegment_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 XAODMUON_VERSIONS_MUONSEGMENT_V1_H
5#define XAODMUON_VERSIONS_MUONSEGMENT_V1_H
6
7// System include(s):
8
9// Core include(s):
11#include "AthLinks/ElementLink.h"
13
14// xAOD include(s):
15
16// Athena include(s):
18#if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
20#endif
21
22// Local include(s):
23
24namespace xAOD {
25
34
35 public:
36
38 MuonSegment_v1() = default;
40 virtual ~MuonSegment_v1() = default;
41
46 float x() const;
48 float y() const;
50 float z() const;
52 void setPosition(float x, float y, float z);
55 Amg::Vector3D position() const;
60 float px() const;
62 float py() const;
64 float pz() const;
66 void setDirection(float px, float py, float pz);
74 float t0() const;
76 float t0error() const;
78 void setT0Error(float t0, float t0Error);
80
85 float chiSquared() const;
87 float numberDoF() const;
89 void setFitQuality(float chiSquared, float numberDoF);
91
96 int sector() const;
100 int etaIndex() const;
109 void setIdentifier(const std::uint8_t sector,
110 const ::Muon::MuonStationIndex::ChIndex chamberIndex,
111 const std::int8_t etaIndex,
112 const ::Muon::MuonStationIndex::TechnologyIndex technology);
114
116 std::uint8_t nPrecisionHits() const;
118 std::uint8_t nPhiLayers() const;
120 std::uint8_t nTrigEtaLayers() const;
125 void setNHits(const std::uint8_t nPrecisionHits,
126 const std::uint8_t nPhiLayers,
127 const std::uint8_t nTrigEtaLayers);
132 void setNOutliers(const std::uint8_t nPrecOutliers,
133 const std::uint8_t nTrigPhiOutliers,
134 const std::uint8_t nTrigEtaOutliers);
136 std::uint8_t nPrecisionOutliers() const;
138 std::uint8_t nTriggerPhiOutliers() const;
140 std::uint8_t nTriggerEtaOutliers() const;
141
146 void setNHoles(const std::uint8_t nPrecHoles,
147 const std::uint8_t nTrigPhiHoles,
148 const std::uint8_t nTrigEtaHoles);
150 std::uint8_t nPrecisionHoles() const;
152 std::uint8_t nTriggerPhiHoles() const;
154 std::uint8_t nTriggerEtaHoles() const;
155
156#if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
159#endif
160
161 }; // end of the MuonSegment_v1 class definitions
162
163} // end of the xAOD namespace
164
165#endif // XAODMUON_VERSIONS_MUONSEGMENT_V1_H
Base class for elements of a container that can have aux data.
void setDirection(float px, float py, float pz)
Sets the direction.
float px() const
float y() const
Returns the x position.
std::uint8_t nTrigEtaLayers() const
Returns the number of trigger eta hits.
float pz() const
Returns the pz.
std::uint8_t nTriggerPhiHoles() const
Returns the number of trigger phi holes.
float t0() const
float numberDoF() const
Returns the numberDoF.
MuonSegment_v1()=default
Default constructor.
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.
Amg::Vector3D direction() const
Returns the direction as Amg::Vector.
void setT0Error(float t0, float t0Error)
Sets the time error.
void setNHits(const std::uint8_t nPrecisionHits, const std::uint8_t nPhiLayers, const std::uint8_t nTrigEtaLayers)
Assign the segment hit summary.
std::uint8_t nPrecisionOutliers() const
Returns the number of precision outliers.
void setNOutliers(const std::uint8_t nPrecOutliers, const std::uint8_t nTrigPhiOutliers, const std::uint8_t nTrigEtaOutliers)
Assign the number of hits with a large pull per hit category.
const ElementLink< ::Trk::SegmentCollection > & muonSegment() const
std::uint8_t nTriggerPhiOutliers() const
Returns the number of trigger phi outliers.
void setNHoles(const std::uint8_t nPrecHoles, const std::uint8_t nTrigPhiHoles, const std::uint8_t nTrigEtaHoles)
Assign the number of expected but missing hits.
float chiSquared() const
std::uint8_t nPrecisionHits() const
Returns the number of precision hits.
float py() const
Returns the py.
void setMuonSegment(const ElementLink< ::Trk::SegmentCollection > &segment)
void setPosition(float x, float y, float z)
Sets the global position.
std::uint8_t nPrecisionHoles() const
Returns the number of precision holes.
::Muon::MuonStationIndex::TechnologyIndex technology() const
Returns the main technology of the segment.
void setIdentifier(const std::uint8_t sector, const ::Muon::MuonStationIndex::ChIndex chamberIndex, const std::int8_t etaIndex, const ::Muon::MuonStationIndex::TechnologyIndex technology)
Set the Identifier fields of the Segment.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
Amg::Vector3D position() const
Returns the position as Amg::Vector.
int etaIndex() const
Returns the eta index, which corresponds to stationEta in the offline identifiers (and the ).
virtual ~MuonSegment_v1()=default
Default destructor.
float t0error() const
Returns the time error.
std::uint8_t nTriggerEtaHoles() const
Returns the number of trigger eta holes.
std::uint8_t nPhiLayers() const
Returns the number of trigger phi hits.
std::uint8_t nTriggerEtaOutliers() const
Returns the number of trigger eta outliers.
float z() const
Returns the y position.
Eigen::Matrix< double, 3, 1 > Vector3D
TechnologyIndex
enum to classify the different layers in the muon spectrometer
ChIndex
enum to classify the different chamber layers in the muon spectrometer
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.