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

Class to describe a Segment reconstructed in the MuonSpectrometer. 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.
std::uint8_t nPrecisionHits () const
 Returns the number of precision hits.
std::uint8_t nPhiLayers () const
 Returns the number of trigger phi hits.
std::uint8_t nTrigEtaLayers () const
 Returns the number of trigger eta hits.
void setNHits (const std::uint8_t nPrecisionHits, const std::uint8_t nPhiLayers, const std::uint8_t nTrigEtaLayers)
 Assign the segment hit summary.
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.
std::uint8_t nPrecisionOutliers () const
 Returns the number of precision outliers.
std::uint8_t nTriggerPhiOutliers () const
 Returns the number of trigger phi outliers.
std::uint8_t nTriggerEtaOutliers () const
 Returns the number of trigger eta 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.
std::uint8_t nPrecisionHoles () const
 Returns the number of precision holes.
std::uint8_t nTriggerPhiHoles () const
 Returns the number of trigger phi holes.
std::uint8_t nTriggerEtaHoles () const
 Returns the number of trigger eta holes.
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 (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.

Detailed Description

Class to describe a Segment reconstructed in the MuonSpectrometer.

A segment is a straight line approximation of the muon trajectory within a MS station. The segment carries a reference posiiton, and a direction. Further is provides information about the fit quality and the number of precision and trigger hits involved in the fit

Definition at line 33 of file MuonSegment_v1.h.

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 22 of file MuonSegment_v1.cxx.

22 {
23 return Amg::Vector3D{px(), py(), pz()};
24 }
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()

std::uint8_t xAOD::MuonSegment_v1::nPhiLayers ( ) const

Returns the number of trigger phi hits.

◆ nPrecisionHits()

std::uint8_t xAOD::MuonSegment_v1::nPrecisionHits ( ) const

Returns the number of precision hits.

◆ nPrecisionHoles()

std::uint8_t xAOD::MuonSegment_v1::nPrecisionHoles ( ) const

Returns the number of precision holes.

◆ nPrecisionOutliers()

std::uint8_t xAOD::MuonSegment_v1::nPrecisionOutliers ( ) const

Returns the number of precision outliers.

◆ nTrigEtaLayers()

std::uint8_t xAOD::MuonSegment_v1::nTrigEtaLayers ( ) const

Returns the number of trigger eta hits.

◆ nTriggerEtaHoles()

std::uint8_t xAOD::MuonSegment_v1::nTriggerEtaHoles ( ) const

Returns the number of trigger eta holes.

◆ nTriggerEtaOutliers()

std::uint8_t xAOD::MuonSegment_v1::nTriggerEtaOutliers ( ) const

Returns the number of trigger eta outliers.

◆ nTriggerPhiHoles()

std::uint8_t xAOD::MuonSegment_v1::nTriggerPhiHoles ( ) const

Returns the number of trigger phi holes.

◆ nTriggerPhiOutliers()

std::uint8_t xAOD::MuonSegment_v1::nTriggerPhiOutliers ( ) const

Returns the number of trigger phi outliers.

◆ 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 19 of file MuonSegment_v1.cxx.

19 {
20 return Amg::Vector3D{x(), y(), z()};
21 }
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 44 of file MuonSegment_v1.cxx.

44 {
45 static const Accessor<float> accX( "px" );
46 static const Accessor<float> accY( "py" );
47 static const Accessor<float> accZ( "pz" );
48 accX(*this) = px;
49 accY(*this) = py;
50 accZ(*this) = pz;
51 }

◆ setFitQuality()

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

Set the 'Fit Quality' information.

Definition at line 66 of file MuonSegment_v1.cxx.

66 {
67 static const Accessor<float> acc1( "chiSquared" );
68 static const Accessor<float> acc2( "numberDoF" );
69 acc1( *this ) = chiSquared;
70 acc2( *this ) = numberDoF;
71 }
float numberDoF() const
Returns the numberDoF.
float chiSquared() const

◆ setIdentifier()

void xAOD::MuonSegment_v1::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.

Parameters
sectorPhi sector in which the segment was constructed [1-6]
chamberIndexChamber index in which the constructed (e.g BIL)
etaIndexThe eta index of the asociated muon station
technologyTechnolgy of the precision hits making up the segment.

Definition at line 78 of file MuonSegment_v1.cxx.

81 {
82 static const Accessor<int> acc1( "sector" );
83 static const Accessor<int> acc2( "chamberIndex" );
84 static const Accessor<int> acc3( "etaIndex" );
85 static const Accessor<int> acc4( "technology" );
86 acc1(*this) = sector;
87 acc2(*this) = toInt(chamberIndex);
88 acc3(*this) = etaIndex;
89 acc4(*this) = toInt(technology);
90 }
::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 ).
constexpr int toInt(const EnumType enumVal)

◆ setMuonSegment()

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

◆ setNHits()

void xAOD::MuonSegment_v1::setNHits ( const std::uint8_t nPrecisionHits,
const std::uint8_t nPhiLayers,
const std::uint8_t nTrigEtaLayers )

Assign the segment hit summary.

Parameters
nPrecisionHitsThe number of contributin precision hits
nPhiLayersThe number of trigger phi hits
nTrigEtaLayersThe number of complementary eta trigger hits

Definition at line 96 of file MuonSegment_v1.cxx.

98 {
99 static const Accessor<int> acc1{"nPrecisionHits"};
100 static const Accessor<int> acc2{"nPhiLayers"};
101 static const Accessor<int> acc3{"nTrigEtaLayers"};
102
103 acc1(*this) = nPrecisionHits;
104 acc2(*this) = nPhiLayers;
105 acc3(*this) = nTrigEtaLayers;
106 }
std::uint8_t nTrigEtaLayers() const
Returns the number of trigger eta hits.
std::uint8_t nPrecisionHits() const
Returns the number of precision hits.
std::uint8_t nPhiLayers() const
Returns the number of trigger phi hits.

◆ setNHoles()

void xAOD::MuonSegment_v1::setNHoles ( const std::uint8_t nPrecHoles,
const std::uint8_t nTrigPhiHoles,
const std::uint8_t nTrigEtaHoles )

Assign the number of expected but missing hits.

Parameters
nPrecHolesNumber of precision holes
nTrigPhiHolesNumber of trigger phi holes
nTrigEtaHolesNumber of trigger eta holes

Definition at line 122 of file MuonSegment_v1.cxx.

124 {
125 static const Accessor<std::uint8_t> acc_prec{"nPrecisionHoles"};
126 static const Accessor<std::uint8_t> acc_trigEta{"nTriggerPhiHoles"};
127 static const Accessor<std::uint8_t> acc_trigPhi{"nTriggerEtaHoles"};
128
129 acc_prec(*this) = nPrecHoles;
130 acc_trigEta(*this) = nTrigEtaHoles;
131 acc_trigPhi(*this) = nTrigPhiHoles;
132 }

◆ setNOutliers()

void xAOD::MuonSegment_v1::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.

Parameters
nPrecOutliersNumber of precision outliers
nTrigPhiOutliersNumber of trigger phi outliers
nTrigEtaOutliersNumber of trigger eta outliers

Definition at line 109 of file MuonSegment_v1.cxx.

111 {
112
113 static const Accessor<std::uint8_t> acc_prec{"nPrecisionOutliers"};
114 static const Accessor<std::uint8_t> acc_trigEta{"nTriggerPhiOutliers"};
115 static const Accessor<std::uint8_t> acc_trigPhi{"nTriggerEtaOutliers"};
116
117 acc_prec(*this) = nPrecOutliers;
118 acc_trigEta(*this) = nTrigEtaOutliers;
119 acc_trigPhi(*this) = nTrigPhiOutliers;
120 }

◆ setPosition()

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

Sets the global position.

Definition at line 30 of file MuonSegment_v1.cxx.

30 {
31 static const Accessor<float> accX( "x" );
32 static const Accessor<float> accY( "y" );
33 static const Accessor<float> accZ( "z" );
34
35 accX( *this ) = x;
36 accY( *this ) = y;
37 accZ( *this ) = z;
38 }

◆ setT0Error()

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

Sets the time error.

Definition at line 56 of file MuonSegment_v1.cxx.

56 {
57 static const Accessor<float> acc1("t0");
58 static const Accessor<float> acc2("t0error");
59 acc1( *this ) = t0;
60 acc2( *this ) = t0error;
61 }
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: