Analysis Software
Documentation for sPHENIX simulation software
 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 
14 
15 namespace Acts {
16 
27 template <typename particle_hypothesis_t>
29  : public GenericBoundTrackParameters<particle_hypothesis_t> {
31 
32  public:
33  using Scalar = ActsScalar;
36  using ParticleHypothesis = particle_hypothesis_t;
37 
46  Scalar qOverP,
47  std::optional<CovarianceMatrix> cov,
49  : Base(Surface::makeShared<PlaneSurface>(pos4.segment<3>(ePos0), dir),
51  qOverP),
52  std::move(cov), std::move(particleHypothesis)) {}
53 
64  std::optional<CovarianceMatrix> cov,
66  : Base(Surface::makeShared<PlaneSurface>(
67  pos4.segment<3>(ePos0), makeDirectionFromPhiTheta(phi, theta)),
69  theta, qOverP),
70  std::move(cov), std::move(particleHypothesis)) {}
71 
73  template <typename other_particle_hypothesis_t>
76  other)
78  other.particleHypothesis(),
79  other.covariance()) {}
80 
82  template <typename other_track_parameter_t>
84  const other_track_parameter_t& other) {
85  static_assert(
86  Concepts::BoundTrackParametersConcept<other_track_parameter_t>);
87 
89  other.fourPosition(), other.particleHypothesis(), other.covariance());
90  }
91 
95  default;
97  default;
100  const GenericCurvilinearTrackParameters&) = default;
103 
106 
110  }
112  Vector3 position() const {
114  }
115 };
116 
117 } // namespace Acts