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 MuonLoosenedNonCalibratedSelectionToolCfg
30 DFCommonMuonsSelector = acc.popToolsAndMerge(MuonLoosenedNonCalibratedSelectionToolCfg(flags,
31 name =
"DFCommonMuonsSelector",
34 acc.addPublicTool(DFCommonMuonsSelector)
35 DFCommonMuonToolWrapperIDCuts = acc.getPrimaryAndMerge(AsgSelectionToolWrapperCfg(
37 name =
"DFCommonMuonToolWrapperIDCuts"+suff,
38 AsgSelectionTool = DFCommonMuonsSelector,
40 StoreGateEntryName =
"DFCommonMuonPassIDCuts",
41 ContainerName = Container))
42 DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperIDCuts)
44 DFCommonMuonToolWrapperPreselection = acc.getPrimaryAndMerge(AsgSelectionToolWrapperCfg(
46 name =
"DFCommonMuonToolWrapperPreselection"+suff,
47 AsgSelectionTool = DFCommonMuonsSelector,
48 CutType =
"Preselection",
49 StoreGateEntryName =
"DFCommonMuonPassPreselection",
50 ContainerName = Container))
51 DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperPreselection)
56 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
57 acc.addEventAlgo(CommonAugmentation(
"DFCommonMuonsKernel"+suff,
58 AugmentationTools = DFCommonMuonToolWrapperTools))
60 from IsolationAlgs.DerivationTrackIsoConfig
import DerivationTrackIsoCfg
71 for WP
in [
'Nonprompt_All_MaxWeight' ]:
72 acc.merge(DerivationTrackIsoCfg(flags, WP = WP, object_types = (
'Electrons',
'Muons'), postfix=suff))
74 if "LRT" in Container
and not hasattr(acc,
'LRTMuonCaloIsolationBuilder'):
75 from IsolationAlgs.IsolationSteeringDerivConfig
import LRTMuonIsolationSteeringDerivCfg
76 acc.merge(LRTMuonIsolationSteeringDerivCfg(flags))
78 from IsolationAlgs.IsolationBuilderConfig
import muIsolationCfg
79 acc.merge(muIsolationCfg(flags,
80 name=
"muonIsolationLRT",
83 MuonCollectionContainerName = Container