6from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7from 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.'''
19 acc = ComponentAccumulator()
21 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
22 acc.merge( TileCablingSvcCfg(flags) )
24 from TileRecUtils.TileDQstatusConfig
import TileDQstatusAlgCfg
25 acc.merge( TileDQstatusAlgCfg(flags, TileBeamElemContainer=
'TileBeamElemCnt') )
27 from TileByteStream.TileHid2RESrcIDConfig
import TileHid2RESrcIDCondAlgCfg
28 acc.merge( TileHid2RESrcIDCondAlgCfg(flags, ROD2ROBmap=[
'-1']) )
30 acc.addService(CompFactory.ROBDataProviderSvc())
32 TileTBStat = CompFactory.TileTBStat
33 acc.addEventAlgo(
TileTBStat(**kwargs), primary =
True)
38if __name__==
'__main__':
41 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
42 flags = 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
65 cfg = MainServicesCfg(flags)
67 from TileByteStream.TileByteStreamConfig
import TileRawDataReadingCfg
68 cfg.merge( TileRawDataReadingCfg(flags, readMuRcv=
False, readBeamElem=
True) )
74 log.info(
'Executing postExec: %s', args.postExec)
77 cfg.printConfig(withDetails=
True, summariseProps=
True)
83 sys.exit(0
if sc.isSuccess()
else 1)
Class to produce run statistics.
TileTBStatCfg(flags, **kwargs)