14 """Main method configuring common muon augmentations"""
16 Container =
"Muons"+suff
18 acc = ComponentAccumulator()
23 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import AsgSelectionToolWrapperCfg
24 DFCommonMuonToolWrapperTools = []
28 from MuonSelectorTools.MuonSelectorToolsConfig
import MuonSelectionToolCfg
30 DFCommonMuonsSelector = acc.popToolsAndMerge(MuonSelectionToolCfg(flags,
31 name =
"DFCommonMuonsSelector",
34 TurnOffMomCorr =
True))
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 from IsolationAlgs.DerivationTrackIsoConfig
import DerivationTrackIsoCfg
72 for WP
in [
'Nonprompt_All_MaxWeight' ]:
73 acc.merge(DerivationTrackIsoCfg(flags, WP = WP, object_types = (
'Electrons',
'Muons'), postfix=suff))
75 if "LRT" in Container
and not hasattr(acc,
'LRTMuonCaloIsolationBuilder'):
76 from IsolationAlgs.IsolationSteeringDerivConfig
import LRTMuonIsolationSteeringDerivCfg
77 acc.merge(LRTMuonIsolationSteeringDerivCfg(flags))
79 from IsolationAlgs.IsolationBuilderConfig
import muIsolationCfg
80 acc.merge(muIsolationCfg(flags,
81 name=
"muonIsolationLRT",
84 MuonCollectionContainerName = Container