EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrkrClusterSourceLink.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrkrClusterSourceLink.hpp
1
#pragma once
2
3
#include "
Acts/EventData/Measurement.hpp
"
4
#include "
Acts/EventData/MeasurementHelpers.hpp
"
5
#include "
Acts/EventData/SourceLinkConcept.hpp
"
6
#include "
Acts/EventData/detail/fittable_type_generator.hpp
"
7
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
8
9
#include "
ActsExamples/EventData/GeometryContainers.hpp
"
10
#include <boost/container/flat_map.hpp>
11
#include <boost/container/flat_set.hpp>
12
13
namespace
ActsExamples {
14
19
class
TrkrClusterSourceLink
20
{
21
public
:
22
25
TrkrClusterSourceLink
(uint64_t
cluskey
,
26
std::shared_ptr<const Acts::Surface>
surface
,
27
Acts::BoundVector
loc,
28
Acts::BoundMatrix
cov
)
29
:
m_cluskey
(cluskey)
30
,
m_surface
(surface)
31
,
m_geoId
(surface->geometryId())
32
,
m_loc
(loc)
33
,
m_cov
(cov)
34
{
35
}
36
38
TrkrClusterSourceLink
() =
default
;
39
TrkrClusterSourceLink
(
TrkrClusterSourceLink
&&) =
default
;
40
TrkrClusterSourceLink
(
const
TrkrClusterSourceLink
&) =
default
;
41
43
TrkrClusterSourceLink
&
operator=
(
TrkrClusterSourceLink
&&) =
default
;
44
TrkrClusterSourceLink
&
operator=
(
const
TrkrClusterSourceLink
&) =
default
;
45
46
const
Acts::BoundVector
location
()
const
47
{
48
return
m_loc
;
49
}
50
const
Acts::BoundMatrix
covariance
()
const
51
{
52
return
m_cov
;
53
}
54
55
const
Acts::GeometryIdentifier
geoId
()
const
56
{
57
return
m_geoId
;
58
}
59
61
const
Acts::Surface
&
referenceSurface
()
const
62
{
63
return
*
m_surface
;
64
}
65
67
Acts::FittableMeasurement<TrkrClusterSourceLink>
operator*
()
const
68
{
69
70
return
Acts::Measurement
<
TrkrClusterSourceLink
,
71
Acts::BoundIndices
,
72
Acts::eBoundLoc0
,
73
Acts::eBoundLoc1
>
74
{
m_surface
,
75
*
this
,
76
m_cov
.topLeftCorner<2, 2>(),
77
m_loc
[0],
78
m_loc
[1]
79
};
80
}
81
82
uint64_t
cluskey
()
const
83
{
84
return
m_cluskey
;
85
}
86
87
88
private
:
89
92
uint64_t
m_cluskey
;
93
std::shared_ptr<const Acts::Surface>
m_surface
;
94
Acts::GeometryIdentifier
m_geoId
;
95
97
Acts::BoundVector
m_loc
;
99
Acts::BoundMatrix
m_cov
;
100
103
friend
constexpr
bool
104
operator==
(
const
TrkrClusterSourceLink& lhs,
const
TrkrClusterSourceLink& rhs)
105
{
106
return
lhs.
m_cluskey
== rhs.
m_cluskey
;
107
}
108
109
};
110
112
static_assert(Acts::SourceLinkConcept<TrkrClusterSourceLink>,
113
"TrkrClusterSourceLink does not fulfill SourceLinkConcept"
);
114
115
// Construct a container for TrkrSourceLinks
116
using
TrkrClusterSourceLinkContainer
=
GeometryIdMultiset<TrkrClusterSourceLink>
;
117
118
}
119
acts
blob
sPHENIX
Examples
Framework
include
ActsExamples
EventData
TrkrClusterSourceLink.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration