3 from __future__
import print_function
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 kwargs.setdefault(
"DoPFlow",
False)
8 kwargs.setdefault(
"JetSelection",
"Tight")
10 if kwargs[
"JetSelection"]==
"Tier0":
11 kwargs.setdefault(
"JvtSelTool",
None)
12 elif kwargs[
"DoPFlow"]:
13 kwargs.setdefault(
"JvtSelTool", CompFactory.CP.NNJvtSelectionTool(
15 JvtMomentName=
"NNJvt",
16 WorkingPoint=
"FixedEffPt",
19 kwargs.setdefault(
"JvtSelTool", CompFactory.CP.JvtSelectionTool(
22 WorkingPoint=kwargs[
"JetSelection"],
26 return CompFactory.getComp(
"met::METMaker")(name, **kwargs)
29 muonSel = CompFactory.getComp(
"CP::MuonSelectionTool")(name,
33 AllowSettingGeometryOnTheFly =
True)
37 elecSelLH = CompFactory.AsgElectronLikelihoodTool(name,
38 WorkingPoint=
"MediumLHElectron")
42 photonSelIsEM = CompFactory.AsgPhotonIsEMSelector(name,
43 WorkingPoint=
"TightPhoton")
47 from ROOT
import TauAnalysisTools
48 SelectionCuts = TauAnalysisTools.SelectionCuts
50 tauSel = CompFactory.getComp(
"TauAnalysisTools::TauSelectionTool")(
"TauSelectionTool_METMakerAlg",
52 SelectionCuts =
int(SelectionCuts.CutPt | SelectionCuts.CutAbsEta | SelectionCuts.CutAbsCharge | SelectionCuts.CutNTrack | SelectionCuts.CutJetIDWP),
54 JetIDWP = TauAnalysisTools.JETIDRNNMEDIUM,
57 AbsEtaRegion = (0.0, 1.37, 1.52, 2.5))
62 print (
"Generate METMaker and METMakerAlg for METAssoc_"+suffix)
64 doPFlow =
'PFlow' in suffix
65 doTruth = suffix.startswith(
'Truth')
69 JetSelection=jetSelection)
80 jetColl = suffix+
'Jets'
82 jetColl = suffix.split(
'_')[1]+
'Jets'
83 makerAlg = CompFactory.getComp(
"met::METMakerAlg")(
'METMakerAlg_'+suffix,
84 METMapName=
'METAssoc_'+suffix,
85 METCoreName=
'MET_Core_'+suffix,
86 METName=
'MET_Reference_'+suffix,
89 MuonSelectionTool=muonSel,
90 ElectronLHSelectionTool=elecSelLH,
91 PhotonIsEMSelectionTool=photonSelIsEM,
92 TauSelectionTool=tauSel,