ATLAS Offline Software
Loading...
Searching...
No Matches
BCMPrimeGeoModelConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 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.Alignable = False # make this a flag? Set true as soon as decided on folder structure
13 bcmPrimeDetectorTool.DetectorName = "BCMPrime"
14 if flags.ITk.Geometry.BCMPrimeLocal:
15 # Setting this filename triggers reading from local file rather than DB
16 bcmPrimeDetectorTool.GmxFilename = flags.ITk.Geometry.BCMPrimeFilename
17 if flags.ITk.Geometry.BCMPrimeClobOutputName:
18 bcmPrimeDetectorTool.ClobOutputName = flags.ITk.Geometry.BCMPrimeClobOutputName
19 geoModelSvc.DetectorTools += [ bcmPrimeDetectorTool ]
20
21 return acc