ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSegment_v1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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;
106
111 int nPrecisionHits() const;
113 int nPhiLayers() const;
115 int nTrigEtaLayers() const;
119
120#if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
123#endif
124
125 }; // end of the MuonSegment_v1 class definitions
126
127} // end of the xAOD namespace
128
129#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.
float pz() const
Returns the pz.
float t0() const
int nTrigEtaLayers() const
Returns the number of trigger eta layers.
float numberDoF() const
Returns the numberDoF.
MuonSegment_v1()=default
Default constructor.
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.
void setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers)
Set the number of hits/layers.
int nPrecisionHits() const
Amg::Vector3D direction() const
Returns the direction as Amg::Vector.
void setT0Error(float t0, float t0Error)
Sets the time error.
void setIdentifier(int sector, ::Muon::MuonStationIndex::ChIndex chamberIndex, int etaIndex, ::Muon::MuonStationIndex::TechnologyIndex technology)
Set the identifier.
const ElementLink< ::Trk::SegmentCollection > & muonSegment() const
float chiSquared() const
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.
::Muon::MuonStationIndex::TechnologyIndex technology() const
Returns the main technology of the segment.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
Amg::Vector3D position() const
Returns the position as Amg::Vector.
int nPhiLayers() const
Returns the number of phi layers.
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.
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.