EICd
EIC data model
eicd::TrackSegment Class Reference

#include <TrackSegment.h>

Public Member Functions

 TrackSegment ()
 default constructor More...
 
 TrackSegment (float length, float lengthError)
 
 TrackSegment (TrackSegmentObj *obj)
 constructor from existing TrackSegmentObj More...
 
 TrackSegment (const TrackSegment &other)
 copy constructor More...
 
TrackSegmentoperator= (TrackSegment other)
 copy-assignment operator More...
 
MutableTrackSegment clone () const
 create a mutable deep-copy of the object with identical relations More...
 
 ~TrackSegment ()
 destructor More...
 
const float & getLength () const
 Access the Pathlength from the first to the last point. More...
 
const float & getLengthError () const
 Access the Error on the segment length. More...
 
const eicd::Track getTrack () const
 Access the Track used for this projection. More...
 
unsigned int points_size () const
 
eicd::TrackPoint getPoints (unsigned int) const
 
std::vector< eicd::TrackPoint >::const_iterator points_begin () const
 
std::vector< eicd::TrackPoint >::const_iterator points_end () const
 
podio::RelationRange< eicd::TrackPointgetPoints () const
 
bool isAvailable () const
 check whether the object is actually available More...
 
void unlink ()
 disconnect from TrackSegmentObj instance More...
 
bool operator== (const TrackSegment &other) const
 
bool operator== (const MutableTrackSegment &other) const
 
bool operator< (const TrackSegment &other) const
 
unsigned int id () const
 
const podio::ObjectID getObjectID () const
 

Friends

class MutableTrackSegment
 
class TrackSegmentCollection
 
class TrackSegmentCollectionIterator
 
void swap (TrackSegment &a, TrackSegment &b)
 

Detailed Description

A track segment defined by one or more points along a track.

Author
: S. Joosten

Constructor & Destructor Documentation

◆ TrackSegment() [1/4]

eicd::TrackSegment::TrackSegment ( )

default constructor

◆ TrackSegment() [2/4]

eicd::TrackSegment::TrackSegment ( float  length,
float  lengthError 
)

◆ TrackSegment() [3/4]

eicd::TrackSegment::TrackSegment ( TrackSegmentObj obj)

constructor from existing TrackSegmentObj

◆ TrackSegment() [4/4]

eicd::TrackSegment::TrackSegment ( const TrackSegment other)

copy constructor

◆ ~TrackSegment()

eicd::TrackSegment::~TrackSegment ( )

destructor

Member Function Documentation

◆ clone()

MutableTrackSegment eicd::TrackSegment::clone ( ) const

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

◆ getLength()

const float & eicd::TrackSegment::getLength ( ) const

Access the Pathlength from the first to the last point.

◆ getLengthError()

const float & eicd::TrackSegment::getLengthError ( ) const

Access the Error on the segment length.

◆ getObjectID()

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

◆ getPoints() [1/2]

podio::RelationRange< eicd::TrackPoint > eicd::TrackSegment::getPoints ( ) const

◆ getPoints() [2/2]

eicd::TrackPoint eicd::TrackSegment::getPoints ( unsigned int  index) const

◆ getTrack()

const eicd::Track eicd::TrackSegment::getTrack ( ) const

Access the Track used for this projection.

◆ id()

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

◆ isAvailable()

bool eicd::TrackSegment::isAvailable ( ) const

check whether the object is actually available

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

bool eicd::TrackSegment::operator== ( const MutableTrackSegment other) const

◆ operator==() [2/2]

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

◆ points_begin()

std::vector< eicd::TrackPoint >::const_iterator eicd::TrackSegment::points_begin ( ) const

◆ points_end()

std::vector< eicd::TrackPoint >::const_iterator eicd::TrackSegment::points_end ( ) const

◆ points_size()

unsigned int eicd::TrackSegment::points_size ( ) const

◆ unlink()

void eicd::TrackSegment::unlink ( )
inline

disconnect from TrackSegmentObj instance

Friends And Related Function Documentation

◆ MutableTrackSegment

friend class MutableTrackSegment
friend

◆ swap

void swap ( TrackSegment a,
TrackSegment b 
)
friend

◆ TrackSegmentCollection

friend class TrackSegmentCollection
friend

◆ TrackSegmentCollectionIterator

friend class TrackSegmentCollectionIterator
friend

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