Skip to content
Snippets Groups Projects
Commit fed0a8c6 authored by John Kenneth Anders's avatar John Kenneth Anders
Browse files

Merge branch 'xAODTrigMuonCnv_legacy' into '24.0'

xAODTrigMuonCnv legacy config clean up

See merge request atlas/athena!69026
parents 01ae1386 449f220c
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( xAODTrigMuonCnv )
......@@ -15,7 +15,3 @@ atlas_add_component( xAODTrigMuonCnv
src/components/*.cxx
LINK_LIBRARIES AthLinks AthenaBaseComps AthenaKernel FourMomUtils TrigMuonEvent xAODTrigMuonCnvLib )
# Install files from the package:
atlas_install_python_modules( python/xAODTrigMuonCnvConfig.py python/xAODTrigMuonCnvConfigDb.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
atlas_install_joboptions( share/addEFMuonxAODCnv_jobOptions.py share/runEFMuonAODCnvAlg_topOptions.py )
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from xAODTrigMuonCnv.xAODTrigMuonCnvConf import TrigMuonEFInfoToMuonCnvTool, TrigMuonEFInfoCnvTestAlg, xAODMaker__TrigMuonEFInfoToMuonCnvAlg, MuonFeatureCnvTestAlg, xAODMaker__MuonFeatureCnvAlg
# Version of the converter tool that does not
# make links to xAOD ID tracks (needed until EF ID is converted)
def TrigMuonEFInfoToMuonCnvToolNoIDTrkLinks(name='TrigMuonEFInfoToMuonCnvToolNoIDTrkLinks',**kwargs):
kwargs.setdefault('MakeIDTrackLink',False)
kwargs.setdefault('xAODEFInDetTrackParticleContainerName','')
return TrigMuonEFInfoToMuonCnvTool(name, **kwargs)
# Converter algorithm for TrigMuonEF results
def TrigMuonEFInfoToMuonCnvAlgTMEF(name='TrigMuonEFInfoToMuonCnvAlgTMEF',**kwargs):
kwargs.setdefault('ConverterTool','TrigMuonEFInfoToMuonCnvToolNoIDTrkLinks')
return xAODMaker__TrigMuonEFInfoToMuonCnvAlg(name, **kwargs)
# Converter algorithm for TrigMuGirl results
def TrigMuonEFInfoToMuonCnvAlgTMG(name='TrigMuonEFInfoToMuonCnvAlgTMG',**kwargs):
conf = TrigMuonEFInfoToMuonCnvAlgTMEF(name, **kwargs)
conf.AODContainerName = 'HLT_eMuonEFInfo'
conf.xAODMuonContainerName = 'HLT_eMuons'
conf.xAODCombinedTrackParticleContainerName = 'HLT_eMuonCombinedTrackParticles'
conf.xAODExtrapolatedTrackParticleContainerName = 'HLT_eMuonExtrapolatedTrackParticles'
return conf
# Test algorithm for TrigMuonEF conversion
def TrigMuonEFInfoCnvTestAlgTMEF(name='TrigMuonEFInfoCnvTestAlgTMEF',**kwargs):
return TrigMuonEFInfoCnvTestAlg(name,**kwargs)
# Converter algorithm for L2MuonSA results
def MuonFeatureCnvAlgL2SA(name='MuonFeatureCnvAlgL2SA',**kwargs):
return xAODMaker__MuonFeatureCnvAlg(name, **kwargs)
# Test algorithm for MuonFeature conversion
def MuonFeatureCnvTestAlgL2SA(name='MuonFeatureCnvTestAlgL2SA',**kwargs):
return MuonFeatureCnvTestAlg(name,**kwargs)
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.CfgGetter import addAlgorithm,addTool
# add tools and algorithms to the ConfiguredFactory, see:
# https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/ConfiguredFactory
addTool("xAODTrigMuonCnv.xAODTrigMuonCnvConfig.TrigMuonEFInfoToMuonCnvToolNoIDTrkLinks","TrigMuonEFInfoToMuonCnvToolNoIDTrkLinks")
addAlgorithm("xAODTrigMuonCnv.xAODTrigMuonCnvConfig.TrigMuonEFInfoToMuonCnvAlgTMEF","TrigMuonEFInfoToMuonCnvAlgTMEF")
addAlgorithm("xAODTrigMuonCnv.xAODTrigMuonCnvConfig.TrigMuonEFInfoToMuonCnvAlgTMG","TrigMuonEFInfoToMuonCnvAlgTMG")
addAlgorithm("xAODTrigMuonCnv.xAODTrigMuonCnvConfig.TrigMuonEFInfoCnvTestAlgTMEF","TrigMuonEFInfoCnvTestAlgTMEF")
addAlgorithm("xAODTrigMuonCnv.xAODTrigMuonCnvConfig.MuonFeatureCnvAlgL2SA","MuonFeatureCnvAlgL2SA")
addAlgorithm("xAODTrigMuonCnv.xAODTrigMuonCnvConfig.MuonFeatureCnvTestAlgL2SA","MuonFeatureCnvTestAlgL2SA")
from AthenaCommon.CfgGetter import getAlgorithm, getPublicTool
cnvalg = getAlgorithm('TrigMuonEFInfoToMuonCnvAlgTMEF')
#cnvalg.OutputLevel=DEBUG
topSequence += cnvalg
#getPublicTool('TrigMuonEFInfoToMuonCnvToolNoIDTrkLinks').OutputLevel=DEBUG
topSequence += getAlgorithm('TrigMuonEFInfoToMuonCnvAlgTMG')
topSequence += getAlgorithm('TrigMuonEFInfoCnvTestAlgTMEF')
topSequence.TrigMuonEFInfoCnvTestAlgTMEF.OutputLevel=VERBOSE
from AthenaCommon.CfgGetter import getAlgorithm, getPublicTool
cnvalg = getAlgorithm('MuonFeatureCnvAlgL2SA')
topSequence += cnvalg
topSequence += getAlgorithm('MuonFeatureCnvTestAlgL2SA')
topSequence.MuonFeatureCnvTestAlgL2SA.OutputLevel=VERBOSE
#
# Job options to run on AOD and run EF muon -> xAOD conversion algorithm
#
import glob
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
from RecExConfig.RecFlags import rec
from RecExConfig.RecAlgsFlags import recAlgs
from InDetRecExample.InDetJobProperties import InDetFlags
from AthenaCommon.AppMgr import theApp
theApp.ReflexPluginDebugLevel=1
#set input file. Note that this triggers autoconfiguration automatically (see RecExCommonAutoConfiguration wiki)
# here a MC RDO is specified, but this can also be a data BS, an ESD AOD or TAG
#if athenaCommonFlags.FilesInput.isDefault(): # check if not already set upstream
# athenaCommonFlags.FilesInput=["LFN:top_GEO-02-01-00_RDO_extract.pool"]
#athenaCommonFlags.FilesInput=["/misc/manio/markowen/AOD/data12_8TeV.00200863.physics_Muons.recon.DAOD_ZMUMU.f431_m716_f431/data12_8TeV.00200863.physics_Muons.recon.DAOD_ZMUMU.f431_m716_f431._0001.1"]
athenaCommonFlags.FilesInput=glob.glob('/misc/manio/markowen/AOD/data12_8TeV.00200863.physics_Muons.recon.DAOD_ZMUMU.f431_m716_f431/*')
athenaCommonFlags.EvtMax=-1 # number of events to process run on all file
# include my own algorithm(s). These jobo will be included at the end of topSequence configuration
rec.UserAlgs=[ "xAODTrigMuonCnv/addEFMuonxAODCnv_jobOptions.py" ]
# main jobOption
include ("RecExCommon/RecExCommon_topOptions.py")
#svcMgr.MessageSvc.OutputLevel=VERBOSE
#topSequence.CaloCluster2xAOD.OutputLevel=DEBUG
#include("RecExCommon/CleanItemList_Rel19.py")
#
# Job options to run on AOD and run MuonFeature, MuonFeatureDetails -> xAOD conversion algorithm
#
import glob
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
from RecExConfig.RecFlags import rec
from RecExConfig.RecAlgsFlags import recAlgs
from InDetRecExample.InDetJobProperties import InDetFlags
from AthenaCommon.AppMgr import theApp
theApp.ReflexPluginDebugLevel=1
athenaCommonFlags.FilesInput=glob.glob('/afs/cern.ch/user/m/mishitsu/public/data12_8TeV.00200863.physics_Muons.recon.DAOD_ZMUMU.f431_m716_f431._0001.1')
athenaCommonFlags.EvtMax=-1 # number of events to process run on all file
rec.UserAlgs=[ "xAODTrigMuonCnv/addMuonFeaturexAODCnv_jobOptions.py" ]
# main jobOption
include ("RecExCommon/RecExCommon_topOptions.py")
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