Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:09:56

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2020-2021 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 http://mozilla.org/MPL/2.0/.
0008 
0009 #include "ActsAlignment/Kernel/detail/AlignmentEngine.hpp"
0010 
0011 namespace ActsAlignment::detail {
0012 
0013 void resetAlignmentDerivative(Acts::AlignmentToBoundMatrix& alignToBound,
0014                               AlignmentMask mask) {
0015   if (!ACTS_CHECK_BIT(mask, AlignmentMask::Center0)) {
0016     alignToBound.col(Acts::eAlignmentCenter0) = Acts::AlignmentVector::Zero();
0017   }
0018   if (!ACTS_CHECK_BIT(mask, AlignmentMask::Center1)) {
0019     alignToBound.col(Acts::eAlignmentCenter1) = Acts::AlignmentVector::Zero();
0020   }
0021   if (!ACTS_CHECK_BIT(mask, AlignmentMask::Center2)) {
0022     alignToBound.col(Acts::eAlignmentCenter2) = Acts::AlignmentVector::Zero();
0023   }
0024   if (!ACTS_CHECK_BIT(mask, AlignmentMask::Rotation0)) {
0025     alignToBound.col(Acts::eAlignmentRotation0) = Acts::AlignmentVector::Zero();
0026   }
0027   if (!ACTS_CHECK_BIT(mask, AlignmentMask::Rotation1)) {
0028     alignToBound.col(Acts::eAlignmentRotation1) = Acts::AlignmentVector::Zero();
0029   }
0030   if (!ACTS_CHECK_BIT(mask, AlignmentMask::Rotation2)) {
0031     alignToBound.col(Acts::eAlignmentRotation2) = Acts::AlignmentVector::Zero();
0032   }
0033 }
0034 
0035 }  // namespace ActsAlignment::detail