3 from __future__
import print_function
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 return CompFactory.getComp(
"met::METMaker")(name, **kwargs)
10 muonSel = CompFactory.getComp(
"CP::MuonSelectionTool")(name,
14 AllowSettingGeometryOnTheFly =
True)
18 elecSelLH = CompFactory.AsgElectronLikelihoodTool(name,
19 WorkingPoint=
"MediumLHElectron")
23 photonSelIsEM = CompFactory.AsgPhotonIsEMSelector(name,
24 WorkingPoint=
"TightPhoton")
28 from ROOT
import TauAnalysisTools
29 SelectionCuts = TauAnalysisTools.SelectionCuts
31 tauSel = CompFactory.getComp(
"TauAnalysisTools::TauSelectionTool")(
"TauSelectionTool_METMakerAlg",
33 SelectionCuts =
int(SelectionCuts.CutPt | SelectionCuts.CutAbsEta | SelectionCuts.CutAbsCharge | SelectionCuts.CutNTrack | SelectionCuts.CutJetIDWP),
35 JetIDWP = TauAnalysisTools.JETIDRNNMEDIUM,
38 AbsEtaRegion = (0.0, 1.37, 1.52, 2.5))
43 print (
"Generate METMaker and METMakerAlg for METAssoc_"+suffix)
45 doPFlow =
'PFlow' in suffix
46 doTruth = suffix.startswith(
'Truth')
50 JetSelection=jetSelection)
61 jetColl = suffix+
'Jets'
63 jetColl = suffix.split(
'_')[1]+
'Jets'
64 makerAlg = CompFactory.getComp(
"met::METMakerAlg")(
'METMakerAlg_'+suffix,
65 METMapName=
'METAssoc_'+suffix,
66 METCoreName=
'MET_Core_'+suffix,
67 METName=
'MET_Reference_'+suffix,
70 MuonSelectionTool=muonSel,
71 ElectronLHSelectionTool=elecSelLH,
72 PhotonIsEMSelectionTool=photonSelIsEM,
73 TauSelectionTool=tauSel,