Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:10:45

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 using AlignmentVector = ActsVector<eAlignmentSize>;
0037 using AlignmentRowVector = ActsMatrix<1, eAlignmentSize>;
0038 using AlignmentMatrix = ActsMatrix<eAlignmentSize, eAlignmentSize>;
0039 using AlignmentToPositionMatrix = ActsMatrix<3, eAlignmentSize>;
0040 using AlignmentToBoundMatrix = ActsMatrix<eBoundSize, eAlignmentSize>;
0041 using AlignmentToPathMatrix = ActsMatrix<1, eAlignmentSize>;
0042 
0043 }  // namespace Acts