1 """Define method to configure and test SCT_RODVetoTestAlg
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_RODVetoTestAlg"""
11 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_RODVetoCfg
13 algArgs[
"SCT_RODVetoTool"] = acc.popToolsAndMerge(
SCT_RODVetoCfg(flags, **kwargs))
14 acc.addEventAlgo(CompFactory.SCT_RODVetoTestAlg(name, **algArgs))
17 if __name__==
"__main__":
18 from AthenaCommon.Logging
import log
22 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
24 flags.Input.Files = []
25 flags.Input.isMC =
True
26 flags.Input.ProjectName =
"mc16_13TeV"
27 flags.Input.RunNumbers = [300000]
28 flags.Input.TimeStamps = [1500000000]
29 flags.IOVDb.GlobalTag =
"OFLCOND-MC16-SDR-18"
30 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
31 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
32 flags.Detector.GeometrySCT =
True
35 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
38 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
42 kwargs[
"BadRODIds"] = [0x240100, 0x240030]