7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
12 @file TileTBDumpConfig.py
13 @brief Python configuration of TileTBDump algorithm for the Run III
18 ''' Function to configure TileTBDump algorithm.'''
22 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
25 if 'TileCondToolTiming' not in kwargs:
26 from TileConditions.TileTimingConfig
import TileCondToolTimingCfg
29 if 'TileCondToolEmscale' not in kwargs:
30 from TileConditions.TileEMScaleConfig
import TileCondToolEmscaleCfg
32 kwargs[
'TileCondToolEmscale'] = emScaleTool
34 if 'TileCondToolOfcCool' not in kwargs:
35 from TileConditions.TileOFCConfig
import TileCondToolOfcCoolCfg
38 acc.addService(CompFactory.ROBDataProviderSvc())
40 TileTBDump = CompFactory.TileTBDump
41 acc.addEventAlgo(
TileTBDump(**kwargs), primary =
True)
46 if __name__==
'__main__':
49 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
51 parser = flags.getArgumentParser()
52 parser.add_argument(
'--postExec', help=
'Code to execute after setup')
53 args, _ = parser.parse_known_args()
56 from AthenaCommon.Logging
import log
60 from AthenaConfiguration.TestDefaults
import defaultConditionsTags, defaultGeometryTags, defaultTestFiles
61 flags.Input.Files = defaultTestFiles.RAW_RUN2
62 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
63 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN2_DATA
64 flags.Exec.MaxEvents = 3
65 flags.fillFromArgs(parser=parser)
72 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
75 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
82 log.info(
'Executing postExec: %s', args.postExec)
85 cfg.printConfig(withDetails=
True, summariseProps=
True)
91 sys.exit(0
if sc.isSuccess()
else 1)