1"""Define method to configure and test SCT_SensorsTestAlg
3Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory
import CompFactory
9 """Return a configured SCT_SensorsTestAlg"""
10 acc = ComponentAccumulator()
11 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_SensorsCfg
12 kwargs.setdefault(
"SCT_SensorsTool", acc.popToolsAndMerge(SCT_SensorsCfg(flags, **kwargs)))
13 acc.addEventAlgo(CompFactory.SCT_SensorsTestAlg(name))
16if __name__==
"__main__":
17 from AthenaCommon.Logging
import log
21 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
22 flags = initConfigFlags()
23 flags.Input.Files = []
24 flags.Input.isMC =
False
25 flags.Input.ProjectName =
"data12_8TeV"
26 flags.Input.RunNumbers = [142913]
27 flags.Input.TimeStamps = [1260630000]
28 flags.IOVDb.GlobalTag =
"COMCOND-BLKPA-RUN1-09"
29 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
30 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN1_2012
31 flags.Detector.GeometrySCT =
True
34 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
35 cfg = MainServicesCfg(flags)
37 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
38 cfg.merge(McEventSelectorCfg(flags))
41 kwargs[
"folderTag"] =
"SctSensors-Sep03-14"
SCT_MajorityConditionsTestAlgCfg(flags, name="SCT_SensorsTestAlg", **kwargs)