3 """Define method to construct configured MBTS time difference algorithm"""
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from TileConfiguration.TileConfigFlags
import TileRunType
10 """Return component accumulator with configured MBTS time difference algorithm
13 flags -- Athena configuration flags
18 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
21 from TileGeoModel.TileGMConfig
import TileGMCfg
24 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
27 MBTSTimeDiffEventInfoAlg=CompFactory.MBTSTimeDiffEventInfoAlg
34 if __name__ ==
"__main__":
36 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
37 from AthenaConfiguration.TestDefaults
import defaultTestFiles
38 from AthenaCommon.Logging
import log
45 flags.Input.Files = defaultTestFiles.AOD_RUN2_DATA
46 flags.Tile.RunType = TileRunType.PHY
49 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
52 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
58 acc.printConfig(withDetails =
True, summariseProps =
True)
59 acc.store(
open(
'MBTSTimeDiffEventInfoAlg.pkl',
'wb') )
61 sc = acc.run(maxEvents = 3)
65 sys.exit(
not sc.isSuccess())