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

Class representing a track reconstructed in AFP. More...

#include <AFPTrack_v1.h>

Inheritance diagram for xAOD::AFPTrack_v1:
Collaboration diagram for xAOD::AFPTrack_v1:

Public Types

typedef ElementLink< AFPSiHitContainerAFPHitLink_t
 Type of a link to the hit.

Public Member Functions

int stationID () const
 Index of the station where track was reconstructed.
void setStationID (int stationID)
 Set index of the station where track was reconstructed.
float xLocal () const
 Track position along X axis in station local coordinate system.
void setXLocal (float newXLocal)
 Set track position along X axis in station local coordinate system.
float yLocal () const
 Track position along Y axis in station local coordinate system.
void setYLocal (float newYLocal)
 Set track coordinate along Y axis in station local coordinate system.
float zLocal () const
 Track position along Z axis in station local coordinate system.
void setZLocal (float newZLocal)
 Set track coordinate along Z axis in station local coordinate system.
float xSlope () const
 Slope of the reconstructed track along X axis in local coordinate system.
void setXSlope (float newXSlope)
 Set slope of the reconstructed track along X axis in local coordinate system.
float ySlope () const
 Slope of the reconstructed track along Y axis in local coordinate system.
void setYSlope (float newYSlope)
 Set slope of the reconstructed track along Y axis in local coordinate system.
unsigned int nHoles () const
 Number of empty pixels that the track passes through.
void setNHoles (unsigned int nHoles)
 Set number of empty pixels that the track passes through.
int nHits () const
 Number of pixels used to reconstruct the track.
void setNHits (int nHits)
 Set number of pixels used to reconstruct the track.
const std::vector< AFPHitLink_t > & hits () const
 Vector of links to pixels that were used to reconstruct the track.
void setHits (const std::vector< AFPHitLink_t > &newHitsVector)
 Set vector of links to pixels used for track reconstruction.
void addHit (const AFPHitLink_t &newHit)
 Add a link to a pixel used to reconstruct the track.
float chi2 () const
 \(\chi^2\) value of the track fit to the selected pixels.
void setChi2 (float newFChi2)
 Set \(\chi^2\) value of the track fit to the selected pixels.
int algID () const
 Identification number of the algorithm used to reconstruct the track.
void setAlgID (int newIAlgID)
 Set reconstruction algorithm identification number.
void toPersistent ()
 Function making sure that the object is ready for persistification i.e. saving.

Detailed Description

Class representing a track reconstructed in AFP.

This class provides access to the information about tracks that were reconstructed using AFP information.

Definition at line 35 of file AFPTrack_v1.h.

Member Typedef Documentation

◆ AFPHitLink_t

Type of a link to the hit.

Definition at line 39 of file AFPTrack_v1.h.

Member Function Documentation

◆ addHit()

void xAOD::AFPTrack_v1::addHit ( const AFPHitLink_t & newHit)

Add a link to a pixel used to reconstruct the track.

A new link to the hit is added to the existing vector of links to the pixels used to reconstruct the track.

Parameters
newHitlink to the pixel used to reconstruct the track

Definition at line 39 of file AFPTrack_v1.cxx.

40 {
41 hitsAcc( *this ).push_back( link );
42 }
static const SG::AuxElement::Accessor< std::vector< AFPToFTrack_v1::AFPToFHitLink_t > > hitsAcc("bars")

◆ algID()

int xAOD::AFPTrack_v1::algID ( ) const

Identification number of the algorithm used to reconstruct the track.

The following coding is used.

ID Algorithm Comments
0 Basic Kalman algorithm
Returns
identification number of the algorithm used to reconstruct the track

◆ chi2()

float xAOD::AFPTrack_v1::chi2 ( ) const

\(\chi^2\) value of the track fit to the selected pixels.

This value gives information about how well the fitted track lays on the selected pixels.

Returns
\(\chi^2\) value of the track fit to the selected pixels

◆ hits()

const std::vector< AFPHitLink_t > & xAOD::AFPTrack_v1::hits ( ) const

Vector of links to pixels that were used to reconstruct the track.

This method provides access to the pixels that were used to reconstruct the track via ElementLink object.

Note
Returns

◆ nHits()

int xAOD::AFPTrack_v1::nHits ( ) const

Number of pixels used to reconstruct the track.

Returns
number of pixels used to reconstruct the track.

◆ nHoles()

unsigned int xAOD::AFPTrack_v1::nHoles ( ) const

Number of empty pixels that the track passes through.

Number of pixels that are expected to be hit, because track goes through them, but which are considered to be not fired.

Returns
Number of empty pixels that the track passes through

◆ setAlgID()

void xAOD::AFPTrack_v1::setAlgID ( int newIAlgID)

Set reconstruction algorithm identification number.

The following coding is used.

ID Algorithm Comments
0 Basic Kalman algorithm
Returns
identification number of the algorithm used to reconstruct the track
Parameters
newIAlgIDidentification number of the algorithm used to reconstruct the track

◆ setChi2()

void xAOD::AFPTrack_v1::setChi2 ( float newFChi2)

Set \(\chi^2\) value of the track fit to the selected pixels.

Parameters
newFChi2\(\chi^2\) value of the track fit to the selected pixels

◆ setHits()

void xAOD::AFPTrack_v1::setHits ( const std::vector< AFPHitLink_t > & newHitsVector)

Set vector of links to pixels used for track reconstruction.

Parameters
newHitsVectorvector of links to pixels used for track reconstruction

◆ setNHits()

void xAOD::AFPTrack_v1::setNHits ( int nHits)

Set number of pixels used to reconstruct the track.

Parameters
nHitsnumber of pixels used to reconstruct the track

◆ setNHoles()

void xAOD::AFPTrack_v1::setNHoles ( unsigned int nHoles)

Set number of empty pixels that the track passes through.

Number of pixels that are expected to be hit, because track goes through them, but which are considered to be not fired.

Returns
Number of empty pixels that the track passes through
Parameters
nHolesnumber of empty pixels that the track passes through

◆ setStationID()

void xAOD::AFPTrack_v1::setStationID ( int stationID)

Set index of the station where track was reconstructed.

Stations indexing follows the scheme

Station ID Station Name Station Position
0 far station A side z = 217 m
1 near station A side z = 205 m
2 near station C side z = -205 m
3 far station C side z = -217 m
Returns
index of the station
Parameters
stationIDindex of the station where track was reconstructed

◆ setXLocal()

void xAOD::AFPTrack_v1::setXLocal ( float newXLocal)

Set track position along X axis in station local coordinate system.

Parameters
newXLocaltrack coordinate along X axis in station local coordinate system

◆ setXSlope()

void xAOD::AFPTrack_v1::setXSlope ( float newXSlope)

Set slope of the reconstructed track along X axis in local coordinate system.

Difference between X position of the first and last hit used to reconstruct track divided by their distance in Z direction.

\[ \textrm{xSlope} = \frac{x_{\textrm{end}} - x_{\textrm{begin}}} {z_{\textrm{end}} - z_{\textrm{begin}}} \]

Parameters
newXSlopeslope of the track along X axis in local coordinate system

◆ setYLocal()

void xAOD::AFPTrack_v1::setYLocal ( float newYLocal)

Set track coordinate along Y axis in station local coordinate system.

@copydetail xAOD::AFPTrack_v1::xLocal()

Parameters
newYLocaltrack position along Y axis in station local coordinate system

◆ setYSlope()

void xAOD::AFPTrack_v1::setYSlope ( float newYSlope)

Set slope of the reconstructed track along Y axis in local coordinate system.

Difference between Y position of the first and last hit used to reconstruct track divided by their distance in Z direction.

\[ \textrm{ySlope} = \frac{y_{\textrm{end}} - y_{\textrm{begin}}} {z_{\textrm{end}} - z_{\textrm{begin}}} \]

Parameters
newYSlopeslope of the track along Y axis in local coordinate system

◆ setZLocal()

void xAOD::AFPTrack_v1::setZLocal ( float newZLocal)

Set track coordinate along Z axis in station local coordinate system.

This is the position of the beginning of the track i.e. closest to the interaction point. Usually in the first pixel plane.

Parameters
newYLocaltrack coordinate along Z axis in station local coordinate system

◆ stationID()

int xAOD::AFPTrack_v1::stationID ( ) const

Index of the station where track was reconstructed.

Stations indexing follows the scheme

Station ID Station Name Station Position
0 far station A side z = 217 m
1 near station A side z = 205 m
2 near station C side z = -205 m
3 far station C side z = -217 m
Returns
index of the station

◆ toPersistent()

void xAOD::AFPTrack_v1::toPersistent ( )

Function making sure that the object is ready for persistification i.e. saving.

Definition at line 44 of file AFPTrack_v1.cxx.

44 {
45 // Prepare the hits links for persistification:
46 if( hitsAcc.isAvailableWritable( *this ) ) {
47 std::vector<AFPHitLink_t>::iterator end = hitsAcc( *this ).end();
48 for(std::vector<AFPHitLink_t>::iterator itr = hitsAcc( *this ).begin(); itr != end; ++itr )
49 itr->toPersistent();
50
51 }
52
53 return;
54 }

◆ xLocal()

float xAOD::AFPTrack_v1::xLocal ( ) const

Track position along X axis in station local coordinate system.

This is the position of the beginning of the track i.e. closest to the interaction point. Usually in the first pixel plane.

◆ xSlope()

float xAOD::AFPTrack_v1::xSlope ( ) const

Slope of the reconstructed track along X axis in local coordinate system.

Difference between X position of the first and last hit used to reconstruct track divided by their distance in Z direction.

\[ \textrm{xSlope} = \frac{x_{\textrm{end}} - x_{\textrm{begin}}} {z_{\textrm{end}} - z_{\textrm{begin}}} \]

◆ yLocal()

float xAOD::AFPTrack_v1::yLocal ( ) const

Track position along Y axis in station local coordinate system.

@copydetail xAOD::AFPTrack_v1::xLocal()

◆ ySlope()

float xAOD::AFPTrack_v1::ySlope ( ) const

Slope of the reconstructed track along Y axis in local coordinate system.

Difference between Y position of the first and last hit used to reconstruct track divided by their distance in Z direction.

\[ \textrm{ySlope} = \frac{y_{\textrm{end}} - y_{\textrm{begin}}} {z_{\textrm{end}} - z_{\textrm{begin}}} \]

◆ zLocal()

float xAOD::AFPTrack_v1::zLocal ( ) const

Track position along Z axis in station local coordinate system.

This is the position of the beginning of the track i.e. closest to the interaction point. Usually in the first pixel plane.


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