EICd
EIC data model
eicd::MutableTrack Class Reference

#include <MutableTrack.h>

Public Member Functions

 MutableTrack ()
 default constructor More...
 
 MutableTrack (std::int32_t type, float chi2, std::int32_t ndf, edm4hep::Vector3f momentum, eicd::Cov3f momentumError, float time, float timeError, float charge)
 
 MutableTrack (TrackObj *obj)
 constructor from existing TrackObj More...
 
 MutableTrack (const MutableTrack &other)
 copy constructor More...
 
MutableTrackoperator= (MutableTrack other)
 copy-assignment operator More...
 
MutableTrack clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~MutableTrack ()
 destructor More...
 
 operator Track () const
 conversion to const object 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...
 
void setType (std::int32_t value)
 Set the Flag that defines the type of track. More...
 
void setChi2 (float value)
 Set the Total chi2 (sum) of the track fit. More...
 
void setNdf (std::int32_t value)
 Set the Numbers of degrees of freedom of the track fit. More...
 
void setMomentum (edm4hep::Vector3f value)
 Set the Track 3-momentum at the vertex [GeV]. More...
 
edm4hep::Vector3f & momentum ()
 Get reference to Track 3-momentum at the vertex [GeV]. More...
 
void setMomentumError (eicd::Cov3f value)
 Set the Covariance matrix on the momentum. More...
 
eicd::Cov3fmomentumError ()
 Get reference to Covariance matrix on the momentum. More...
 
void setTime (float value)
 Set the Track time at the vertex [ns]. More...
 
void setTimeError (float value)
 Set the Error on the track vertex time. More...
 
void setCharge (float value)
 Set the Particle charge. More...
 
void addToParameters (eicd::TrackParameters)
 
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
 
void addToTrackerHits (eicd::TrackerHit)
 
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
 
void addToTracks (eicd::Track)
 
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 MutableTrack &other) const
 
bool operator== (const Track &other) const
 
bool operator< (const MutableTrack &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

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

Detailed Description

Track information at the vertex

Author
: S. Joosten

Constructor & Destructor Documentation

◆ MutableTrack() [1/4]

eicd::MutableTrack::MutableTrack ( )

default constructor

◆ MutableTrack() [2/4]

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

◆ MutableTrack() [3/4]

eicd::MutableTrack::MutableTrack ( TrackObj obj)

constructor from existing TrackObj

◆ MutableTrack() [4/4]

eicd::MutableTrack::MutableTrack ( const MutableTrack other)

copy constructor

◆ ~MutableTrack()

eicd::MutableTrack::~MutableTrack ( )

destructor

Member Function Documentation

◆ addToParameters()

void eicd::MutableTrack::addToParameters ( eicd::TrackParameters  component)

◆ addToTrackerHits()

void eicd::MutableTrack::addToTrackerHits ( eicd::TrackerHit  component)

◆ addToTracks()

void eicd::MutableTrack::addToTracks ( eicd::Track  component)

◆ clone()

MutableTrack eicd::MutableTrack::clone ( ) const

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

◆ getCharge()

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

Access the Particle charge.

◆ getChi2()

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

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

◆ getMomentum()

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

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

◆ getMomentumError()

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

Access the Covariance matrix on the momentum.

◆ getNdf()

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

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

◆ getObjectID()

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

◆ getParameters() [1/2]

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

◆ getParameters() [2/2]

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

◆ getTime()

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

Access the Track time at the vertex [ns].

◆ getTimeError()

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

Access the Error on the track vertex time.

◆ getTrackerHits() [1/2]

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

◆ getTrackerHits() [2/2]

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

◆ getTracks() [1/2]

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

◆ getTracks() [2/2]

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

◆ getType()

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

Access the Flag that defines the type of track.

◆ id()

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

◆ isAvailable()

bool eicd::MutableTrack::isAvailable ( ) const

check whether the object is actually available

◆ momentum()

edm4hep::Vector3f & eicd::MutableTrack::momentum ( )

Get reference to Track 3-momentum at the vertex [GeV].

◆ momentumError()

eicd::Cov3f & eicd::MutableTrack::momentumError ( )

Get reference to Covariance matrix on the momentum.

◆ operator Track()

eicd::MutableTrack::operator Track ( ) const

conversion to const object

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ parameters_begin()

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

◆ parameters_end()

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

◆ parameters_size()

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

◆ setCharge()

void eicd::MutableTrack::setCharge ( float  value)

Set the Particle charge.

◆ setChi2()

void eicd::MutableTrack::setChi2 ( float  value)

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

◆ setMomentum()

void eicd::MutableTrack::setMomentum ( edm4hep::Vector3f  value)

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

◆ setMomentumError()

void eicd::MutableTrack::setMomentumError ( eicd::Cov3f  value)

Set the Covariance matrix on the momentum.

◆ setNdf()

void eicd::MutableTrack::setNdf ( std::int32_t  value)

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

◆ setTime()

void eicd::MutableTrack::setTime ( float  value)

Set the Track time at the vertex [ns].

◆ setTimeError()

void eicd::MutableTrack::setTimeError ( float  value)

Set the Error on the track vertex time.

◆ setType()

void eicd::MutableTrack::setType ( std::int32_t  value)

Set the Flag that defines the type of track.

◆ trackerHits_begin()

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

◆ trackerHits_end()

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

◆ trackerHits_size()

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

◆ tracks_begin()

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

◆ tracks_end()

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

◆ tracks_size()

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

◆ unlink()

void eicd::MutableTrack::unlink ( )
inline

disconnect from TrackObj instance

Friends And Related Function Documentation

◆ swap

void swap ( MutableTrack a,
MutableTrack b 
)
friend

◆ Track

friend class Track
friend

◆ TrackCollection

friend class TrackCollection
friend

◆ TrackMutableCollectionIterator

friend class TrackMutableCollectionIterator
friend

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