ATLAS Offline Software
Loading...
Searching...
No Matches
BCMPrimeGeoModelConfig Namespace Reference

Functions

 BCMPrimeGeometryCfg (flags)

Function Documentation

◆ BCMPrimeGeometryCfg()

BCMPrimeGeoModelConfig.BCMPrimeGeometryCfg ( flags)

Definition at line 6 of file BCMPrimeGeoModelConfig.py.

6def BCMPrimeGeometryCfg(flags):
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