ATLAS Offline Software
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 
24 namespace xAOD {
25 
33  class MuonSegment_v1 : public SG::AuxElement {
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);
69  Amg::Vector3D direction() const;
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;
117  void setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers);
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
xAOD::MuonSegment_v1::numberDoF
float numberDoF() const
Returns the numberDoF.
xAOD::MuonSegment_v1::x
float x() const
xAOD::MuonSegment_v1::direction
Amg::Vector3D direction() const
Returns the direction as Amg::Vector.
Definition: MuonSegment_v1.cxx:18
xAOD::MuonSegment_v1::setPosition
void setPosition(float x, float y, float z)
Sets the global position.
Definition: MuonSegment_v1.cxx:26
xAOD::MuonSegment_v1::chiSquared
float chiSquared() const
xAOD::MuonSegment_v1::nTrigEtaLayers
int nTrigEtaLayers() const
Returns the number of trigger eta layers.
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
xAOD::MuonSegment_v1::pz
float pz() const
Returns the pz.
xAOD::MuonSegment_v1::px
float px() const
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::MuonSegment_v1::MuonSegment_v1
MuonSegment_v1()=default
Default constructor.
xAOD::MuonSegment_v1::setT0Error
void setT0Error(float t0, float t0Error)
Sets the time error.
Definition: MuonSegment_v1.cxx:51
xAOD::MuonSegment_v1::setNHits
void setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers)
Set the number of hits/layers.
Definition: MuonSegment_v1.cxx:88
GeoPrimitives.h
xAOD::MuonSegment_v1::t0
float t0() const
xAOD::MuonSegment_v1::t0error
float t0error() const
Returns the time error.
xAOD::MuonSegment_v1::py
float py() const
Returns the py.
xAOD::MuonSegment_v1::technology
::Muon::MuonStationIndex::TechnologyIndex technology() const
Returns the main technology of the segment.
xAOD::MuonSegment_v1::nPhiLayers
int nPhiLayers() const
Returns the number of phi layers.
xAOD::MuonSegment_v1::position
Amg::Vector3D position() const
Returns the position as Amg::Vector.
Definition: MuonSegment_v1.cxx:15
xAOD::MuonSegment_v1::nPrecisionHits
int nPrecisionHits() const
xAOD::MuonSegment_v1::setMuonSegment
void setMuonSegment(const ElementLink< ::Trk::SegmentCollection > &segment)
xAOD::MuonSegment_v1::muonSegment
const ElementLink< ::Trk::SegmentCollection > & muonSegment() const
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
xAOD::MuonSegment_v1::~MuonSegment_v1
virtual ~MuonSegment_v1()=default
Default destructor.
xAOD::MuonSegment_v1::z
float z() const
Returns the y position.
xAOD::MuonSegment_v1::sector
int sector() const
xAOD::MuonSegment_v1::y
float y() const
Returns the x position.
xAOD::MuonSegment_v1::etaIndex
int etaIndex() const
Returns the eta index, which corresponds to stationEta in the offline identifiers (and the ).
xAOD::MuonSegment_v1::setIdentifier
void setIdentifier(int sector, ::Muon::MuonStationIndex::ChIndex chamberIndex, int etaIndex, ::Muon::MuonStationIndex::TechnologyIndex technology)
Set the identifier.
Definition: MuonSegment_v1.cxx:73
xAOD::MuonSegment_v1::setDirection
void setDirection(float px, float py, float pz)
Sets the direction.
Definition: MuonSegment_v1.cxx:39
Muon::MuonStationIndex::ChIndex
ChIndex
enum to classify the different chamber layers in the muon spectrometer
Definition: MuonStationIndex.h:15
MuonStationIndex.h
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
xAOD::MuonSegment_v1::setFitQuality
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.
Definition: MuonSegment_v1.cxx:61
xAOD::MuonSegment_v1::chamberIndex
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
SegmentCollection.h
AuxElement.h
Base class for elements of a container that can have aux data.
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5