Project
Loading...
Searching...
No Matches
o2::mid::Track Class Reference

This class defines the MID track. More...

#include <Track.h>

Public Types

enum class  CovarianceParamIndex : int {
  VarX , VarY , VarSlopeX , VarSlopeY ,
  CovXSlopeX , CovYSlopeY
}
 

Public Member Functions

float getPositionX () const
 Gets the track x position.
 
float getPositionY () const
 Gets the track y position.
 
float getPositionZ () const
 Gets the track z position.
 
void setPosition (float xPos, float yPos, float zPos)
 
float getDirectionX () const
 Gets the track x direction.
 
float getDirectionY () const
 Gets the track y direction.
 
float getDirectionZ () const
 Gets the track z direction.
 
void setDirection (float xDir, float yDir, float zDir)
 
const std::array< float, 6 > & getCovarianceParameters () const
 Gets the covariance parameters.
 
float getCovarianceParameter (CovarianceParamIndex covParam) const
 returns the covariance parameter covParam
 
void setCovarianceParameters (float xErr2, float yErr2, float slopeXErr2, float slopeYErr2, float covXSlopeX, float covYSlopeY)
 
void setCovarianceParameters (const std::array< float, 6 > &covParam)
 
bool isCovarianceSet ()
 Checks if covariance is set.
 
bool propagateToZ (float zPosition)
 
int getClusterMatchedUnchecked (int chamber) const
 
int getClusterMatched (int chamber) const
 
void setClusterMatchedUnchecked (int chamber, int id)
 
void setClusterMatched (int chamber, int id)
 
float getChi2 () const
 Returns the chi2 of the track.
 
void setChi2 (float chi2)
 Sets the chi2 of the track.
 
int getNDF () const
 Returns the number of degrees of freedom of the track.
 
void setNDF (int ndf)
 Sets the number of degrees of freedom of the track.
 
float getChi2OverNDF () const
 Returns the normalized chi2 of the track.
 
bool isCompatible (const Track &track, float chi2Cut) const
 
void setFiredChamber (int chamber, int cathode)
 
bool isFiredChamber (int chamber, int cathode) const
 
uint8_t getHitMap () const
 Gets hit map.
 
uint32_t getEfficiencyWord () const
 Gets the word allowing to compute the chamber efficiency.
 
void setFiredFEEId (int uniqueFeeId)
 Sets the fired FEE ID.
 
int getFiredFEEId () const
 Gets the fired FEE ID.
 
int getFiredLocalBoard () const
 Gets the fired local board for efficiency calculation.
 
int getFiredDEId () const
 Gets the fired Detection Element ID.
 
int getFiredDeId () const
 Gets the fired Detection Element ID.
 
int getFiredColumnId () const
 Gets the fired column ID.
 
int getFiredLineId () const
 Gets the fired line ID.
 
void setEfficiencyFlag (int effFlag)
 
int getEfficiencyFlag () const
 
void setIncomplete (int cathode)
 record that the track misses information on that cathode
 
void resetIncomplete ()
 reset the flag for missing cathode information
 
bool isIncomplete (int cathode) const
 return true is the track misses information on that cathode
 
void setEfficiencyWord (uint32_t efficiencyWord)
 set efficiency word (public function)
 

Friends

std::ostream & operator<< (std::ostream &stream, const Track &track)
 Overload ostream operator for MID track.
 

Detailed Description

This class defines the MID track.

Definition at line 29 of file Track.h.

Member Enumeration Documentation

◆ CovarianceParamIndex

Enumerator
VarX 

Variance on X position.

VarY 

Variance on Y position.

VarSlopeX 

Variance on X slope.

VarSlopeY 

Variance on Y slope.

CovXSlopeX 

Covariance on X position and slope.

CovYSlopeY 

Covariance on Y position and slope.

Definition at line 58 of file Track.h.

Member Function Documentation

◆ getChi2()

float o2::mid::Track::getChi2 ( ) const
inline

Returns the chi2 of the track.

Definition at line 114 of file Track.h.

◆ getChi2OverNDF()

float o2::mid::Track::getChi2OverNDF ( ) const
inline

Returns the normalized chi2 of the track.

Definition at line 122 of file Track.h.

◆ getClusterMatched()

int o2::mid::Track::getClusterMatched ( int  chamber) const

Gets the matched clusters

Parameters
chamberChamber ID (from 0 to 3)

Definition at line 47 of file Track.cxx.

◆ getClusterMatchedUnchecked()

int o2::mid::Track::getClusterMatchedUnchecked ( int  chamber) const
inline

Gets the matched clusters without bound checking

Parameters
chamberChamber ID (from 0 to 3)

Definition at line 98 of file Track.h.

◆ getCovarianceParameter()

float o2::mid::Track::getCovarianceParameter ( CovarianceParamIndex  covParam) const
inline

returns the covariance parameter covParam

Definition at line 70 of file Track.h.

◆ getCovarianceParameters()

const std::array< float, 6 > & o2::mid::Track::getCovarianceParameters ( ) const
inline

Gets the covariance parameters.

Definition at line 68 of file Track.h.

◆ getDirectionX()

float o2::mid::Track::getDirectionX ( ) const
inline

Gets the track x direction.

Definition at line 46 of file Track.h.

◆ getDirectionY()

float o2::mid::Track::getDirectionY ( ) const
inline

Gets the track y direction.

Definition at line 48 of file Track.h.

◆ getDirectionZ()

float o2::mid::Track::getDirectionZ ( ) const
inline

Gets the track z direction.

Definition at line 50 of file Track.h.

◆ getEfficiencyFlag()

int o2::mid::Track::getEfficiencyFlag ( ) const
inline

Gets the flag for efficiency calculation

Returns
  • 0 track cannot be used for efficiency calculation
  • 1 track can be used to estimate chamber efficiency
  • 2 track can be used to estimate detection element efficiency
  • 3 track can be used to estimate local board efficiency

Definition at line 177 of file Track.h.

◆ getEfficiencyWord()

uint32_t o2::mid::Track::getEfficiencyWord ( ) const
inline

Gets the word allowing to compute the chamber efficiency.

Definition at line 144 of file Track.h.

◆ getFiredColumnId()

int o2::mid::Track::getFiredColumnId ( ) const
inline

Gets the fired column ID.

Definition at line 162 of file Track.h.

◆ getFiredDEId()

int o2::mid::Track::getFiredDEId ( ) const
inline

Gets the fired Detection Element ID.

Definition at line 156 of file Track.h.

◆ getFiredDeId()

int o2::mid::Track::getFiredDeId ( ) const
inline

Gets the fired Detection Element ID.

Definition at line 159 of file Track.h.

◆ getFiredFEEId()

int o2::mid::Track::getFiredFEEId ( ) const
inline

Gets the fired FEE ID.

Definition at line 150 of file Track.h.

◆ getFiredLineId()

int o2::mid::Track::getFiredLineId ( ) const
inline

Gets the fired line ID.

Definition at line 165 of file Track.h.

◆ getFiredLocalBoard()

int o2::mid::Track::getFiredLocalBoard ( ) const
inline

Gets the fired local board for efficiency calculation.

Definition at line 153 of file Track.h.

◆ getHitMap()

uint8_t o2::mid::Track::getHitMap ( ) const
inline

Gets hit map.

Definition at line 141 of file Track.h.

◆ getNDF()

int o2::mid::Track::getNDF ( ) const
inline

Returns the number of degrees of freedom of the track.

Definition at line 118 of file Track.h.

◆ getPositionX()

float o2::mid::Track::getPositionX ( ) const
inline

Gets the track x position.

Definition at line 33 of file Track.h.

◆ getPositionY()

float o2::mid::Track::getPositionY ( ) const
inline

Gets the track y position.

Definition at line 35 of file Track.h.

◆ getPositionZ()

float o2::mid::Track::getPositionZ ( ) const
inline

Gets the track z position.

Definition at line 37 of file Track.h.

◆ isCompatible()

bool o2::mid::Track::isCompatible ( const Track track,
float  chi2Cut 
) const

Check if tracks are compatible within uncertainties

Parameters
trackTrack for which compatibility is checked
chi2CutChi2 cut for the comparison

Definition at line 101 of file Track.cxx.

◆ isCovarianceSet()

bool o2::mid::Track::isCovarianceSet ( )
inline

Checks if covariance is set.

Definition at line 89 of file Track.h.

◆ isFiredChamber()

bool o2::mid::Track::isFiredChamber ( int  chamber,
int  cathode 
) const
inline

Is fired chamber

Parameters
chamberChamber ID (from 0 to 3)
cathodeCathode (0 or 1)
Returns
true if the chamber was fired

Definition at line 138 of file Track.h.

◆ isIncomplete()

bool o2::mid::Track::isIncomplete ( int  cathode) const
inline

return true is the track misses information on that cathode

Definition at line 186 of file Track.h.

◆ propagateToZ()

bool o2::mid::Track::propagateToZ ( float  zPosition)

Propagates the track parameter to z position with a linear extrapolation

Parameters
zPositionZ position
Returns
false if the track parameters were already at the required z

Definition at line 65 of file Track.cxx.

◆ resetIncomplete()

void o2::mid::Track::resetIncomplete ( )
inline

reset the flag for missing cathode information

Definition at line 183 of file Track.h.

◆ setChi2()

void o2::mid::Track::setChi2 ( float  chi2)
inline

Sets the chi2 of the track.

Definition at line 116 of file Track.h.

◆ setClusterMatched()

void o2::mid::Track::setClusterMatched ( int  chamber,
int  id 
)

Sets the matched clusters

Parameters
chamberChamber ID (from 0 to 3)
idCluster ID

Definition at line 56 of file Track.cxx.

◆ setClusterMatchedUnchecked()

void o2::mid::Track::setClusterMatchedUnchecked ( int  chamber,
int  id 
)
inline

Sets the matched clusters without bound checking

Parameters
chamberChamber ID (from 0 to 3)
idCluster ID

Definition at line 106 of file Track.h.

◆ setCovarianceParameters() [1/2]

void o2::mid::Track::setCovarianceParameters ( const std::array< float, 6 > &  covParam)
inline

Sets the covariance matrix

Parameters
covParamarray with the covariance parameters

Definition at line 86 of file Track.h.

◆ setCovarianceParameters() [2/2]

void o2::mid::Track::setCovarianceParameters ( float  xErr2,
float  yErr2,
float  slopeXErr2,
float  slopeYErr2,
float  covXSlopeX,
float  covYSlopeY 
)

Sets the covariance parameters

Parameters
xErr2Variance on x position
yErr2Variance on y position
slopeXErr2Variance on x slope
slopeYErr2Variance on y slope
covXSlopeXCovariance on x position and slope
covYSlopeYCovariance on y position and slope

Definition at line 27 of file Track.cxx.

◆ setDirection()

void o2::mid::Track::setDirection ( float  xDir,
float  yDir,
float  zDir 
)

Ses the track direction

Parameters
xDirx direction
yDiry direction
zDirz direction

Definition at line 37 of file Track.cxx.

◆ setEfficiencyFlag()

void o2::mid::Track::setEfficiencyFlag ( int  effFlag)
inline

Sets the flag for efficiency calculation

Parameters
effFlagefficiency flag

Definition at line 169 of file Track.h.

◆ setEfficiencyWord()

void o2::mid::Track::setEfficiencyWord ( uint32_t  efficiencyWord)
inline

set efficiency word (public function)

Definition at line 192 of file Track.h.

◆ setFiredChamber()

void o2::mid::Track::setFiredChamber ( int  chamber,
int  cathode 
)
inline

Sets the fired chamber

Parameters
chamberChamber ID (from 0 to 3)
cathodeCathode (0 or 1)

Definition at line 132 of file Track.h.

◆ setFiredFEEId()

void o2::mid::Track::setFiredFEEId ( int  uniqueFeeId)
inline

Sets the fired FEE ID.

Definition at line 147 of file Track.h.

◆ setIncomplete()

void o2::mid::Track::setIncomplete ( int  cathode)
inline

record that the track misses information on that cathode

Definition at line 180 of file Track.h.

◆ setNDF()

void o2::mid::Track::setNDF ( int  ndf)
inline

Sets the number of degrees of freedom of the track.

Definition at line 120 of file Track.h.

◆ setPosition()

void o2::mid::Track::setPosition ( float  xPos,
float  yPos,
float  zPos 
)

Ses the track position

Parameters
xPosx position
yPosy position
zPosz position

Definition at line 42 of file Track.cxx.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const Track track 
)
friend

Overload ostream operator for MID track.

Definition at line 170 of file Track.cxx.


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