Skip to content
Snippets Groups Projects
Commit 4b08878f authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'objKeyStore.MuonCombinedRecExample-20190129' into 'master'

MuonCombinedRecExample: Record output objects in objKeyStore.

See merge request !20719
parents d0c17bb6 3ed023ec
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20719MuonCombinedRecExample: Record output objects in objKeyStore.
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2017, 2019 CERN for the benefit of the ATLAS collaboration
from MuonCombinedRecExample.MuonCombinedRecFlags import muonCombinedRecFlags
from AthenaCommon.CfgGetter import getPublicTool, getAlgorithm,getPublicToolClone
......@@ -82,8 +82,32 @@ def MuonCombinedAlg( name="MuonCombinedAlg",**kwargs ):
kwargs.setdefault("CombinedTagMaps", tagmaps)
return CfgMgr.MuonCombinedAlg(name,**kwargs)
def recordMuonCreatorAlgObjs (kw):
Alg = CfgMgr.MuonCreatorAlg
def val (prop):
d = kw.get (prop)
if d == None:
d = Alg.__dict__[prop].default
return d
objs = {'xAOD::MuonContainer': val('MuonContainerLocation'),
'xAOD::TrackParticleContainer': (val('CombinedLocation')+'TrackParticles',
val('ExtrapolatedLocation')+'TrackParticles',
val('MSOnlyExtrapolatedLocation')+'TrackParticles'),
'xAOD::MuonSegmentContainer': val('SegmentContainerName'),
}
if val('BuildSlowMuon'):
objs['xAOD::SlowMuonContainer'] = val('SlowMuonContainerLocation')
if val('MakeClusters'):
objs['CaloClusterCellLinkContainer'] = val('CaloClusterCellLinkName') + '_links'
objs['xAOD::CaloClusterContainer'] = val('ClusterContainerName')
from RecExConfig.ObjKeyStore import objKeyStore
objKeyStore.addManyTypesTransient (objs)
return
def MuonCreatorAlg( name="MuonCreatorAlg",**kwargs ):
kwargs.setdefault("MuonCreatorTool",getPublicTool("MuonCreatorTool"))
recordMuonCreatorAlgObjs (kwargs)
return CfgMgr.MuonCreatorAlg(name,**kwargs)
def StauCreatorAlg( name="StauCreatorAlg", **kwargs ):
......@@ -97,6 +121,7 @@ def StauCreatorAlg( name="StauCreatorAlg", **kwargs ):
kwargs.setdefault("BuildSlowMuon",1)
kwargs.setdefault("ClusterContainerName", "SlowMuonClusterCollection")
kwargs.setdefault("TagMaps",["stauTagMap"])
recordMuonCreatorAlgObjs (kwargs)
return MuonCreatorAlg(name,**kwargs)
class MuonCombinedReconstruction(ConfiguredMuonRec):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment