3 from __future__
import print_function
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 def getMETMakerAlg(suffix,jetSelection="Tier0",jetColl="",doRetrieveORconstit=False, retainMuonConstit=False, doORMet=False, muonID=1, electronID="Medium", photonID="Tight"):
9 print (
"Generate METMaker and METMakerAlg for METAssoc_"+suffix)
11 doPFlow =
'PFlow' in suffix
12 doTruth = suffix.startswith(
'Truth')
13 metMaker = CompFactory.getComp(
"met::METMaker")(
'METMaker_'+suffix,
16 JetSelection=jetSelection,
19 muonSel = CompFactory.getComp(
"CP::MuonSelectionTool")(
"MuonSelectionTool_METMakerAlg",
24 elecSelLH = CompFactory.AsgElectronLikelihoodTool(
"EleSelLikelihood_METMakerAlg",
25 WorkingPoint=electronID+
"LHElectron")
27 photonSelIsEM = CompFactory.AsgPhotonIsEMSelector(
"PhotonSelIsEM_METMakerAlg",
28 WorkingPoint=photonID+
"Photon")
30 tauSel = CompFactory.getComp(
"TauAnalysisTools::TauSelectionTool")(
"TauSelectionTool_METMakerAlg")
33 jetColl = suffix+
'Jets'
35 jetColl = suffix.split(
'_')[1]+
'Jets'
36 makerAlg = CompFactory.getComp(
"met::ORMETMakerAlg")(
'ORMETMakerAlg_'+suffix,
37 METMapName=
'METAssoc_AntiKt4EMPFlow',
38 ORMETMapName=
'METAssoc_'+suffix,
39 METCoreName=
'MET_Core_'+suffix,
40 METName=
'MET_Reference_'+suffix,
43 MuonSelectionTool=muonSel,
44 ElectronLHSelectionTool=elecSelLH,
45 PhotonIsEMSelectionTool=photonSelIsEM,
46 TauSelectionTool=tauSel,
47 DoRetrieveORconstit=doRetrieveORconstit,
48 RetainMuonConstit=retainMuonConstit,