3#ifndef EDM4EIC_MutableTrackSegment_H
4#define EDM4EIC_MutableTrackSegment_H
11#include "podio/RelationRange.h"
14#include "podio/utilities/MaybeSharedPtr.h"
18#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
19#include "nlohmann/json_fwd.hpp"
24class TrackSegmentCollection;
84 [[deprecated(
"use getLength instead")]]
92 [[deprecated(
"use getLengthError instead")]]
102 std::vector<edm4eic::TrackPoint>::const_iterator
points_begin()
const;
103 std::vector<edm4eic::TrackPoint>::const_iterator
points_end()
const;
104 podio::RelationRange<edm4eic::TrackPoint>
getPoints()
const;
111 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackSegmentObj>{
nullptr}; }
128 swap(a.m_obj, b.m_obj);
135 podio::utils::MaybeSharedPtr<TrackSegmentObj> m_obj{
nullptr};
138#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
139void to_json(nlohmann::json& j,
const MutableTrackSegment& value);
Definition MutableTrackSegment.h:37
friend class TrackSegmentCollection
Definition MutableTrackSegment.h:39
podio::RelationRange< edm4eic::TrackPoint > getPoints() const
Definition MutableTrackSegment.cc:97
MutableTrackSegment clone(bool cloneRelations=true) const
Definition MutableTrackSegment.cc:33
MutableTrackSegment()
default constructor
Definition MutableTrackSegment.cc:19
std::vector< edm4eic::TrackPoint >::const_iterator points_begin() const
Definition MutableTrackSegment.cc:74
bool operator<(const MutableTrackSegment &other) const
Definition MutableTrackSegment.h:120
std::vector< edm4eic::TrackPoint >::const_iterator points_end() const
Definition MutableTrackSegment.cc:80
float & lengthError()
Get reference to Error on the segment length.
Definition MutableTrackSegment.cc:62
bool isAvailable() const
check whether the object is actually available
Definition MutableTrackSegment.cc:110
float & length()
Get reference to Pathlength from the first to the last point.
Definition MutableTrackSegment.cc:59
MutableTrackSegment(const MutableTrackSegment &other)=default
copy constructor
friend class TrackSegment
Definition MutableTrackSegment.h:41
friend void swap(MutableTrackSegment &a, MutableTrackSegment &b)
Definition MutableTrackSegment.h:126
bool operator!=(const TrackSegment &other) const
Definition MutableTrackSegment.h:117
~MutableTrackSegment()=default
destructor
void unlink()
disconnect from TrackSegmentObj instance
Definition MutableTrackSegment.h:111
void setLengthError(float value)
Set the Error on the segment length.
Definition MutableTrackSegment.cc:60
std::size_t points_size() const
Definition MutableTrackSegment.cc:86
bool operator==(const MutableTrackSegment &other) const
Definition MutableTrackSegment.h:113
const edm4eic::Track getTrack() const
Access the Track used for this projection.
Definition MutableTrackSegment.cc:49
bool operator!=(const MutableTrackSegment &other) const
Definition MutableTrackSegment.h:116
void setTrack(const edm4eic::Track &value)
Set the Track used for this projection.
Definition MutableTrackSegment.cc:64
const podio::ObjectID getObjectID() const
Definition MutableTrackSegment.cc:114
podio::ObjectID id() const
Definition MutableTrackSegment.h:122
float getLengthError() const
Access the Error on the segment length.
Definition MutableTrackSegment.cc:47
float getLength() const
Access the Pathlength from the first to the last point.
Definition MutableTrackSegment.cc:46
void addToPoints(const edm4eic::TrackPoint &)
Definition MutableTrackSegment.cc:69
void setLength(float value)
Set the Pathlength from the first to the last point.
Definition MutableTrackSegment.cc:57
MutableTrackSegment & operator=(MutableTrackSegment other)
copy-assignment operator
Definition MutableTrackSegment.cc:28
Definition TrackPoint.h:22
Definition TrackSegmentCollection.h:91
Definition TrackSegment.h:45
Definition TrackSegmentCollection.h:62
Definition CalorimeterHit.cc:17
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:150