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

#include <MutableTrack.h>

Public Types

using object_type = Track
 
using collection_type = TrackCollection
 

Public Member Functions

 MutableTrack ()
 default constructor
 
 MutableTrack (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.
 
 MutableTrack (const MutableTrack &other)=default
 copy constructor
 
MutableTrackoperator= (MutableTrack other)
 copy-assignment operator
 
MutableTrack clone () const
 create a mutable deep-copy of the object with identical relations
 
 ~MutableTrack ()=default
 destructor
 
 operator Track () const
 conversion to const object
 
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.
 
void setType (std::int32_t value)
 Set the Flag that defines the type of track.
 
void setPosition (edm4hep::Vector3f value)
 Set the Track 3-position at the vertex.
 
edm4hep::Vector3f & position ()
 Get reference to Track 3-position at the vertex.
 
void setMomentum (edm4hep::Vector3f value)
 Set the Track 3-momentum at the vertex [GeV].
 
edm4hep::Vector3f & momentum ()
 Get reference to Track 3-momentum at the vertex [GeV].
 
void setPositionMomentumCovariance (edm4eic::Cov6f value)
 Set the Covariance matrix in basis [x,y,z,px,py,pz].
 
edm4eic::Cov6fpositionMomentumCovariance ()
 Get reference to Covariance matrix in basis [x,y,z,px,py,pz].
 
void setTime (float value)
 Set the Track time at the vertex [ns].
 
void setTimeError (float value)
 Set the Error on the track vertex time.
 
void setCharge (float value)
 Set the Particle charge.
 
void setChi2 (float value)
 Set the Total chi2.
 
void setNdf (std::uint32_t value)
 Set the Number of degrees of freedom.
 
void setPdg (std::int32_t value)
 Set the PDG particle ID hypothesis.
 
void setTrajectory (edm4eic::Trajectory value)
 Set the Trajectory of this track.
 
void addToMeasurements (edm4eic::Measurement2D)
 
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
 
void addToTracks (edm4eic::Track)
 
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 MutableTrack &other) const
 
bool operator== (const Track &other) const
 
bool operator< (const MutableTrack &other) const
 
podio::ObjectID 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, J. Osborn

Member Typedef Documentation

◆ collection_type

◆ object_type

Constructor & Destructor Documentation

◆ MutableTrack() [1/3]

edm4eic::MutableTrack::MutableTrack ( )

default constructor

◆ MutableTrack() [2/3]

edm4eic::MutableTrack::MutableTrack ( 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.

◆ MutableTrack() [3/3]

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

copy constructor

◆ ~MutableTrack()

edm4eic::MutableTrack::~MutableTrack ( )
default

destructor

Member Function Documentation

◆ addToMeasurements()

void edm4eic::MutableTrack::addToMeasurements ( edm4eic::Measurement2D component)

◆ addToTracks()

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

◆ clone()

MutableTrack edm4eic::MutableTrack::clone ( ) const

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

◆ getCharge()

float edm4eic::MutableTrack::getCharge ( ) const

Access the Particle charge.

◆ getChi2()

float edm4eic::MutableTrack::getChi2 ( ) const

Access the Total chi2.

◆ getMeasurements() [1/2]

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

◆ getMeasurements() [2/2]

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

◆ getMomentum()

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

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

◆ getNdf()

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

Access the Number of degrees of freedom.

◆ getObjectID()

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

◆ getPdg()

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

Access the PDG particle ID hypothesis.

◆ getPosition()

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

Access the Track 3-position at the vertex.

◆ getPositionMomentumCovariance()

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

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

◆ getTime()

float edm4eic::MutableTrack::getTime ( ) const

Access the Track time at the vertex [ns].

◆ getTimeError()

float edm4eic::MutableTrack::getTimeError ( ) const

Access the Error on the track vertex time.

◆ getTracks() [1/2]

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

◆ getTracks() [2/2]

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

◆ getTrajectory()

const edm4eic::Trajectory edm4eic::MutableTrack::getTrajectory ( ) const

Access the Trajectory of this track.

◆ getType()

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

Access the Flag that defines the type of track.

◆ id()

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

◆ isAvailable()

bool edm4eic::MutableTrack::isAvailable ( ) const

check whether the object is actually available

◆ measurements_begin()

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

◆ measurements_end()

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

◆ measurements_size()

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

◆ momentum()

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

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

◆ operator Track()

edm4eic::MutableTrack::operator Track ( ) const

conversion to const object

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ position()

edm4hep::Vector3f & edm4eic::MutableTrack::position ( )

Get reference to Track 3-position at the vertex.

◆ positionMomentumCovariance()

edm4eic::Cov6f & edm4eic::MutableTrack::positionMomentumCovariance ( )

Get reference to Covariance matrix in basis [x,y,z,px,py,pz].

◆ setCharge()

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

Set the Particle charge.

◆ setChi2()

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

Set the Total chi2.

◆ setMomentum()

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

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

◆ setNdf()

void edm4eic::MutableTrack::setNdf ( std::uint32_t value)

Set the Number of degrees of freedom.

◆ setPdg()

void edm4eic::MutableTrack::setPdg ( std::int32_t value)

Set the PDG particle ID hypothesis.

◆ setPosition()

void edm4eic::MutableTrack::setPosition ( edm4hep::Vector3f value)

Set the Track 3-position at the vertex.

◆ setPositionMomentumCovariance()

void edm4eic::MutableTrack::setPositionMomentumCovariance ( edm4eic::Cov6f value)

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

◆ setTime()

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

Set the Track time at the vertex [ns].

◆ setTimeError()

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

Set the Error on the track vertex time.

◆ setTrajectory()

void edm4eic::MutableTrack::setTrajectory ( edm4eic::Trajectory value)

Set the Trajectory of this track.

◆ setType()

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

Set the Flag that defines the type of track.

◆ tracks_begin()

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

◆ tracks_end()

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

◆ tracks_size()

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

◆ unlink()

void edm4eic::MutableTrack::unlink ( )
inline

disconnect from TrackObj instance

Friends And Related Symbol 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: