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

#include <TrackSegment.h>

Public Types

using mutable_type = MutableTrackSegment
 
using collection_type = TrackSegmentCollection
 

Public Member Functions

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

Static Public Member Functions

static TrackSegment makeEmpty ()
 

Friends

class MutableTrackSegment
 
class TrackSegmentCollection
 
class edm4eic::TrackSegmentCollectionData
 
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

Member Typedef Documentation

◆ collection_type

◆ mutable_type

Constructor & Destructor Documentation

◆ TrackSegment() [1/3]

edm4eic::TrackSegment::TrackSegment ( )

default constructor

◆ TrackSegment() [2/3]

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

Constructor initializing all members.

◆ TrackSegment() [3/3]

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

copy constructor

◆ ~TrackSegment()

edm4eic::TrackSegment::~TrackSegment ( )
default

destructor

Member Function Documentation

◆ clone()

MutableTrackSegment edm4eic::TrackSegment::clone ( ) const

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

◆ getLength()

float edm4eic::TrackSegment::getLength ( ) const

Access the Pathlength from the first to the last point.

◆ getLengthError()

float edm4eic::TrackSegment::getLengthError ( ) const

Access the Error on the segment length.

◆ getObjectID()

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

◆ getPoints() [1/2]

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

◆ getPoints() [2/2]

edm4eic::TrackPoint edm4eic::TrackSegment::getPoints ( std::size_t index) const

◆ getTrack()

const edm4eic::Track edm4eic::TrackSegment::getTrack ( ) const

Access the Track used for this projection.

◆ id()

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

◆ isAvailable()

bool edm4eic::TrackSegment::isAvailable ( ) const

check whether the object is actually available

◆ makeEmpty()

TrackSegment edm4eic::TrackSegment::makeEmpty ( )
static

◆ operator<()

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

◆ operator=()

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

copy-assignment operator

◆ operator==() [1/2]

bool edm4eic::TrackSegment::operator== ( const MutableTrackSegment & other) const

◆ operator==() [2/2]

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

◆ points_begin()

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

◆ points_end()

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

◆ points_size()

std::size_t edm4eic::TrackSegment::points_size ( ) const

◆ unlink()

void edm4eic::TrackSegment::unlink ( )
inline

disconnect from TrackSegmentObj instance

Friends And Related Symbol Documentation

◆ edm4eic::TrackSegmentCollectionData

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