ATLAS Offline Software
Functions
METMakerConfig Namespace Reference

Functions

def getMETMaker (name="METMaker", **kwargs)
 
def getMuonSelectionTool (name="MuonSelectionTool_METMakerAlg")
 
def getEleSelLikelihood (name="EleSelLikelihood_METMakerAlg")
 
def getPhotonSelIsEM (name="PhotonSelIsEM_METMakerAlg")
 
def getTauSelectionTool (name="TauSelectionTool_METMakerAlg")
 
def getMETMakerAlg (suffix, jetSelection="Tier0", jetColl="")
 

Function Documentation

◆ getEleSelLikelihood()

def METMakerConfig.getEleSelLikelihood (   name = "EleSelLikelihood_METMakerAlg")

Definition at line 36 of file METMakerConfig.py.

36 def getEleSelLikelihood(name="EleSelLikelihood_METMakerAlg"):
37  elecSelLH = CompFactory.AsgElectronLikelihoodTool(name,
38  WorkingPoint="MediumLHElectron")
39  return elecSelLH
40 

◆ getMETMaker()

def METMakerConfig.getMETMaker (   name = "METMaker",
**  kwargs 
)

Definition at line 6 of file METMakerConfig.py.

6 def getMETMaker(name="METMaker", **kwargs):
7  kwargs.setdefault("DoPFlow", False)
8  kwargs.setdefault("JetSelection", "Tight")
9 
10  if kwargs["JetSelection"]=="Tier0":
11  kwargs.setdefault("JvtSelTool", None)
12  elif kwargs["DoPFlow"]:
13  kwargs.setdefault("JvtSelTool", CompFactory.CP.NNJvtSelectionTool(
14  name="JvtSelTool",
15  JvtMomentName="NNJvt",
16  WorkingPoint="FixedEffPt",
17  MaxPtForJvt=60e3))
18  else:
19  kwargs.setdefault("JvtSelTool", CompFactory.CP.JvtSelectionTool(
20  name="JvtSelTool",
21  JvtMomentName="Jvt",
22  WorkingPoint=kwargs["JetSelection"],
23  MaxPtForJvt=60e3,
24  IsPFlow=False))
25 
26  return CompFactory.getComp("met::METMaker")(name, **kwargs)
27 

◆ getMETMakerAlg()

def METMakerConfig.getMETMakerAlg (   suffix,
  jetSelection = "Tier0",
  jetColl = "" 
)

Definition at line 60 of file METMakerConfig.py.

60 def getMETMakerAlg(suffix,jetSelection="Tier0",jetColl=""):
61 
62  print ("Generate METMaker and METMakerAlg for METAssoc_"+suffix)
63 
64  doPFlow = 'PFlow' in suffix
65  doTruth = suffix.startswith('Truth')
66  metMaker = getMETMaker('METMaker_'+suffix,
67  DoPFlow=doPFlow,
68  DoSoftTruth=doTruth,
69  JetSelection=jetSelection)
70 
71  muonSel = getMuonSelectionTool()
72 
73  elecSelLH = getEleSelLikelihood()
74 
75  photonSelIsEM = getPhotonSelIsEM()
76 
77  tauSel = getTauSelectionTool()
78 
79  if jetColl=="":
80  jetColl = suffix+'Jets'
81  if doTruth:
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,
87  InputJets=jetColl,
88  Maker=metMaker,
89  MuonSelectionTool=muonSel,
90  ElectronLHSelectionTool=elecSelLH,
91  PhotonIsEMSelectionTool=photonSelIsEM,
92  TauSelectionTool=tauSel,
93  )
94  return makerAlg

◆ getMuonSelectionTool()

def METMakerConfig.getMuonSelectionTool (   name = "MuonSelectionTool_METMakerAlg")

Definition at line 28 of file METMakerConfig.py.

28 def getMuonSelectionTool(name="MuonSelectionTool_METMakerAlg"):
29  muonSel = CompFactory.getComp("CP::MuonSelectionTool")(name,
30  MuQuality=1, # Medium
31  TurnOffMomCorr= True,
32  MaxEta=2.4,
33  AllowSettingGeometryOnTheFly = True)
34  return muonSel
35 

◆ getPhotonSelIsEM()

def METMakerConfig.getPhotonSelIsEM (   name = "PhotonSelIsEM_METMakerAlg")

Definition at line 41 of file METMakerConfig.py.

41 def getPhotonSelIsEM(name="PhotonSelIsEM_METMakerAlg"):
42  photonSelIsEM = CompFactory.AsgPhotonIsEMSelector(name,
43  WorkingPoint="TightPhoton")
44  return photonSelIsEM
45 

◆ getTauSelectionTool()

def METMakerConfig.getTauSelectionTool (   name = "TauSelectionTool_METMakerAlg")

Definition at line 46 of file METMakerConfig.py.

46 def getTauSelectionTool(name="TauSelectionTool_METMakerAlg"):
47  from ROOT import TauAnalysisTools
48  SelectionCuts = TauAnalysisTools.SelectionCuts
49 
50  tauSel = CompFactory.getComp("TauAnalysisTools::TauSelectionTool")("TauSelectionTool_METMakerAlg",
51  ConfigPath = "",
52  SelectionCuts = int(SelectionCuts.CutPt | SelectionCuts.CutAbsEta | SelectionCuts.CutAbsCharge | SelectionCuts.CutNTrack | SelectionCuts.CutJetIDWP),
53  PtMin = 20.0,
54  JetIDWP = TauAnalysisTools.JETIDRNNMEDIUM,
55  NTracks = (1, 3),
56  AbsCharge = 1,
57  AbsEtaRegion = (0.0, 1.37, 1.52, 2.5))
58  return tauSel
59 
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
METMakerConfig.getMETMakerAlg
def getMETMakerAlg(suffix, jetSelection="Tier0", jetColl="")
Definition: METMakerConfig.py:60
METMakerConfig.getEleSelLikelihood
def getEleSelLikelihood(name="EleSelLikelihood_METMakerAlg")
Definition: METMakerConfig.py:36
METMakerConfig.getMETMaker
def getMETMaker(name="METMaker", **kwargs)
Definition: METMakerConfig.py:6
METMakerConfig.getTauSelectionTool
def getTauSelectionTool(name="TauSelectionTool_METMakerAlg")
Definition: METMakerConfig.py:46
METMakerConfig.getMuonSelectionTool
def getMuonSelectionTool(name="MuonSelectionTool_METMakerAlg")
Definition: METMakerConfig.py:28
METMakerConfig.getPhotonSelIsEM
def getPhotonSelIsEM(name="PhotonSelIsEM_METMakerAlg")
Definition: METMakerConfig.py:41