EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HelicalTrackLinearizer.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HelicalTrackLinearizer.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 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 
20 
21 namespace Acts {
22 
42 template <typename propagator_t,
43  typename propagator_options_t = PropagatorOptions<>>
45  public:
48 
50  struct State {
56  typename BField_t::Cache fieldCache;
57  };
58 
60  struct Config {
65  Config(const BField_t& bIn, std::shared_ptr<Propagator_t> prop)
66  : bField(bIn), propagator(std::move(prop)) {}
67 
72  template <typename T = BField_t,
74  Config(std::shared_ptr<Propagator_t> prop) : propagator(std::move(prop)) {}
75 
76  // The magnetic field
78  // The propagator
79  std::shared_ptr<Propagator_t> propagator;
80 
81  // Minimum q/p value
82  double minQoP = 1e-15;
83  // Maximum curvature value
84  double maxRho = 1e+15;
85  };
86 
91 
103  const Vector4D& linPoint,
105  const Acts::MagneticFieldContext& mctx,
106  State& state) const;
107 
108  private:
110  const Config m_cfg;
111 };
112 
113 } // namespace Acts
114