3#ifndef EDM4EIC_Trajectory_H
4#define EDM4EIC_Trajectory_H
10#include "podio/RelationRange.h"
14#include "podio/utilities/MaybeSharedPtr.h"
19#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
20#include "nlohmann/json_fwd.hpp"
26class MutableTrackSeed;
32class MutableTrajectory;
33class TrajectoryCollection;
34class TrajectoryCollectionData;
55 Trajectory(std::uint32_t type, std::uint32_t nStates, std::uint32_t nMeasurements, std::uint32_t nOutliers, std::uint32_t nHoles, std::uint32_t nSharedHits);
126 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrajectoryObj>{
nullptr}; }
140 swap(a.m_obj, b.m_obj);
145 explicit Trajectory(podio::utils::MaybeSharedPtr<TrajectoryObj> obj);
148 podio::utils::MaybeSharedPtr<TrajectoryObj> m_obj{
nullptr};
151std::ostream&
operator<<(std::ostream& o,
const Trajectory& value);
153#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
154void to_json(nlohmann::json& j,
const Trajectory& value);
Definition Measurement2D.h:36
Definition MutableTrajectory.h:39
Definition TrackParameters.h:33
Definition TrackSeed.h:39
Definition TrajectoryCollectionData.h:33
Definition TrajectoryCollection.h:95
Definition TrajectoryCollection.h:40
Definition Trajectory.h:40
Trajectory & operator=(Trajectory other)
copy-assignment operator
Definition Trajectory.cc:35
static Trajectory makeEmpty()
Definition Trajectory.cc:48
bool isAvailable() const
check whether the object is actually available
Definition Trajectory.cc:231
std::vector< edm4eic::Measurement2D >::const_iterator outliers_deprecated_end() const
Definition Trajectory.cc:138
podio::RelationRange< float > getMeasurementChi2() const
Definition Trajectory.cc:187
bool operator==(const Trajectory &other) const
Definition Trajectory.h:128
podio::RelationRange< edm4eic::TrackParameters > getTrackParameters() const
Definition Trajectory.cc:91
podio::RelationRange< float > getOutlierChi2() const
Definition Trajectory.cc:219
std::vector< float >::const_iterator outlierChi2_begin() const
Definition Trajectory.cc:196
std::vector< edm4eic::TrackParameters >::const_iterator trackParameters_end() const
Definition Trajectory.cc:74
std::vector< edm4eic::TrackParameters >::const_iterator trackParameters_begin() const
Definition Trajectory.cc:68
std::uint32_t getNHoles() const
Access the Number of missing hits.
Definition Trajectory.cc:56
Trajectory()
default constructor
Definition Trajectory.cc:22
~Trajectory()=default
destructor
friend void swap(Trajectory &a, Trajectory &b)
Definition Trajectory.h:138
std::uint32_t getNSharedHits() const
Access the Number of shared hits with other trajectories.
Definition Trajectory.cc:57
std::uint32_t getType() const
Access the 0 (does not have good track fit), 1 (has good track fit)
Definition Trajectory.cc:52
friend class TrajectoryCollection
Definition Trajectory.h:43
std::uint32_t getNMeasurements() const
Access the Number of hits used.
Definition Trajectory.cc:54
std::vector< edm4eic::Measurement2D >::const_iterator outliers_deprecated_begin() const
Definition Trajectory.cc:132
std::vector< float >::const_iterator measurementChi2_begin() const
Definition Trajectory.cc:164
std::size_t measurementChi2_size() const
Definition Trajectory.cc:176
MutableTrajectory clone() const
create a mutable deep-copy of the object with identical relations
Definition Trajectory.cc:40
std::uint32_t getNOutliers() const
Access the Number of hits not considered.
Definition Trajectory.cc:55
const edm4eic::TrackSeed getSeed() const
Access the Corresponding track seed.
Definition Trajectory.cc:59
Trajectory(const Trajectory &other)=default
copy constructor
podio::RelationRange< edm4eic::Measurement2D > getMeasurements_deprecated() const
Definition Trajectory.cc:123
std::vector< float >::const_iterator outlierChi2_end() const
Definition Trajectory.cc:202
std::vector< edm4eic::Measurement2D >::const_iterator measurements_deprecated_end() const
Definition Trajectory.cc:106
std::uint32_t getNStates() const
Access the Number of tracking steps.
Definition Trajectory.cc:53
void unlink()
disconnect from TrajectoryObj instance
Definition Trajectory.h:126
podio::ObjectID id() const
Definition Trajectory.h:134
friend class MutableTrajectory
Definition Trajectory.h:42
const podio::ObjectID getObjectID() const
Definition Trajectory.cc:238
std::size_t outliers_deprecated_size() const
Definition Trajectory.cc:144
bool operator<(const Trajectory &other) const
Definition Trajectory.h:132
std::vector< float >::const_iterator measurementChi2_end() const
Definition Trajectory.cc:170
std::size_t trackParameters_size() const
Definition Trajectory.cc:80
podio::RelationRange< edm4eic::Measurement2D > getOutliers_deprecated() const
Definition Trajectory.cc:155
std::vector< edm4eic::Measurement2D >::const_iterator measurements_deprecated_begin() const
Definition Trajectory.cc:100
std::size_t outlierChi2_size() const
Definition Trajectory.cc:208
std::size_t measurements_deprecated_size() const
Definition Trajectory.cc:112
Definition TrajectoryObj.h:24
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97