6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
11 @file TileTBStatConfig.py
12 @brief Python configuration of TileTBStat algorithm for the Run III
17 ''' Function to configure TileTBStat algorithm.'''
21 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
24 from TileRecUtils.TileDQstatusConfig
import TileDQstatusAlgCfg
27 from TileByteStream.TileHid2RESrcIDConfig
import TileHid2RESrcIDCondAlgCfg
30 acc.addService(CompFactory.ROBDataProviderSvc())
32 TileTBStat = CompFactory.TileTBStat
33 acc.addEventAlgo(
TileTBStat(**kwargs), primary =
True)
38 if __name__==
'__main__':
41 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
43 parser = flags.getArgumentParser()
44 parser.add_argument(
'--postExec', help=
'Code to execute after setup')
45 args, _ = parser.parse_known_args()
48 from AthenaCommon.Logging
import log
52 from AthenaConfiguration.TestDefaults
import defaultConditionsTags, defaultGeometryTags, defaultTestFiles
53 flags.Input.Files = defaultTestFiles.RAW_RUN2
54 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
55 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN2_DATA
56 flags.Exec.MaxEvents = 3
57 flags.fillFromArgs(parser=parser)
64 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
67 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
74 log.info(
'Executing postExec: %s', args.postExec)
77 cfg.printConfig(withDetails=
True, summariseProps=
True)
83 sys.exit(0
if sc.isSuccess()
else 1)