1 """Define method to configure and test SCT_ByteStreamErrorsTestAlg
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_ByteStreamErrorsTestAlg"""
11 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_ByteStreamErrorsToolCfg
13 acc.addEventAlgo(CompFactory.SCT_ByteStreamErrorsTestAlg(name, **kwargs))
16 if __name__==
"__main__":
17 from AthenaCommon.Logging
import log
21 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
23 flags.Input.isMC =
False
24 flags.Input.Files = [
"./myESD.pool.root"]
25 flags.Input.ProjectName =
"data17_13TeV"
26 flags.Input.RunNumbers = [330470]
27 flags.IOVDb.GlobalTag =
"CONDBR2-BLKPA-2018-03"
28 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
29 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
30 flags.Detector.GeometrySCT =
True
33 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
36 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
40 algkwargs[
"OutputLevel"] = INFO