ATLAS Offline Software
Loading...
Searching...
No Matches
BCMPrimeGeoModelConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4
5
7 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
8 acc = GeoModelCfg(flags)
9 geoModelSvc = acc.getPrimary()
10
11 bcmPrimeDetectorTool = CompFactory.BCMPrimeDetectorTool()
12 bcmPrimeDetectorTool.DetectorName = "BCMPrime"
13 if flags.ITk.Geometry.BCMPrimeLocal:
14 # Setting this filename triggers reading from local file rather than DB
15 bcmPrimeDetectorTool.GmxFilename = flags.ITk.Geometry.BCMPrimeFilename
16 if flags.ITk.Geometry.BCMPrimeClobOutputName:
17 bcmPrimeDetectorTool.ClobOutputName = flags.ITk.Geometry.BCMPrimeClobOutputName
18 geoModelSvc.DetectorTools += [ bcmPrimeDetectorTool ]
19
20 return acc