Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-11 07:49:56

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 using ParamCovAccessor =
0019     std::function<std::pair<const BoundVector, const BoundSquareMatrix>(
0020         const SourceLink&)>;
0021 
0022 struct SpacePointBuilderOptions {
0023   // ends of strip pairs
0024   std::pair<std::pair<Vector3, Vector3>, std::pair<Vector3, Vector3>>
0025       stripEndsPair;
0026   // accessor of local position and covariance from source link
0027   ParamCovAccessor paramCovAccessor;
0028   /// vertex position
0029   Vector3 vertex = {0., 0., 0.};
0030   /// Allowed increase of strip length
0031   double stripLengthTolerance = 0.01;
0032   /// Allowed increase of strip length wrt gaps between strips
0033   double stripLengthGapTolerance = 0.01;
0034 };
0035 
0036 struct StripPairOptions {
0037   // accessor of local position and covariance from source link
0038   ParamCovAccessor paramCovAccessor;
0039   /// vertex position
0040   Vector3 vertex = {0., 0., 0.};
0041   /// Accepted squared difference in theta for two clusters
0042   double diffTheta2 = 1.;
0043   /// Accepted squared difference in phi for two clusters
0044   double diffPhi2 = 1.;
0045   /// Accepted distance between two clusters
0046   double diffDist = 100. * UnitConstants::mm;
0047 };
0048 
0049 }  // namespace Acts