14 """Main method configuring common muon augmentations"""
16 Container =
"Muons"+suff
18 acc = ComponentAccumulator()
19 acc.flagPerfmonDomain(
'Muon')
24 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import AsgSelectionToolWrapperCfg
25 DFCommonMuonToolWrapperTools = []
29 from MuonSelectorTools.MuonSelectorToolsConfig
import MuonLoosenedNonCalibratedSelectionToolCfg
31 DFCommonMuonsSelector = acc.popToolsAndMerge(MuonLoosenedNonCalibratedSelectionToolCfg(flags,
32 name =
"DFCommonMuonsSelector",
35 acc.addPublicTool(DFCommonMuonsSelector)
36 DFCommonMuonToolWrapperIDCuts = acc.getPrimaryAndMerge(AsgSelectionToolWrapperCfg(
38 name =
"DFCommonMuonToolWrapperIDCuts"+suff,
39 AsgSelectionTool = DFCommonMuonsSelector,
41 StoreGateEntryName =
"DFCommonMuonPassIDCuts",
42 ContainerName = Container))
43 DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperIDCuts)
45 DFCommonMuonToolWrapperPreselection = acc.getPrimaryAndMerge(AsgSelectionToolWrapperCfg(
47 name =
"DFCommonMuonToolWrapperPreselection"+suff,
48 AsgSelectionTool = DFCommonMuonsSelector,
49 CutType =
"Preselection",
50 StoreGateEntryName =
"DFCommonMuonPassPreselection",
51 ContainerName = Container))
52 DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperPreselection)
57 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
58 acc.addEventAlgo(CommonAugmentation(
"DFCommonMuonsKernel"+suff,
59 AugmentationTools = DFCommonMuonToolWrapperTools))
61 if flags.Tracking.doVertexFinding:
62 from IsolationAlgs.DerivationTrackIsoConfig
import DerivationTrackIsoCfg
73 for WP
in [
'Nonprompt_All_MaxWeight' ]:
74 acc.merge(DerivationTrackIsoCfg(flags, WP = WP, object_types = (
'Electrons',
'Muons'), postfix=suff))
76 if "LRT" in Container
and not hasattr(acc,
'LRTMuonCaloIsolationBuilder'):
77 from IsolationAlgs.IsolationSteeringDerivConfig
import LRTMuonIsolationSteeringDerivCfg
78 acc.merge(LRTMuonIsolationSteeringDerivCfg(flags))
80 from IsolationAlgs.IsolationBuilderConfig
import muIsolationCfg
81 acc.merge(muIsolationCfg(flags,
82 name=
"muonIsolationLRT",
85 MuonCollectionContainerName = Container