EDM4eic
EIC data model
Loading...
Searching...
No Matches
edm4eic::Track Class Reference

#include <Track.h>

Public Types

using mutable_type = MutableTrack
 
using collection_type = TrackCollection
 

Public Member Functions

 Track ()
 default constructor
 
 Track (std::int32_t type, edm4hep::Vector3f position, edm4hep::Vector3f momentum, edm4eic::Cov6f positionMomentumCovariance, float time, float timeError, float charge, float chi2, std::uint32_t ndf, std::int32_t pdg)
 Constructor initializing all members.
 
 Track (const Track &other)=default
 copy constructor
 
Trackoperator= (Track other)
 copy-assignment operator
 
MutableTrack clone () const
 create a mutable deep-copy of the object with identical relations
 
 ~Track ()=default
 destructor
 
std::int32_t getType () const
 Access the Flag that defines the type of track.
 
const edm4hep::Vector3f & getPosition () const
 Access the Track 3-position at the vertex.
 
const edm4hep::Vector3f & getMomentum () const
 Access the Track 3-momentum at the vertex [GeV].
 
const edm4eic::Cov6fgetPositionMomentumCovariance () const
 Access the Covariance matrix in basis [x,y,z,px,py,pz].
 
float getTime () const
 Access the Track time at the vertex [ns].
 
float getTimeError () const
 Access the Error on the track vertex time.
 
float getCharge () const
 Access the Particle charge.
 
float getChi2 () const
 Access the Total chi2.
 
std::uint32_t getNdf () const
 Access the Number of degrees of freedom.
 
std::int32_t getPdg () const
 Access the PDG particle ID hypothesis.
 
const edm4eic::Trajectory getTrajectory () const
 Access the Trajectory of this track.
 
std::size_t measurements_size () const
 
edm4eic::Measurement2D getMeasurements (std::size_t) const
 
std::vector< edm4eic::Measurement2D >::const_iterator measurements_begin () const
 
std::vector< edm4eic::Measurement2D >::const_iterator measurements_end () const
 
podio::RelationRange< edm4eic::Measurement2DgetMeasurements () const
 
std::size_t tracks_size () const
 
edm4eic::Track getTracks (std::size_t) const
 
std::vector< edm4eic::Track >::const_iterator tracks_begin () const
 
std::vector< edm4eic::Track >::const_iterator tracks_end () const
 
podio::RelationRange< edm4eic::TrackgetTracks () const
 
bool isAvailable () const
 check whether the object is actually available
 
void unlink ()
 disconnect from TrackObj instance
 
bool operator== (const Track &other) const
 
bool operator== (const MutableTrack &other) const
 
bool operator< (const Track &other) const
 
podio::ObjectID id () const
 
const podio::ObjectID getObjectID () const
 

Static Public Member Functions

static Track makeEmpty ()
 

Friends

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

Detailed Description

Track information at the vertex

Author
: S. Joosten, J. Osborn

Member Typedef Documentation

◆ collection_type

◆ mutable_type

Constructor & Destructor Documentation

◆ Track() [1/3]

edm4eic::Track::Track ( )

default constructor

◆ Track() [2/3]

edm4eic::Track::Track ( std::int32_t type,
edm4hep::Vector3f position,
edm4hep::Vector3f momentum,
edm4eic::Cov6f positionMomentumCovariance,
float time,
float timeError,
float charge,
float chi2,
std::uint32_t ndf,
std::int32_t pdg )

Constructor initializing all members.

◆ Track() [3/3]

edm4eic::Track::Track ( const Track & other)
default

copy constructor

◆ ~Track()

edm4eic::Track::~Track ( )
default

destructor

Member Function Documentation

◆ clone()

MutableTrack edm4eic::Track::clone ( ) const

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

◆ getCharge()

float edm4eic::Track::getCharge ( ) const

Access the Particle charge.

◆ getChi2()

float edm4eic::Track::getChi2 ( ) const

Access the Total chi2.

◆ getMeasurements() [1/2]

podio::RelationRange< edm4eic::Measurement2D > edm4eic::Track::getMeasurements ( ) const

◆ getMeasurements() [2/2]

edm4eic::Measurement2D edm4eic::Track::getMeasurements ( std::size_t index) const

◆ getMomentum()

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

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

◆ getNdf()

std::uint32_t edm4eic::Track::getNdf ( ) const

Access the Number of degrees of freedom.

◆ getObjectID()

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

◆ getPdg()

std::int32_t edm4eic::Track::getPdg ( ) const

Access the PDG particle ID hypothesis.

◆ getPosition()

const edm4hep::Vector3f & edm4eic::Track::getPosition ( ) const

Access the Track 3-position at the vertex.

◆ getPositionMomentumCovariance()

const edm4eic::Cov6f & edm4eic::Track::getPositionMomentumCovariance ( ) const

Access the Covariance matrix in basis [x,y,z,px,py,pz].

◆ getTime()

float edm4eic::Track::getTime ( ) const

Access the Track time at the vertex [ns].

◆ getTimeError()

float edm4eic::Track::getTimeError ( ) const

Access the Error on the track vertex time.

◆ getTracks() [1/2]

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

◆ getTracks() [2/2]

edm4eic::Track edm4eic::Track::getTracks ( std::size_t index) const

◆ getTrajectory()

const edm4eic::Trajectory edm4eic::Track::getTrajectory ( ) const

Access the Trajectory of this track.

◆ getType()

std::int32_t edm4eic::Track::getType ( ) const

Access the Flag that defines the type of track.

◆ id()

podio::ObjectID edm4eic::Track::id ( ) const
inline

◆ isAvailable()

bool edm4eic::Track::isAvailable ( ) const

check whether the object is actually available

◆ makeEmpty()

Track edm4eic::Track::makeEmpty ( )
static

◆ measurements_begin()

std::vector< edm4eic::Measurement2D >::const_iterator edm4eic::Track::measurements_begin ( ) const

◆ measurements_end()

std::vector< edm4eic::Measurement2D >::const_iterator edm4eic::Track::measurements_end ( ) const

◆ measurements_size()

std::size_t edm4eic::Track::measurements_size ( ) const

◆ operator<()

bool edm4eic::Track::operator< ( const Track & other) const
inline

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

bool edm4eic::Track::operator== ( const MutableTrack & other) const

◆ operator==() [2/2]

bool edm4eic::Track::operator== ( const Track & other) const
inline

◆ tracks_begin()

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

◆ tracks_end()

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

◆ tracks_size()

std::size_t edm4eic::Track::tracks_size ( ) const

◆ unlink()

void edm4eic::Track::unlink ( )
inline

disconnect from TrackObj instance

Friends And Related Symbol Documentation

◆ edm4eic::TrackCollectionData

friend class edm4eic::TrackCollectionData
friend

◆ 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: