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

track for internal use More...

#include <Track.h>

Public Member Functions

 Track ()=default
 
 ~Track ()=default
 
 Track (const Track &track)
 
Trackoperator= (const Track &track)=delete
 
 Track (Track &&)=delete
 
Trackoperator= (Track &&)=delete
 
int getNClusters () const
 Return the number of attached clusters.
 
int getNDF () const
 Return the number of degrees of freedom of the track.
 
const TrackParamfirst () const
 Return a reference to the track parameters at first cluster.
 
const TrackParamlast () const
 Return a reference to the track parameters at last cluster.
 
auto begin ()
 Return an iterator to the track parameters at clusters (point to the first one)
 
auto begin () const
 
auto end ()
 Return an iterator passing the track parameters at last cluster.
 
auto end () const
 
auto rbegin ()
 Return a reverse iterator to the track parameters at clusters (point to the last one)
 
auto rbegin () const
 
auto rend ()
 Return a reverse iterator passing the track parameters at first cluster.
 
auto rend () const
 
TrackParamcreateParamAtCluster (const Cluster &cluster)
 
void addParamAtCluster (const TrackParam &param)
 
auto removeParamAtCluster (std::list< TrackParam >::iterator &itParam)
 Remove the given track parameters from the internal list and return an iterator to the parameters that follow.
 
int getNClustersInCommon (const Track &track, int stMin=0, int stMax=4) const
 
bool isBetter (const Track &track) const
 
void tagRemovableClusters (uint8_t requestedStationMask, bool request2ChInSameSt45)
 
void setCurrentParam (const TrackParam &param, int chamber)
 
TrackParamgetCurrentParam ()
 
intgetCurrentChamber ()
 get a reference to the current chamber on which the current parameters are given
 
bool hasCurrentParam () const
 check whether the current track parameters exist
 
bool areCurrentParamValid () const
 check if the current parameters are valid
 
void invalidateCurrentParam ()
 invalidate the current parameters
 
void connected (bool connected=true)
 set the flag telling if this track shares cluster(s) with another
 
bool isConnected () const
 return the flag telling if this track shares cluster(s) with another
 
void removable (bool removable=true)
 set the flag telling if this track should be deleted
 
bool isRemovable () const
 return the flag telling if this track should be deleted
 
void print () const
 

Detailed Description

track for internal use

Definition at line 32 of file Track.h.

Constructor & Destructor Documentation

◆ Track() [1/3]

o2::mch::Track::Track ( )
default

◆ ~Track()

o2::mch::Track::~Track ( )
default

◆ Track() [2/3]

o2::mch::Track::Track ( const Track track)

Copy the track, except the current parameters and chamber, which are reset

Definition at line 31 of file Track.cxx.

◆ Track() [3/3]

o2::mch::Track::Track ( Track &&  )
delete

Member Function Documentation

◆ addParamAtCluster()

void o2::mch::Track::addParamAtCluster ( const TrackParam param)

Add a copy of the given track parameters in the internal list The parameters must be associated with a cluster Keep the internal list of track parameters sorted in clusters z

Definition at line 67 of file Track.cxx.

◆ areCurrentParamValid()

bool o2::mch::Track::areCurrentParamValid ( ) const
inline

check if the current parameters are valid

Definition at line 85 of file Track.h.

◆ begin() [1/2]

auto o2::mch::Track::begin ( )
inline

Return an iterator to the track parameters at clusters (point to the first one)

Definition at line 55 of file Track.h.

◆ begin() [2/2]

auto o2::mch::Track::begin ( ) const
inline

Definition at line 56 of file Track.h.

◆ connected()

void o2::mch::Track::connected ( bool  connected = true)
inline

set the flag telling if this track shares cluster(s) with another

Definition at line 90 of file Track.h.

◆ createParamAtCluster()

TrackParam & o2::mch::Track::createParamAtCluster ( const Cluster cluster)

Create the object to hold the track parameters at the given cluster Only the z position of the track is set to the cluster z position Keep the internal list of track parameters at clusters sorted in z Return a reference to the newly created parameters

Definition at line 42 of file Track.cxx.

◆ end() [1/2]

auto o2::mch::Track::end ( )
inline

Return an iterator passing the track parameters at last cluster.

Definition at line 58 of file Track.h.

◆ end() [2/2]

auto o2::mch::Track::end ( ) const
inline

Definition at line 59 of file Track.h.

◆ first()

const TrackParam & o2::mch::Track::first ( ) const
inline

Return a reference to the track parameters at first cluster.

Definition at line 50 of file Track.h.

◆ getCurrentChamber()

int & o2::mch::Track::getCurrentChamber ( )
inline

get a reference to the current chamber on which the current parameters are given

Definition at line 81 of file Track.h.

◆ getCurrentParam()

TrackParam & o2::mch::Track::getCurrentParam ( )

get a reference to the current track parameters. Create dummy parameters if needed

Definition at line 208 of file Track.cxx.

◆ getNClusters()

int o2::mch::Track::getNClusters ( ) const
inline

Return the number of attached clusters.

Definition at line 44 of file Track.h.

◆ getNClustersInCommon()

int o2::mch::Track::getNClustersInCommon ( const Track track,
int  stMin = 0,
int  stMax = 4 
) const

Return the number of clusters in common on stations [stMin, stMax] between this track and the one given as parameter

Definition at line 92 of file Track.cxx.

◆ getNDF()

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

Return the number of degrees of freedom of the track.

Definition at line 47 of file Track.h.

◆ hasCurrentParam()

bool o2::mch::Track::hasCurrentParam ( ) const
inline

check whether the current track parameters exist

Definition at line 83 of file Track.h.

◆ invalidateCurrentParam()

void o2::mch::Track::invalidateCurrentParam ( )
inline

invalidate the current parameters

Definition at line 87 of file Track.h.

◆ isBetter()

bool o2::mch::Track::isBetter ( const Track track) const

Return true if this track is better than the one given as parameter It is better if it has more clusters or a better chi2 in case of equality

Definition at line 126 of file Track.cxx.

◆ isConnected()

bool o2::mch::Track::isConnected ( ) const
inline

return the flag telling if this track shares cluster(s) with another

Definition at line 92 of file Track.h.

◆ isRemovable()

bool o2::mch::Track::isRemovable ( ) const
inline

return the flag telling if this track should be deleted

Definition at line 97 of file Track.h.

◆ last()

const TrackParam & o2::mch::Track::last ( ) const
inline

Return a reference to the track parameters at last cluster.

Definition at line 52 of file Track.h.

◆ operator=() [1/2]

Track & o2::mch::Track::operator= ( const Track track)
delete

◆ operator=() [2/2]

Track & o2::mch::Track::operator= ( Track &&  )
delete

◆ print()

void o2::mch::Track::print ( ) const

Print the track parameters at first cluster and the Id of all associated clusters

Definition at line 218 of file Track.cxx.

◆ rbegin() [1/2]

auto o2::mch::Track::rbegin ( )
inline

Return a reverse iterator to the track parameters at clusters (point to the last one)

Definition at line 61 of file Track.h.

◆ rbegin() [2/2]

auto o2::mch::Track::rbegin ( ) const
inline

Definition at line 62 of file Track.h.

◆ removable()

void o2::mch::Track::removable ( bool  removable = true)
inline

set the flag telling if this track should be deleted

Definition at line 95 of file Track.h.

◆ removeParamAtCluster()

auto o2::mch::Track::removeParamAtCluster ( std::list< TrackParam >::iterator &  itParam)
inline

Remove the given track parameters from the internal list and return an iterator to the parameters that follow.

Definition at line 70 of file Track.h.

◆ rend() [1/2]

auto o2::mch::Track::rend ( )
inline

Return a reverse iterator passing the track parameters at first cluster.

Definition at line 64 of file Track.h.

◆ rend() [2/2]

auto o2::mch::Track::rend ( ) const
inline

Definition at line 65 of file Track.h.

◆ setCurrentParam()

void o2::mch::Track::setCurrentParam ( const TrackParam param,
int  chamber 
)

set the current track parameters and the associated chamber

Definition at line 195 of file Track.cxx.

◆ tagRemovableClusters()

void o2::mch::Track::tagRemovableClusters ( uint8_t  requestedStationMask,
bool  request2ChInSameSt45 
)

Identify clusters that can be removed from the track, with the requirement to have enough chambers fired to fulfill the tracking criteria

Definition at line 136 of file Track.cxx.


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