3"""Define methods to construct configured RegSelCondAlg_Tile conditions algorithm"""
5from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory
import CompFactory
9 """Return component accumulator with configured RegSelCondAlg_Tile conditions algorithm"""
11 kwargs.setdefault(
'name',
'RegSelCondAlg_Tile')
13 acc = ComponentAccumulator()
15 from TileGeoModel.TileGMConfig
import TileGMCfg
16 acc.merge( TileGMCfg(flags) )
18 from TileByteStream.TileHid2RESrcIDConfig
import TileHid2RESrcIDCondAlgCfg
19 acc.merge( TileHid2RESrcIDCondAlgCfg(flags, ForHLT=
True) )
21 RegSelCondAlg_Tile = CompFactory.RegSelCondAlg_Tile
28if __name__ ==
"__main__":
30 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
31 from AthenaConfiguration.TestDefaults
import defaultGeometryTags, defaultTestFiles
32 from AthenaCommon.Logging
import log
38 flags = initConfigFlags()
39 flags.Input.Files = defaultTestFiles.RAW_RUN2
40 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN2
44 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
45 cfg = MainServicesCfg(flags)
47 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
48 cfg.merge( ByteStreamReadCfg(flags) )
52 cfg.printConfig(withDetails =
True, summariseProps =
True)
53 cfg.store( open(
'RegSelCondAlg_Tile.pkl',
'wb') )
59 sys.exit(
not sc.isSuccess())
RegSelCondAlg_TileCfg(flags, **kwargs)