ATLAS Offline Software
MuonSpectrometer
MuonConfig
python
MuonSegmentNameFixConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3
# This allows us to convert Run 2 ESD Trk::SegmentCollection "MuonSegments" to
4
# Run 3 "TrackMuonSegments"
5
def
MuonSegmentNameFixCfg
(flags):
6
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
7
cfg =
ComponentAccumulator
()
8
if
'Trk::SegmentCollection#MuonSegments'
in
flags.Input.TypedCollections:
9
from
SGComps.AddressRemappingConfig
import
InputRenameCfg
10
cfg.merge(
InputRenameCfg
(
"Trk::SegmentCollection"
,
"MuonSegments"
,
"TrackMuonSegments"
))
11
return
cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition:
JetAnalysisCommon.py:302
python.MuonSegmentNameFixConfig.MuonSegmentNameFixCfg
def MuonSegmentNameFixCfg(flags)
Definition:
MuonSegmentNameFixConfig.py:5
AddressRemappingConfig.InputRenameCfg
def InputRenameCfg(type, from_name, to_name)
Definition:
AddressRemappingConfig.py:28
Generated on Sun Dec 22 2024 21:15:21 for ATLAS Offline Software by
1.8.18