|
|
|||
File indexing completed on 2026-10-16 08:48:25
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 #include "Acts/Geometry/TrackingGeometry.hpp" 0010 #include "ActsPlugins/Json/TrackingGeometryMaterialJsonConverter.hpp" 0011 0012 /// Read material, apply it to an existing geometry, and write it as JSON. 0013 void exampleMaterialMapJson(Acts::TrackingGeometry& geometry) { 0014 //! [Read and write material map] 0015 Acts::TrackingGeometryMaterialJsonConverter converter; 0016 auto material = converter.fromFile("material.cbor.zst"); 0017 material.apply(geometry); 0018 converter.toFile(material, "material.json"); 0019 //! [Read and write material map] 0020 }
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|