5 @file TileMuonFitterConfig.py
6 @brief Python configuration of Tile Muon Fitter algorithm for the Run III
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from AthenaConfiguration.ComponentFactory
import CompFactory
16 kwargs.setdefault(
'DoHoughTransform',
True)
17 kwargs.setdefault(
'EThreshold', 250.0)
18 kwargs.setdefault(
'BeamType', flags.Beam.Type.value)
19 kwargs.setdefault(
'CaloCellContainer',
'AllCalo')
21 if kwargs[
'DoHoughTransform']:
22 kwargs.setdefault(
'name',
'TileMuonFitter')
23 kwargs.setdefault(
'ComTimeKey',
'ComTimeTileMuon')
24 kwargs.setdefault(
'TileCosmicMuonKey',
'TileCosmicMuonHT')
26 kwargs.setdefault(
'name',
'TileMuonFitterMF')
27 kwargs.setdefault(
'ComTimeKey',
'ComTimeTileMuonMF')
28 kwargs.setdefault(
'TileCosmicMuonKey',
'TileCosmicMuonMF')
30 from TileGeoModel.TileGMConfig
import TileGMCfg
33 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
36 TileMuonFitter=CompFactory.TileMuonFitter
45 muonFitter = acc.getPrimary()
47 cosmiMuonContainer = muonFitter.TileCosmicMuonKey
48 cosmiMuonContainer = cosmiMuonContainer.split(
'+').pop()
49 outputItemList = [
'TileCosmicMuonContainer#' + cosmiMuonContainer]
51 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
52 acc.merge(
OutputStreamCfg(flags, streamName, ItemList = outputItemList) )
57 if __name__==
'__main__':
60 from AthenaCommon.Logging
import log
65 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
66 from AthenaConfiguration.TestDefaults
import defaultTestFiles
68 flags.Input.Files = defaultTestFiles.ESD
69 flags.DQ.useTrigger =
False
70 flags.DQ.enableLumiAccess =
False
74 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
75 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
81 cfg.printConfig(withDetails =
True, summariseProps =
True)
84 cfg.store(
open(
'TileMuonFitter.pkl',
'wb') )
86 sc = cfg.run(maxEvents=3)
90 sys.exit(
not sc.isSuccess())