3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.Enums
import ProductionStep, BeamType
5 from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
9 result.getPrimary().DetectorTools += [ CompFactory.TileDetectorTool() ]
10 if flags.Common.ProductionStep
not in [ProductionStep.Simulation, ProductionStep.FastChain]:
11 result.getPrimary().DetectorTools[
"TileDetectorTool"].GeometryConfig =
"RECO"
12 if flags.Common.ProductionStep
is ProductionStep.Simulation
and flags.Beam.Type
is BeamType.TestBeam:
13 if (flags.TestBeam.Layout==
'tb_Tile2000_2003_2B2EB'):
15 result.getPrimary().TileVersionOverride=
'TileTB-2B2EB-00'
16 elif (flags.TestBeam.Layout==
'tb_Tile2000_2003_2B1EB'):
18 result.getPrimary().TileVersionOverride=
'TileTB-2B1EB-00'
19 elif (flags.TestBeam.Layout==
'tb_Tile2000_2003_3B'):
21 result.getPrimary().TileVersionOverride=
'TileTB-3B-00'
22 elif (flags.TestBeam.Layout==
'tb_Tile2000_2003_5B'):
24 result.getPrimary().TileVersionOverride=
'TileTB-5B-00'
29 if __name__ ==
"__main__":
30 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
31 from AthenaConfiguration.TestDefaults
import defaultGeometryTags, defaultTestFiles
34 flags.Input.Files = defaultTestFiles.RAW_RUN2
35 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
39 acc.store(
open(
"test.pkl",
"wb" ) )