ATLAS Offline Software
MuonSegment_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef XAODMUON_VERSIONS_MUONSEGMENT_V1_H
6 #define XAODMUON_VERSIONS_MUONSEGMENT_V1_H
7 
8 // System include(s):
9 
10 // Core include(s):
12 #include "AthLinks/ElementLink.h"
14 
15 // xAOD include(s):
16 
17 // 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 
39 
44  float x() const;
46  float y() const;
48  float z() const;
50  void setPosition(float x, float y, float z);
52 
57  float px() const;
59  float py() const;
61  float pz() const;
63  void setDirection(float px, float py, float pz);
65 
70  float t0() const;
72  float t0error() const;
74  void setT0Error(float t0, float t0Error);
76 
81  float chiSquared() const;
83  float numberDoF() const;
85  void setFitQuality(float chiSquared, float numberDoF);
87 
92  int sector() const;
96  int etaIndex() const;
102 
107  int nPrecisionHits() const;
109  int nPhiLayers() const;
111  int nTrigEtaLayers() const;
113  void setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers);
115 
116 #if !(defined(GENERATIONBASE) || defined(XAOD_ANALYSIS))
119 #endif
120 
121  }; // end of the MuonSegment_v1 class definitions
122 
123 } // end of the xAOD namespace
124 
125 #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::setPosition
void setPosition(float x, float y, float z)
Sets the global position.
Definition: MuonSegment_v1.cxx:22
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:446
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::setT0Error
void setT0Error(float t0, float t0Error)
Sets the time error.
Definition: MuonSegment_v1.cxx:47
xAOD::MuonSegment_v1::setNHits
void setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers)
Set the number of hits/layers.
Definition: MuonSegment_v1.cxx:84
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::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
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::MuonSegment_v1
MuonSegment_v1()
Default constructor.
Definition: MuonSegment_v1.cxx:14
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:69
xAOD::MuonSegment_v1::setDirection
void setDirection(float px, float py, float pz)
Sets the direction.
Definition: MuonSegment_v1.cxx:35
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:57
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