Juggler
Juggling algorithms and event processing using gaudi framework
|
Go to the documentation of this file.
4 #ifndef JUG_RECO_SourceLinks_HH
5 #define JUG_RECO_SourceLinks_HH
7 #include "Acts/EventData/Measurement.hpp"
13 #include "eicd/TrackerHitCollection.h"
28 Acts::BoundVector m_values;
29 Acts::BoundMatrix m_cov;
33 Acts::GeometryIdentifier m_geometryId;
35 const Acts::Surface* m_surface;
37 const eicd::TrackerHit* m_Hit ;
41 size_t dim, int32_t index, Acts::BoundVector values, Acts::BoundMatrix cov)
56 constexpr Acts::GeometryIdentifier
geometryId()
const {
return m_geometryId; }
60 Acts::FittableMeasurement<SourceLink>
operator*()
const {
62 throw std::runtime_error(
"Cannot create dim 0 measurement");
63 }
else if (m_dim == 1) {
66 m_surface->getSharedPtr(), *
this, m_cov.topLeftCorner<1, 1>(),
68 }
else if (m_dim == 2) {
70 Acts::eBoundLoc0, Acts::eBoundLoc1>{
71 m_surface->getSharedPtr(), *
this, m_cov.topLeftCorner<2, 2>(),
72 m_values[0], m_values[1]};
74 throw std::runtime_error(
"Dim " + std::to_string(m_dim) +
75 " currently not supported.");
82 return (lhs.geometryId() == rhs.geometryId()) && (lhs.m_index == rhs.m_index);
87 return not(lhs == rhs);
SourceLink()=default
Must be default_constructible to satisfy SourceLinkConcept.
constexpr friend bool operator!=(const SourceLink &lhs, const SourceLink &rhs)
Definition: SourceLinks.h:85
GeometryIdMultiset< SourceLink > SourceLinkContainer
Store source links ordered by geometry identifier.
Definition: SourceLinks.h:94
SourceLink & operator=(const SourceLink &)=default
Definition: SourceLinks.h:27
constexpr friend bool operator==(const SourceLink &lhs, const SourceLink &rhs)
Definition: SourceLinks.h:79
SourceLink(SourceLink &&)=default
constexpr Acts::GeometryIdentifier geometryId() const
Definition: SourceLinks.h:56
::Acts::BoundVariantMeasurement< IndexSourceLink > Measurement
Variable measurement type that can contain all possible combinations.
Definition: Measurement.hpp:18
constexpr const Acts::Surface & referenceSurface() const
Definition: SourceLinks.h:57
Definition: DD4hepBField.h:22
SourceLink(const Acts::Surface &surface, size_t dim, int32_t index, Acts::BoundVector values, Acts::BoundMatrix cov)
Definition: SourceLinks.h:40
Acts::FittableMeasurement< SourceLink > operator*() const
Definition: SourceLinks.h:60
SourceLink(const SourceLink &)=default
SourceLink & operator=(SourceLink &&)=default