4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 result = ComponentAccumulator()
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from MuonConfig.MuonCondAlgConfig
import NswDcsDbAlgCfg
8 result.merge(NswDcsDbAlgCfg(flags))
9 the_alg = CompFactory.NswDcsTestAlg(alg_name, **kwargs)
10 result.addEventAlgo(the_alg, primary=
True)
14if __name__ ==
"__main__":
15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from MuonCondTest.MdtCablingTester
import SetupArgParser
17 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultGeometryTags
18 from MuonConfig.MuonConfigUtils
import executeTest, SetupMuonStandaloneCA, configureCondTag
20 parser = SetupArgParser()
21 parser.add_argument(
"--LogName", default=
"LogFile",
22 help=
"If the test is run multiple times to ensure reproducibility, then the dump of the test can be resteered")
23 args = parser.parse_args()
25 flags = initConfigFlags()
26 flags.Input.Files = defaultTestFiles.RAW_RUN3_DATA24
28 flags.Concurrency.NumThreads = 1
29 flags.Concurrency.NumConcurrentEvents = 1
30 flags.Exec.MaxEvents = 1
31 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
33 configureCondTag(flags)
37 cfg = SetupMuonStandaloneCA(flags)
NSWDcsAlgTest(flags, alg_name="NSWDcsTestAlg", **kwargs)