Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-10-21 08:02:13

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Definitions/TrackParametrization.hpp"
0013 #include "Acts/Definitions/Units.hpp"
0014 #include "Acts/EventData/SourceLink.hpp"
0015 
0016 namespace Acts {
0017 
0018 /// @brief Type alias for accessing parameter covariance matrices
0019 /// @details Function type for retrieving covariance matrices from measurement parameters
0020 using ParamCovAccessor =
0021     std::function<std::pair<const BoundVector, const BoundSquareMatrix>(
0022         const SourceLink&)>;
0023 
0024 struct SpacePointBuilderOptions {
0025   // ends of strip pairs
0026   std::pair<std::pair<Vector3, Vector3>, std::pair<Vector3, Vector3>>
0027       stripEndsPair;
0028   // accessor of local position and covariance from source link
0029   ParamCovAccessor paramCovAccessor;
0030   /// vertex position
0031   Vector3 vertex = {0., 0., 0.};
0032   /// Allowed increase of strip length
0033   double stripLengthTolerance = 0.01;
0034   /// Allowed increase of strip length wrt gaps between strips
0035   double stripLengthGapTolerance = 0.01;
0036 };
0037 
0038 struct StripPairOptions {
0039   // accessor of local position and covariance from source link
0040   ParamCovAccessor paramCovAccessor;
0041   /// vertex position
0042   Vector3 vertex = {0., 0., 0.};
0043   /// Accepted squared difference in theta for two clusters
0044   double diffTheta2 = 1.;
0045   /// Accepted squared difference in phi for two clusters
0046   double diffPhi2 = 1.;
0047   /// Accepted distance between two clusters
0048   double diffDist = 100. * UnitConstants::mm;
0049 };
0050 
0051 }  // namespace Acts