1 """Define method to configure and test SCT_ReadoutTestAlg
3 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
9 """Return a configured SCT_ReadoutTestAlg"""
11 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_ReadoutToolCfg
20 masterChip =
"10110000000001"
21 slaveChip =
"10110000000101"
24 endChip =
"10110000000111"
28 defaultLink = [masterChip] + [slaveChip]*4 + [endChip]
40 kwargs.setdefault(
"ChipConfigurationList", defaultLink*2)
52 acc.addEventAlgo(CompFactory.SCT_ReadoutTestAlg(name, **kwargs))
55 if __name__==
"__main__":
56 from AthenaCommon.Logging
import log
60 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
62 flags.Input.Files = []
63 flags.Input.isMC =
True
64 flags.Input.ProjectName =
"mc16_13TeV"
65 flags.Input.RunNumbers = [300000]
66 flags.Input.TimeStamps = [1500000000]
67 flags.IOVDb.GlobalTag =
"OFLCOND-MC16-SDR-18"
68 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
69 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
70 flags.Detector.GeometrySCT =
True
73 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
76 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg