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

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

#include <AFPTrack_v2.h>

Inheritance diagram for xAOD::AFPTrack_v2:
Collaboration diagram for xAOD::AFPTrack_v2:

Public Types

typedef ElementLink< AFPSiHitsClusterContainerAFPClusterLink_t
 Type of a link to the cluster.

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 layers that the track passes through.
void setNHoles (unsigned int nHoles)
 Set number of empty pixels that the track passes through.
int nClusters () const
 Number of clusters used to reconstruct the track.
void setNClusters (int nClusters)
 Set number of clusters used to reconstruct the track.
const std::vector< AFPClusterLink_t > & clusters () const
 Vector of links to clusters that were used to reconstruct the track.
void setClusters (const std::vector< AFPClusterLink_t > &newClustersVector)
 Set vector of links to clusters used for track reconstruction.
void addCluster (const AFPClusterLink_t &newCluster)
 Add a link to a cluster used to reconstruct the track.
float chi2 () const
 \(\chi^2\) value of the track fit to the selected clusters.
void setChi2 (float newFChi2)
 Set \(\chi^2\) value of the track fit to the selected clusters.
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 36 of file AFPTrack_v2.h.

Member Typedef Documentation

◆ AFPClusterLink_t

Type of a link to the cluster.

Definition at line 40 of file AFPTrack_v2.h.

Member Function Documentation

◆ addCluster()

void xAOD::AFPTrack_v2::addCluster ( const AFPClusterLink_t & newCluster)

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

A new link to the cluster is added to the existing vector of links to the clusters used to reconstruct the track.

Parameters
newClusterlink to the cluster used to reconstruct the track

Definition at line 38 of file AFPTrack_v2.cxx.

39 {
40 clustersAcc( *this ).push_back( link );
41 }
static const SG::AuxElement::Accessor< std::vector< AFPTrack_v2::AFPClusterLink_t > > clustersAcc("clusters")

◆ algID()

int xAOD::AFPTrack_v2::algID ( ) const

Identification number of the algorithm used to reconstruct the track.

It is advised to use class xAOD::AFPTrackRecoAlgID instead of integers to process this information. In this class the numbering scheme is explained.

Returns
identification number of the algorithm used to reconstruct the track (see xAOD::AFPTrackRecoAlgID )

◆ chi2()

float xAOD::AFPTrack_v2::chi2 ( ) const

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

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

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

◆ clusters()

const std::vector< AFPClusterLink_t > & xAOD::AFPTrack_v2::clusters ( ) const

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

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

Note
Returns

◆ nClusters()

int xAOD::AFPTrack_v2::nClusters ( ) const

Number of clusters used to reconstruct the track.

Returns
number of clusters used to reconstruct the track.

◆ nHoles()

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

Number of empty layers that the track passes through.

Number of layers 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_v2::setAlgID ( int newIAlgID)

Set reconstruction algorithm identification number.

It is advised to use class xAOD::AFPTrackRecoAlgID instead of integers to process this information. In this class the numbering scheme is explained.

Returns
identification number of the algorithm used to reconstruct the track (see xAOD::AFPTrackRecoAlgID )
Parameters
newIAlgIDidentification number of the algorithm used to reconstruct the track

◆ setChi2()

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

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

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

◆ setClusters()

void xAOD::AFPTrack_v2::setClusters ( const std::vector< AFPClusterLink_t > & newClustersVector)

Set vector of links to clusters used for track reconstruction.

Parameters
newClustersVectorvector of links to clusters used for track reconstruction

◆ setNClusters()

void xAOD::AFPTrack_v2::setNClusters ( int nClusters)

Set number of clusters used to reconstruct the track.

Parameters
nClustersnumber of clusters used to reconstruct the track

◆ setNHoles()

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

Set number of empty pixels that the track passes through.

Number of layers 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_v2::setStationID ( int stationID)

Set index of the station where track was reconstructed.

It is advised to use class xAOD::AFPStationID instead of integers to process this information. In this class the numbering scheme is explained.

Returns
index of the station (see class xAOD::AFPStationID )
Parameters
stationIDindex of the station where track was reconstructed

◆ setXLocal()

void xAOD::AFPTrack_v2::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_v2::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 cluster 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_v2::setYLocal ( float newYLocal)

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

@copydetail xAOD::AFPTrack_v2::xLocal()

Parameters
newYLocaltrack position along Y axis in station local coordinate system

◆ setYSlope()

void xAOD::AFPTrack_v2::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 cluster 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_v2::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_v2::stationID ( ) const

Index of the station where track was reconstructed.

It is advised to use class xAOD::AFPStationID instead of integers to process this information. In this class the numbering scheme is explained.

Returns
index of the station (see class xAOD::AFPStationID )

◆ toPersistent()

void xAOD::AFPTrack_v2::toPersistent ( )

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

Definition at line 43 of file AFPTrack_v2.cxx.

43 {
44 // Prepare the clusters links for persistification:
45 if( clustersAcc.isAvailableWritable( *this ) ) {
46 std::vector<AFPTrack_v2::AFPClusterLink_t>::iterator end = clustersAcc( *this ).end();
47 for(std::vector<AFPTrack_v2::AFPClusterLink_t>::iterator itr = clustersAcc( *this ).begin(); itr != end; ++itr )
48 itr->toPersistent();
49
50 }
51 }

◆ xLocal()

float xAOD::AFPTrack_v2::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_v2::xSlope ( ) const

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

Difference between X position of the first and last cluster 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_v2::yLocal ( ) const

Track position along Y axis in station local coordinate system.

@copydetail xAOD::AFPTrack_v2::xLocal()

◆ ySlope()

float xAOD::AFPTrack_v2::ySlope ( ) const

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

Difference between Y position of the first and last cluster 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_v2::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: