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 (
0012     add_silicon_tracker_defaults,
0013 )
0014 
0015 import logging
0016 
0017 
0018 def configure(md: metadata):
0019     logger = logging.getLogger(__name__)
0020     logger.info("Define types required by the ATLAS Inner Tracker (ITk):")
0021 
0022     # Strip stereo annulus shape
0023     logger.info("-> adding ITk strip detecor custom shape")
0024     md.add_sensitive(Shape.ANNULUS)
0025 
0026     # Add default types for silicon trackers (cylindrical detector shape)
0027     add_silicon_tracker_defaults(metadata=md, use_mat_maps=True)
0028 
0029     logger.info("Done")