Back to home page

EIC code displayed by LXR

 
 

    


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

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/Detector/DetectorVolume.hpp"
0012 #include "Acts/Geometry/TrackingVolume.hpp"
0013 #include "Acts/Utilities/Concepts.hpp"
0014 
0015 namespace Acts {
0016 
0017 /// @brief Concept ensuring compatibility TrackingGeometry
0018 /// and Detector navigation interfaces with the client code
0019 /// @tparam propagator_state_t Type of the object for navigation state
0020 /// @tparam navigator_t Type of the navigator object
0021 template <typename propagator_state_t, typename navigator_t>
0022 concept NavigationCompatibleConcept = requires(propagator_state_t &p,
0023                                                navigator_t &n) {
0024   requires requires {
0025     {
0026       n.currentVolume(p.navigation)
0027     } -> Concepts::same_as_any_of<const TrackingVolume *,
0028                                   const Acts::Experimental::DetectorVolume *>;
0029   };
0030 };
0031 
0032 }  // namespace Acts