Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:02

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