ATLAS Offline Software
Loading...
Searching...
No Matches
CavernGMConfig.py
Go to the documentation of this file.
2# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3#
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def CavernGeometryCfg( flags ):
7 from AtlasGeoModel.GeoModelConfig import GeoModelCfg
8 acc = GeoModelCfg( flags )
9
10 from AthenaConfiguration.Enums import BeamType, ProductionStep
11 if (flags.Common.ProductionStep == ProductionStep.Simulation and flags.Beam.Type is BeamType.Cosmics) or flags.Detector.GeometryCavern:
12
13 CavernInfraDetectorTool=CompFactory.CavernInfraDetectorTool
14 acc.getPrimary().DetectorTools += [ CavernInfraDetectorTool() ]
15 return acc