EICd
EIC data model
eicd::Track Class Reference

#include <Track.h>

Public Member Functions

 Track ()
 default constructor More...
 
 Track (std::int32_t type, float chi2, std::int32_t ndf, edm4hep::Vector3f momentum, eicd::Cov3f momentumError, float time, float timeError, float charge)
 
 Track (TrackObj *obj)
 constructor from existing TrackObj More...
 
 Track (const Track &other)
 copy constructor More...
 
Trackoperator= (Track other)
 copy-assignment operator More...
 
MutableTrack clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~Track ()
 destructor More...
 
const std::int32_t & getType () const
 Access the Flag that defines the type of track. More...
 
const float & getChi2 () const
 Access the Total chi2 (sum) of the track fit. More...
 
const std::int32_t & getNdf () const
 Access the Numbers of degrees of freedom of the track fit. More...
 
const edm4hep::Vector3f & getMomentum () const
 Access the Track 3-momentum at the vertex [GeV]. More...
 
const eicd::Cov3fgetMomentumError () const
 Access the Covariance matrix on the momentum. More...
 
const float & getTime () const
 Access the Track time at the vertex [ns]. More...
 
const float & getTimeError () const
 Access the Error on the track vertex time. More...
 
const float & getCharge () const
 Access the Particle charge. More...
 
unsigned int parameters_size () const
 
eicd::TrackParameters getParameters (unsigned int) const
 
std::vector< eicd::TrackParameters >::const_iterator parameters_begin () const
 
std::vector< eicd::TrackParameters >::const_iterator parameters_end () const
 
podio::RelationRange< eicd::TrackParametersgetParameters () const
 
unsigned int trackerHits_size () const
 
eicd::TrackerHit getTrackerHits (unsigned int) const
 
std::vector< eicd::TrackerHit >::const_iterator trackerHits_begin () const
 
std::vector< eicd::TrackerHit >::const_iterator trackerHits_end () const
 
podio::RelationRange< eicd::TrackerHitgetTrackerHits () const
 
unsigned int tracks_size () const
 
eicd::Track getTracks (unsigned int) const
 
std::vector< eicd::Track >::const_iterator tracks_begin () const
 
std::vector< eicd::Track >::const_iterator tracks_end () const
 
podio::RelationRange< eicd::TrackgetTracks () const
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from TrackObj instance More...
 
bool operator== (const Track &other) const
 
bool operator== (const MutableTrack &other) const
 
bool operator< (const Track &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class MutableTrack
 
class TrackCollection
 
class TrackCollectionIterator
 
void swap (Track &a, Track &b)
 

Detailed Description

Track information at the vertex

Author
: S. Joosten

Constructor & Destructor Documentation

◆ Track() [1/4]

eicd::Track::Track ( )

default constructor

◆ Track() [2/4]

eicd::Track::Track ( std::int32_t  type,
float  chi2,
std::int32_t  ndf,
edm4hep::Vector3f  momentum,
eicd::Cov3f  momentumError,
float  time,
float  timeError,
float  charge 
)

◆ Track() [3/4]

eicd::Track::Track ( TrackObj obj)

constructor from existing TrackObj

◆ Track() [4/4]

eicd::Track::Track ( const Track other)

copy constructor

◆ ~Track()

eicd::Track::~Track ( )

destructor

Member Function Documentation

◆ clone()

MutableTrack eicd::Track::clone ( ) const

create a mutable deep-copy of the object with identical relations

◆ getCharge()

const float & eicd::Track::getCharge ( ) const

Access the Particle charge.

◆ getChi2()

const float & eicd::Track::getChi2 ( ) const

Access the Total chi2 (sum) of the track fit.

◆ getMomentum()

const edm4hep::Vector3f & eicd::Track::getMomentum ( ) const

Access the Track 3-momentum at the vertex [GeV].

◆ getMomentumError()

const eicd::Cov3f & eicd::Track::getMomentumError ( ) const

Access the Covariance matrix on the momentum.

◆ getNdf()

const std::int32_t & eicd::Track::getNdf ( ) const

Access the Numbers of degrees of freedom of the track fit.

◆ getObjectID()

const podio::ObjectID eicd::Track::getObjectID ( ) const

◆ getParameters() [1/2]

podio::RelationRange< eicd::TrackParameters > eicd::Track::getParameters ( ) const

◆ getParameters() [2/2]

eicd::TrackParameters eicd::Track::getParameters ( unsigned int  index) const

◆ getTime()

const float & eicd::Track::getTime ( ) const

Access the Track time at the vertex [ns].

◆ getTimeError()

const float & eicd::Track::getTimeError ( ) const

Access the Error on the track vertex time.

◆ getTrackerHits() [1/2]

podio::RelationRange< eicd::TrackerHit > eicd::Track::getTrackerHits ( ) const

◆ getTrackerHits() [2/2]

eicd::TrackerHit eicd::Track::getTrackerHits ( unsigned int  index) const

◆ getTracks() [1/2]

podio::RelationRange< eicd::Track > eicd::Track::getTracks ( ) const

◆ getTracks() [2/2]

eicd::Track eicd::Track::getTracks ( unsigned int  index) const

◆ getType()

const std::int32_t & eicd::Track::getType ( ) const

Access the Flag that defines the type of track.

◆ id()

unsigned int eicd::Track::id ( ) const
inline

◆ isAvailable()

bool eicd::Track::isAvailable ( ) const

check whether the object is actually available

◆ operator<()

bool eicd::Track::operator< ( const Track other) const
inline

◆ operator=()

Track & eicd::Track::operator= ( Track  other)

copy-assignment operator

◆ operator==() [1/2]

bool eicd::Track::operator== ( const MutableTrack other) const

◆ operator==() [2/2]

bool eicd::Track::operator== ( const Track other) const
inline

◆ parameters_begin()

std::vector< eicd::TrackParameters >::const_iterator eicd::Track::parameters_begin ( ) const

◆ parameters_end()

std::vector< eicd::TrackParameters >::const_iterator eicd::Track::parameters_end ( ) const

◆ parameters_size()

unsigned int eicd::Track::parameters_size ( ) const

◆ trackerHits_begin()

std::vector< eicd::TrackerHit >::const_iterator eicd::Track::trackerHits_begin ( ) const

◆ trackerHits_end()

std::vector< eicd::TrackerHit >::const_iterator eicd::Track::trackerHits_end ( ) const

◆ trackerHits_size()

unsigned int eicd::Track::trackerHits_size ( ) const

◆ tracks_begin()

std::vector< eicd::Track >::const_iterator eicd::Track::tracks_begin ( ) const

◆ tracks_end()

std::vector< eicd::Track >::const_iterator eicd::Track::tracks_end ( ) const

◆ tracks_size()

unsigned int eicd::Track::tracks_size ( ) const

◆ unlink()

void eicd::Track::unlink ( )
inline

disconnect from TrackObj instance

Friends And Related Function Documentation

◆ MutableTrack

friend class MutableTrack
friend

◆ swap

void swap ( Track a,
Track b 
)
friend

◆ TrackCollection

friend class TrackCollection
friend

◆ TrackCollectionIterator

friend class TrackCollectionIterator
friend

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