Juggler
Juggling algorithms and event processing using gaudi framework
|
Go to the documentation of this file.
3 #ifndef JUG_RECO_SourceLinks_HH
4 #define JUG_RECO_SourceLinks_HH
6 #include "Acts/EventData/Measurement.hpp"
11 #include "edm4hep/Geant4Particle.h"
13 #include "eicd/TrackerHitCollection.h"
30 Acts::BoundVector m_values;
31 Acts::BoundMatrix m_cov;
35 Acts::GeometryIdentifier m_geometryId;
37 const Acts::Surface* m_surface;
39 const eicd::TrackerHit* m_Hit ;
43 size_t dim, int32_t index, Acts::BoundVector values, Acts::BoundMatrix cov)
58 constexpr Acts::GeometryIdentifier
geometryId()
const {
return m_geometryId; }
62 Acts::FittableMeasurement<SourceLink>
operator*()
const {
64 throw std::runtime_error(
"Cannot create dim 0 measurement");
65 }
else if (m_dim == 1) {
68 m_surface->getSharedPtr(), *
this, m_cov.topLeftCorner<1, 1>(),
70 }
else if (m_dim == 2) {
72 Acts::eBoundLoc0, Acts::eBoundLoc1>{
73 m_surface->getSharedPtr(), *
this, m_cov.topLeftCorner<2, 2>(),
74 m_values[0], m_values[1]};
76 throw std::runtime_error(
"Dim " + std::to_string(m_dim) +
77 " currently not supported.");
89 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:87
boost::container::flat_multiset< T, detail::CompareGeometryId > GeometryIdMultiset
Definition: GeometryContainers.hpp:71
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:81
SourceLink(SourceLink &&)=default
constexpr Acts::GeometryIdentifier geometryId() const
Definition: SourceLinks.h:58
::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:59
Definition: DD4hepBField.h:22
SourceLink(const Acts::Surface &surface, size_t dim, int32_t index, Acts::BoundVector values, Acts::BoundMatrix cov)
Definition: SourceLinks.h:42
Acts::FittableMeasurement< SourceLink > operator*() const
Definition: SourceLinks.h:62
SourceLink(const SourceLink &)=default
SourceLink & operator=(SourceLink &&)=default