Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GsfOptions.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GsfOptions.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022 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 
23 struct GsfComponent {
25  BoundVector boundPars = BoundVector::Zero();
26  BoundSquareMatrix boundCov = BoundSquareMatrix::Identity();
27 };
28 
29 namespace GsfConstants {
30 constexpr std::string_view kFinalMultiComponentStateColumn =
31  "gsf-final-multi-component-state";
33  std::optional<Acts::MultiComponentBoundTrackParameters>;
34 } // namespace GsfConstants
35 
37 template <typename traj_t>
38 struct GsfExtensions {
39  using TrackStateProxy = typename traj_t::TrackStateProxy;
40  using ConstTrackStateProxy = typename traj_t::ConstTrackStateProxy;
41 
42  using Calibrator =
43  Delegate<void(const GeometryContext &, const CalibrationContext &,
45 
48 
50 
51  using ComponentReducer =
53 
58 
61 
65 
68 
71 
74  calibrator.template connect<&detail::voidFitterCalibrator<traj_t>>();
75  updater.template connect<&detail::voidFitterUpdater<traj_t>>();
76  outlierFinder.template connect<&detail::voidOutlierFinder<traj_t>>();
77  }
78 };
79 
80 template <typename traj_t>
81 struct GsfOptions {
82  std::reference_wrapper<const GeometryContext> geoContext;
83  std::reference_wrapper<const MagneticFieldContext> magFieldContext;
84  std::reference_wrapper<const CalibrationContext> calibrationContext;
85 
87 
89 
90  const Surface *referenceSurface = nullptr;
91 
92  std::size_t maxComponents = 4;
93 
94  double weightCutoff = 1.e-4;
95 
96  bool abortOnError = false;
97 
99 
100  std::string_view finalMultiComponentStateColumn = "";
101 
103  MixtureReductionMethod::eMaxWeight;
104 
105 #if __cplusplus < 202002L
106  GsfOptions() = delete;
107 #endif
108 };
109 
110 } // namespace Acts