Class representing a track reconstructed in AFP. More...
#include <AFPTrack_v1.h>
Public Types | |
typedef ElementLink < AFPSiHitContainer > | AFPHitLink_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. | |
int | nHoles () const |
Number of empty pixels that the track passes through. | |
void | setNHoles (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 |
value of the track fit to the selected pixels. | |
void | setChi2 (float newFChi2) |
Set 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. |
Class representing a track reconstructed in AFP.
This class provides access to the information about tracks that were reconstructed using AFP information.
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.
newHit | link to the pixel used to reconstruct the track |
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 | |
float xAOD::AFPTrack_v1::chi2 | ( | ) | const |
value of the track fit to the selected pixels.
This value gives information about how well the fitted track lays on the selected pixels.
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.
{.cpp} xAOD::AFPSiHit* hit = *(hits().at(0));
int xAOD::AFPTrack_v1::nHits | ( | ) | const |
Number of pixels used to reconstruct the track.
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.
void xAOD::AFPTrack_v1::setAlgID | ( | int | newIAlgID | ) |
Set reconstruction algorithm identification number.
The following coding is used.| ID | Algorithm | Comments | | :-: | ---------------------- | -------- | | 0 | Basic Kalman algorithm | |
newIAlgID | identification number of the algorithm used to reconstruct the track |
void xAOD::AFPTrack_v1::setChi2 | ( | float | newFChi2 | ) |
Set value of the track fit to the selected pixels.
newFChi2 | value of the track fit to the selected pixels |
void xAOD::AFPTrack_v1::setHits | ( | const std::vector< AFPHitLink_t > & | newHitsVector | ) |
Set vector of links to pixels used for track reconstruction.
newHitsVector | vector of links to pixels used for track reconstruction |
void xAOD::AFPTrack_v1::setNHits | ( | int | nHits | ) |
Set number of pixels used to reconstruct the track.
nHits | number of pixels used to reconstruct the track |
void xAOD::AFPTrack_v1::setNHoles | ( | 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.
nHoles | number of empty pixels that the track passes through |
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 |
stationID | index of the station where track was reconstructed |
void xAOD::AFPTrack_v1::setXLocal | ( | float | newXLocal | ) |
Set track position along X axis in station local coordinate system.
newXLocal | track coordinate along X axis in station local coordinate system |
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.
newXSlope | slope of the track along X axis in local coordinate system |
void xAOD::AFPTrack_v1::setYLocal | ( | float | newYLocal | ) |
Set track coordinate along Y axis in station local coordinate system.
newYLocal | track position along Y axis in station local coordinate system |
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.
newYSlope | slope of the track along Y axis in local coordinate system |
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.
newYLocal | track coordinate along Z axis in station local coordinate system |
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 |
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.
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.
float xAOD::AFPTrack_v1::yLocal | ( | ) | const |
Track position along Y axis in station local coordinate system.
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.
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.