Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-27 07:24:03

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 // Project include(s).
0012 #include "detray/core/detail/data_context.hpp"
0013 #include "detray/definitions/detail/qualifiers.hpp"
0014 #include "detray/navigation/navigation_config.hpp"
0015 #include "detray/propagator/stepping_config.hpp"
0016 
0017 // System includes
0018 #include <ostream>
0019 
0020 namespace detray::propagation {
0021 
0022 /// Configuration of the propagation
0023 struct config {
0024   navigation::config navigation{};
0025   stepping::config stepping{};
0026   geometry_context context{};
0027 
0028   /// Print the propagation configuration
0029   DETRAY_HOST
0030   friend std::ostream& operator<<(std::ostream& out, const config& cfg) {
0031     out << "Navigation\n"
0032         << "----------------------------\n"
0033         << cfg.navigation << "\nParameter Transport\n"
0034         << "----------------------------\n"
0035         << cfg.stepping << "\nGeometry Context\n"
0036         << "----------------------------\n"
0037         << "  No.                   : " << cfg.context.get() << "\n";
0038 
0039     return out;
0040   }
0041 };
0042 
0043 }  // namespace detray::propagation