Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-26 09:23:12

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 from detray_metadata import metadata
0010 from detray_metadata import Shape
0011 from detray_metadata import add_silicon_tracker_defaults
0012 
0013 import logging
0014 
0015 
0016 def configure(md: metadata):
0017     logger = logging.getLogger(__name__)
0018     logger.info("Define types required by the ACTS Open Data Detector (ODD):")
0019 
0020     # Add default types for silicon trackers (cylindrical detector shape)
0021     add_silicon_tracker_defaults(
0022         metadata=md, use_homogeneous_mat=True, use_mat_maps=True, add_trapezoid=True
0023     )
0024 
0025     # Add passive material surfaces (intersectable for cosmics)
0026     # md.add_passive(Shape.CYLINDER2D)
0027     # md.add_passive(Shape.RING)
0028 
0029     logger.info("Done")