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 (bool cloneRelations=true) const
 
 ~MutableTrack ()=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.
 
void setType (std::int32_t value)
 Set the Flag that defines the type of track.
 
std::int32_t & getType ()
 Get mutable reference to Flag that defines the type of track.
 
std::int32_t & type ()
 Get reference to Flag that defines the type of track.
 
void setPosition (edm4hep::Vector3f value)
 Set the Track 3-position at the vertex.
 
edm4hep::Vector3f & getPosition ()
 Get mutable reference to 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 & getMomentum ()
 Get mutable reference to 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::Cov6fgetPositionMomentumCovariance ()
 Get mutable reference to 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].
 
float & getTime ()
 Get mutable reference to Track time at the vertex [ns].
 
float & time ()
 Get reference to Track time at the vertex [ns].
 
void setTimeError (float value)
 Set the Error on the track vertex time.
 
float & getTimeError ()
 Get mutable reference to Error on the track vertex time.
 
float & timeError ()
 Get reference to Error on the track vertex time.
 
void setCharge (float value)
 Set the Particle charge.
 
float & getCharge ()
 Get mutable reference to Particle charge.
 
float & charge ()
 Get reference to Particle charge.
 
void setChi2 (float value)
 Set the Total chi2.
 
float & getChi2 ()
 Get mutable reference to Total chi2.
 
float & chi2 ()
 Get reference to Total chi2.
 
void setNdf (std::uint32_t value)
 Set the Number of degrees of freedom.
 
std::uint32_t & getNdf ()
 Get mutable reference to Number of degrees of freedom.
 
std::uint32_t & ndf ()
 Get reference to Number of degrees of freedom.
 
void setPdg (std::int32_t value)
 Set the PDG particle ID hypothesis.
 
std::int32_t & getPdg ()
 Get mutable reference to PDG particle ID hypothesis.
 
std::int32_t & pdg ()
 Get reference to PDG particle ID hypothesis.
 
void setTrajectory (const edm4eic::Trajectory &value)
 Set the Trajectory of this track.
 
void addToMeasurements (const 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 (const 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
 
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 ( const edm4eic::Measurement2D & component)

◆ addToTracks()

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

◆ charge()

float & edm4eic::MutableTrack::charge ( )

Get reference to Particle charge.

◆ chi2()

float & edm4eic::MutableTrack::chi2 ( )

Get reference to Total chi2.

◆ clone()

MutableTrack edm4eic::MutableTrack::clone ( bool cloneRelations = true) const

create a mutable deep-copy of the object with identical relations if cloneRelations=false, the relations are not cloned and will be empty

◆ getCharge() [1/2]

float & edm4eic::MutableTrack::getCharge ( )

Get mutable reference to Particle charge.

◆ getCharge() [2/2]

float edm4eic::MutableTrack::getCharge ( ) const

Access the Particle charge.

◆ getChi2() [1/2]

float & edm4eic::MutableTrack::getChi2 ( )

Get mutable reference to Total chi2.

◆ getChi2() [2/2]

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() [1/2]

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

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

◆ getMomentum() [2/2]

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

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

◆ getNdf() [1/2]

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

Get mutable reference to Number of degrees of freedom.

◆ getNdf() [2/2]

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

Access the Number of degrees of freedom.

◆ getObjectID()

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

◆ getPdg() [1/2]

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

Get mutable reference to PDG particle ID hypothesis.

◆ getPdg() [2/2]

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

Access the PDG particle ID hypothesis.

◆ getPosition() [1/2]

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

Get mutable reference to Track 3-position at the vertex.

◆ getPosition() [2/2]

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

Access the Track 3-position at the vertex.

◆ getPositionMomentumCovariance() [1/2]

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

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

◆ getPositionMomentumCovariance() [2/2]

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

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

◆ getTime() [1/2]

float & edm4eic::MutableTrack::getTime ( )

Get mutable reference to Track time at the vertex [ns].

◆ getTime() [2/2]

float edm4eic::MutableTrack::getTime ( ) const

Access the Track time at the vertex [ns].

◆ getTimeError() [1/2]

float & edm4eic::MutableTrack::getTimeError ( )

Get mutable reference to Error on the track vertex time.

◆ getTimeError() [2/2]

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() [1/2]

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

Get mutable reference to Flag that defines the type of track.

◆ getType() [2/2]

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].

◆ ndf()

std::uint32_t & edm4eic::MutableTrack::ndf ( )

Get reference to Number of degrees of freedom.

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ 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

◆ pdg()

std::int32_t & edm4eic::MutableTrack::pdg ( )

Get reference to PDG particle ID hypothesis.

◆ 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 ( const 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.

◆ time()

float & edm4eic::MutableTrack::time ( )

Get reference to Track time at the vertex [ns].

◆ timeError()

float & edm4eic::MutableTrack::timeError ( )

Get reference to Error on the track vertex time.

◆ 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

◆ type()

std::int32_t & edm4eic::MutableTrack::type ( )

Get reference to Flag that defines the type of track.

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