ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::MuonSegment_v1 Class Reference

Class describing a MuonSegment. More...

#include <MuonSegment_v1.h>

Inheritance diagram for xAOD::MuonSegment_v1:
Collaboration diagram for xAOD::MuonSegment_v1:

Public Member Functions

 MuonSegment_v1 ()=default
 Default constructor.
virtual ~MuonSegment_v1 ()=default
 Default destructor.
Amg::Vector3D position () const
 Returns the position as Amg::Vector.
Amg::Vector3D direction () const
 Returns the direction as Amg::Vector.
const ElementLink< ::Trk::SegmentCollection > & muonSegment () const
void setMuonSegment (const ElementLink< ::Trk::SegmentCollection > &segment)

Global position functions

Returns the global position

Returns the x position

float x () const
float y () const
 Returns the x position.
float z () const
 Returns the y position.
void setPosition (float x, float y, float z)
 Sets the global position.

Global direction functions

Returns the global direction

Returns the px

float px () const
float py () const
 Returns the py.
float pz () const
 Returns the pz.
void setDirection (float px, float py, float pz)
 Sets the direction.

Fitted time functions

Returns some information about fitted time and error on the time.

Returns the time

float t0 () const
float t0error () const
 Returns the time error.
void setT0Error (float t0, float t0Error)
 Sets the time error.

Fit quality functions

Returns some information about quality of the track fit.

Returns the \( \chi^2 \) of the overall track fit.

float chiSquared () const
float numberDoF () const
 Returns the numberDoF.
void setFitQuality (float chiSquared, float numberDoF)
 Set the 'Fit Quality' information.

Identification

The general muon identification scheme is defined here: https://cds.cern.ch/record/681542/files/com-muon-2002-019.pdf

Returns the sector number

int sector () const
::Muon::MuonStationIndex::ChIndex chamberIndex () const
 Returns the chamber index.
int etaIndex () const
 Returns the eta index, which corresponds to stationEta in the offline identifiers (and the ).
::Muon::MuonStationIndex::TechnologyIndex technology () const
 Returns the main technology of the segment.
void setIdentifier (int sector, ::Muon::MuonStationIndex::ChIndex chamberIndex, int etaIndex, ::Muon::MuonStationIndex::TechnologyIndex technology)
 Set the identifier.

Hit counts functions

Returns the number of hits

Returns the number of precision hits

int nPrecisionHits () const
int nPhiLayers () const
 Returns the number of phi layers.
int nTrigEtaLayers () const
 Returns the number of trigger eta layers.
void setNHits (int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers)
 Set the number of hits/layers.

Detailed Description

Constructor & Destructor Documentation

◆ MuonSegment_v1()

xAOD::MuonSegment_v1::MuonSegment_v1 ( )
default

Default constructor.

◆ ~MuonSegment_v1()

virtual xAOD::MuonSegment_v1::~MuonSegment_v1 ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ chamberIndex()

::Muon::MuonStationIndex::ChIndex xAOD::MuonSegment_v1::chamberIndex ( ) const

Returns the chamber index.

◆ chiSquared()

float xAOD::MuonSegment_v1::chiSquared ( ) const

◆ direction()

Amg::Vector3D xAOD::MuonSegment_v1::direction ( ) const

Returns the direction as Amg::Vector.

Definition at line 18 of file MuonSegment_v1.cxx.

18 {
19 return Amg::Vector3D{px(), py(), pz()};
20 }
float px() const
float pz() const
Returns the pz.
float py() const
Returns the py.
Eigen::Matrix< double, 3, 1 > Vector3D

◆ etaIndex()

int xAOD::MuonSegment_v1::etaIndex ( ) const

Returns the eta index, which corresponds to stationEta in the offline identifiers (and the ).

◆ muonSegment()

const ElementLink< ::Trk::SegmentCollection > & xAOD::MuonSegment_v1::muonSegment ( ) const

◆ nPhiLayers()

int xAOD::MuonSegment_v1::nPhiLayers ( ) const

Returns the number of phi layers.

◆ nPrecisionHits()

int xAOD::MuonSegment_v1::nPrecisionHits ( ) const

◆ nTrigEtaLayers()

int xAOD::MuonSegment_v1::nTrigEtaLayers ( ) const

Returns the number of trigger eta layers.

◆ numberDoF()

float xAOD::MuonSegment_v1::numberDoF ( ) const

Returns the numberDoF.

◆ position()

Amg::Vector3D xAOD::MuonSegment_v1::position ( ) const

Returns the position as Amg::Vector.

Definition at line 15 of file MuonSegment_v1.cxx.

15 {
16 return Amg::Vector3D{x(), y(), z()};
17 }
float y() const
Returns the x position.
float z() const
Returns the y position.

◆ px()

float xAOD::MuonSegment_v1::px ( ) const

◆ py()

float xAOD::MuonSegment_v1::py ( ) const

Returns the py.

◆ pz()

float xAOD::MuonSegment_v1::pz ( ) const

Returns the pz.

◆ sector()

int xAOD::MuonSegment_v1::sector ( ) const

◆ setDirection()

void xAOD::MuonSegment_v1::setDirection ( float px,
float py,
float pz )

Sets the direction.

Definition at line 39 of file MuonSegment_v1.cxx.

39 {
40 static const Accessor< float > acc1( "px" );
41 acc1( *this ) = px;
42 static const Accessor< float > acc2( "py" );
43 acc2( *this ) = py;
44 static const Accessor< float > acc3( "pz" );
45 acc3( *this ) = pz;
46 }

◆ setFitQuality()

void xAOD::MuonSegment_v1::setFitQuality ( float chiSquared,
float numberDoF )

Set the 'Fit Quality' information.

Definition at line 61 of file MuonSegment_v1.cxx.

61 {
62 static const Accessor< float > acc1( "chiSquared" );
63 acc1( *this ) = chiSquared;
64 static const Accessor< float > acc2( "numberDoF" );
65 acc2( *this ) = numberDoF;
66 }
float numberDoF() const
Returns the numberDoF.
float chiSquared() const

◆ setIdentifier()

void xAOD::MuonSegment_v1::setIdentifier ( int sector,
::Muon::MuonStationIndex::ChIndex chamberIndex,
int etaIndex,
::Muon::MuonStationIndex::TechnologyIndex technology )

Set the identifier.

Definition at line 73 of file MuonSegment_v1.cxx.

73 {
74 static const Accessor< int > acc1( "sector" );
75 acc1( *this ) = sector;
76 static const Accessor< int > acc2( "chamberIndex" );
77 acc2( *this ) = static_cast<int>(chamberIndex);
78 static const Accessor< int > acc3( "etaIndex" );
79 acc3( *this ) = etaIndex;
80 static const Accessor< int > acc4( "technology" );
81 acc4( *this ) = static_cast<int>(technology);
82 }
::Muon::MuonStationIndex::TechnologyIndex technology() const
Returns the main technology of the segment.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
int etaIndex() const
Returns the eta index, which corresponds to stationEta in the offline identifiers (and the ).

◆ setMuonSegment()

void xAOD::MuonSegment_v1::setMuonSegment ( const ElementLink< ::Trk::SegmentCollection > & segment)

◆ setNHits()

void xAOD::MuonSegment_v1::setNHits ( int nPrecisionHits,
int nPhiLayers,
int nTrigEtaLayers )

Set the number of hits/layers.

Definition at line 88 of file MuonSegment_v1.cxx.

88 {
89 static const Accessor< int > acc1( "nPrecisionHits" );
90 acc1( *this ) = nPrecisionHits;
91 static const Accessor< int > acc2( "nPhiLayers" );
92 acc2( *this ) = nPhiLayers;
93 static const Accessor< int > acc3( "nTrigEtaLayers" );
94 acc3( *this ) = nTrigEtaLayers;
95 }
int nTrigEtaLayers() const
Returns the number of trigger eta layers.
int nPrecisionHits() const
int nPhiLayers() const
Returns the number of phi layers.

◆ setPosition()

void xAOD::MuonSegment_v1::setPosition ( float x,
float y,
float z )

Sets the global position.

Definition at line 26 of file MuonSegment_v1.cxx.

26 {
27 static const Accessor< float > acc1( "x" );
28 acc1( *this ) = x;
29 static const Accessor< float > acc2( "y" );
30 acc2( *this ) = y;
31 static const Accessor< float > acc3( "z" );
32 acc3( *this ) = z;
33 }

◆ setT0Error()

void xAOD::MuonSegment_v1::setT0Error ( float t0,
float t0Error )

Sets the time error.

Definition at line 51 of file MuonSegment_v1.cxx.

51 {
52 static const Accessor< float > acc1( "t0" );
53 acc1( *this ) = t0;
54 static const Accessor< float > acc2( "t0error" );
55 acc2( *this ) = t0error;
56 }
float t0() const
float t0error() const
Returns the time error.

◆ t0()

float xAOD::MuonSegment_v1::t0 ( ) const

◆ t0error()

float xAOD::MuonSegment_v1::t0error ( ) const

Returns the time error.

◆ technology()

::Muon::MuonStationIndex::TechnologyIndex xAOD::MuonSegment_v1::technology ( ) const

Returns the main technology of the segment.

◆ x()

float xAOD::MuonSegment_v1::x ( ) const

◆ y()

float xAOD::MuonSegment_v1::y ( ) const

Returns the x position.

◆ z()

float xAOD::MuonSegment_v1::z ( ) const

Returns the y position.


The documentation for this class was generated from the following files: