Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GenericCurvilinearTrackParameters.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenericCurvilinearTrackParameters.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2020 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
#pragma once
10
11
#include "
Acts/EventData/GenericBoundTrackParameters.hpp
"
12
#include "
Acts/EventData/TrackParametersConcept.hpp
"
13
#include "
Acts/Surfaces/PlaneSurface.hpp
"
14
15
namespace
Acts {
16
27
template
<
typename
particle_hypothesis_t>
28
class
GenericCurvilinearTrackParameters
29
:
public
GenericBoundTrackParameters
<particle_hypothesis_t> {
30
using
Base
=
GenericBoundTrackParameters<particle_hypothesis_t>
;
31
32
public
:
33
using
Scalar
=
ActsScalar
;
34
using
ParametersVector
=
BoundVector
;
35
using
CovarianceMatrix
=
BoundSquareMatrix
;
36
using
ParticleHypothesis
= particle_hypothesis_t;
37
45
GenericCurvilinearTrackParameters
(
const
Vector4
&
pos4
,
const
Vector3
& dir,
46
Scalar
qOverP
,
47
std::optional<CovarianceMatrix>
cov
,
48
ParticleHypothesis
particleHypothesis
)
49
:
Base
(
Surface
::makeShared<
PlaneSurface
>(pos4.
segment
<3>(
ePos0
), dir),
50
detail::
transformFreeToCurvilinearParameters
(pos4[
eTime
], dir,
51
qOverP),
52
std::
move
(cov), std::
move
(particleHypothesis)) {}
53
62
GenericCurvilinearTrackParameters
(
const
Vector4
&
pos4
,
Scalar
phi
,
63
Scalar
theta
,
Scalar
qOverP
,
64
std::optional<CovarianceMatrix>
cov
,
65
ParticleHypothesis
particleHypothesis
)
66
:
Base
(
Surface
::makeShared<
PlaneSurface
>(
67
pos4.
segment
<3>(
ePos0
),
makeDirectionFromPhiTheta
(phi, theta)),
68
detail::
transformFreeToCurvilinearParameters
(pos4[
eTime
], phi,
69
theta, qOverP),
70
std::
move
(cov), std::
move
(particleHypothesis)) {}
71
73
template
<
typename
other_particle_hypothesis_t>
74
GenericCurvilinearTrackParameters
(
75
const
GenericCurvilinearTrackParameters<other_particle_hypothesis_t>
&
76
other)
77
:
GenericCurvilinearTrackParameters
(other.
fourPosition
(),
78
other.
particleHypothesis
(),
79
other.
covariance
()) {}
80
82
template
<
typename
other_track_parameter_t>
83
static
GenericCurvilinearTrackParameters
create
(
84
const
other_track_parameter_t& other) {
85
static_assert(
86
Concepts::BoundTrackParametersConcept<other_track_parameter_t>);
87
88
return
GenericCurvilinearTrackParameters
(
89
other.fourPosition(), other.particleHypothesis(), other.covariance());
90
}
91
93
GenericCurvilinearTrackParameters
() =
delete
;
94
GenericCurvilinearTrackParameters
(
const
GenericCurvilinearTrackParameters
&) =
95
default
;
96
GenericCurvilinearTrackParameters
(
GenericCurvilinearTrackParameters
&&) =
97
default
;
98
~GenericCurvilinearTrackParameters
() =
default
;
99
GenericCurvilinearTrackParameters
&
operator=
(
100
const
GenericCurvilinearTrackParameters
&) =
default
;
101
GenericCurvilinearTrackParameters
&
operator=
(
102
GenericCurvilinearTrackParameters
&&) =
default
;
103
104
using
GenericBoundTrackParameters<ParticleHypothesis>::fourPosition
;
105
using
GenericBoundTrackParameters<ParticleHypothesis>::position
;
106
108
Vector4
fourPosition
()
const
{
109
return
GenericBoundTrackParameters<ParticleHypothesis>::fourPosition
({});
110
}
112
Vector3
position
()
const
{
113
return
GenericBoundTrackParameters<ParticleHypothesis>::position
({});
114
}
115
};
116
117
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
EventData
GenericCurvilinearTrackParameters.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration