Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-10-21 08:01:49

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 
0014 namespace Acts {
0015 
0016 /// Components of alignment parameters vector.
0017 ///
0018 /// To be used to access components by named indices instead of just numbers.
0019 /// This must be a regular `enum` and not a scoped `enum class` to allow
0020 /// implicit conversion to an integer. The enum value are thus visible directly
0021 /// in `namespace Acts` and are prefixed to avoid naming collisions.
0022 enum AlignmentIndices : unsigned int {
0023   // Center of geometry object in global 3D cartesian coordinates
0024   eAlignmentCenter0 = 0u,
0025   eAlignmentCenter1 = eAlignmentCenter0 + 1u,
0026   eAlignmentCenter2 = eAlignmentCenter0 + 2u,
0027   // Rotation angle around local x/y/z axis of geometry object
0028   eAlignmentRotation0 = 3u,
0029   eAlignmentRotation1 = eAlignmentRotation0 + 1u,
0030   eAlignmentRotation2 = eAlignmentRotation0 + 2u,
0031   // Last uninitialized value contains the total number of components
0032   eAlignmentSize,
0033 };
0034 
0035 // Matrix and vector types related to alignment parameters.
0036 /// @brief Vector type for alignment parameters
0037 using AlignmentVector = ActsVector<eAlignmentSize>;
0038 /// @brief Row vector type for alignment parameters
0039 using AlignmentRowVector = ActsMatrix<1, eAlignmentSize>;
0040 /// @brief Square matrix type for alignment parameters
0041 using AlignmentMatrix = ActsMatrix<eAlignmentSize, eAlignmentSize>;
0042 /// @brief Matrix type for transforming alignment parameters to position
0043 using AlignmentToPositionMatrix = ActsMatrix<3, eAlignmentSize>;
0044 /// @brief Matrix type for transforming alignment parameters to bound parameters
0045 using AlignmentToBoundMatrix = ActsMatrix<eBoundSize, eAlignmentSize>;
0046 /// @brief Matrix type for transforming alignment parameters to path length
0047 using AlignmentToPathMatrix = ActsMatrix<1, eAlignmentSize>;
0048 
0049 }  // namespace Acts