1"""Define method to configure and test SCTSiLorentzAngleTestAlg
3Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory
import CompFactory
7from AtlasGeoModel.GeoModelConfig
import GeoModelCfg
10 """Return a configured SCTSiLorentzAngleTestAlg"""
11 acc = ComponentAccumulator()
12 acc.merge(GeoModelCfg(flags))
13 from SiLorentzAngleTool.SCT_LorentzAngleConfig
import SCT_LorentzAngleToolCfg
14 kwargs.setdefault(
"SCTLorentzAngleTool", acc.popToolsAndMerge(SCT_LorentzAngleToolCfg(flags)))
15 acc.addEventAlgo(CompFactory.SCTSiLorentzAngleTestAlg(**kwargs))
18if __name__==
"__main__":
19 from AthenaCommon.Logging
import log
23 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
24 flags = initConfigFlags()
25 flags.Input.Files = []
26 flags.Input.isMC =
True
27 flags.Input.ProjectName =
"mc16_13TeV"
28 flags.Input.RunNumbers = [300000]
29 flags.Input.TimeStamps = [1500000000]
30 flags.IOVDb.GlobalTag =
"OFLCOND-MC16-SDR-18"
31 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
32 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
33 flags.Detector.GeometrySCT =
True
36 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
37 cfg = MainServicesCfg(flags)
39 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
40 cfg.merge(McEventSelectorCfg(flags))
SCTSiLorentzAngleTestAlgCfg(flags, name="SCTSiLorentzAngleTestAlg", **kwargs)