ATLAS Offline Software
Functions | Variables
METRecCfg Namespace Reference

Functions

def METCfg (inputFlags)
 

Variables

 flags = initConfigFlags()
 
 isMC
 
 Files
 
int nthreads = 1
 
 NumThreads
 
 NumConcurrentEvents
 
 UseTracks
 
 DoPFlow
 
 cfg = MainServicesCfg(flags)
 
 StoreGateSvc = CompFactory.StoreGateSvc
 
 modelConfig = ComponentAccumulator()
 
 muWriter = CompFactory.LumiBlockMuWriter("LumiBlockMuWriter",LumiDataKey="LuminosityCondData")
 
list outputlist = ["EventInfo#*"]
 
 maxEvents
 

Function Documentation

◆ METCfg()

def METRecCfg.METCfg (   inputFlags)

Definition at line 7 of file METRecCfg.py.

7 def METCfg(inputFlags):
8  result=ComponentAccumulator()
9  outputList = []
10 
11  # Calo MET collections (for monitoring)
12  from METReconstruction.METCalo_Cfg import METCalo_Cfg
13  result.merge(METCalo_Cfg(inputFlags))
14  metDefs = ['EMTopo', 'EMTopoRegions', 'LocHadTopo', 'LocHadTopoRegions', 'Calo']
15  for metDef in metDefs:
16  outputList.append('xAOD::MissingETContainer#MET_'+metDef)
17  outputList.append('xAOD::MissingETAuxContainer#MET_'+metDef+'Aux.')
18 
19  # Track MET
20  from METReconstruction.METTrack_Cfg import METTrack_Cfg
21  result.merge(METTrack_Cfg(inputFlags))
22  outputList.append("xAOD::MissingETContainer#MET_Track")
23  outputList.append("xAOD::MissingETAuxContainer#MET_TrackAux.")
24 
25  # Truth MET
26  if inputFlags.Input.isMC:
27  from METReconstruction.METTruth_Cfg import METTruth_Cfg
28  result.merge(METTruth_Cfg(inputFlags))
29  outputList.append("xAOD::MissingETContainer#MET_Truth")
30  outputList.append("xAOD::MissingETAuxContainer#MET_TruthAux.")
31  outputList.append("xAOD::MissingETContainer#MET_TruthRegions")
32  outputList.append("xAOD::MissingETAuxContainer#MET_TruthRegionsAux.")
33  outputList.append('xAOD::MissingETComponentMap#METMap_Truth')
34  outputList.append('xAOD::MissingETAuxComponentMap#METMap_TruthAux.')
35 
36  # "Normal" MET collections
37  from METReconstruction.METAssociatorCfg import METAssociatorCfg
38  from METUtilities.METMakerConfig import getMETMakerAlg
39  metDefs = ['AntiKt4EMTopo','AntiKt4LCTopo']
40  if inputFlags.MET.DoPFlow:
41  metDefs.append('AntiKt4EMPFlow')
42  for metDef in metDefs:
43  # Build association maps and core soft terms
44  result.merge(METAssociatorCfg(inputFlags, metDef))
45  outputList.append('xAOD::MissingETAssociationMap#METAssoc_'+metDef)
46  outputList.append('xAOD::MissingETAuxAssociationMap#METAssoc_'+metDef+'Aux.')
47  outputList.append('xAOD::MissingETContainer#MET_Core_'+metDef)
48  outputList.append('xAOD::MissingETAuxContainer#MET_Core_'+metDef+'Aux.')
49  # Build reference MET
50  result.addEventAlgo(getMETMakerAlg(metDef))
51  outputList.append('xAOD::MissingETContainer#MET_Reference_'+metDef)
52  outputList.append('xAOD::MissingETAuxContainer#MET_Reference_'+metDef+'Aux.-ConstitObjectLinks.-ConstitObjectWeights')
53 
54  # Add the collections to the output stream
55  from OutputStreamAthenaPool.OutputStreamConfig import addToAOD, addToESD
56  result.merge(addToESD(inputFlags, outputList))
57  if inputFlags.MET.WritetoAOD:
58  result.merge(addToAOD(inputFlags, outputList))
59 
60  return result
61 
62 

Variable Documentation

◆ cfg

METRecCfg.cfg = MainServicesCfg(flags)

Definition at line 92 of file METRecCfg.py.

◆ DoPFlow

METRecCfg.DoPFlow

Definition at line 82 of file METRecCfg.py.

◆ Files

METRecCfg.Files

Definition at line 73 of file METRecCfg.py.

◆ flags

METRecCfg.flags = initConfigFlags()

Definition at line 71 of file METRecCfg.py.

◆ isMC

METRecCfg.isMC

Definition at line 72 of file METRecCfg.py.

◆ maxEvents

METRecCfg.maxEvents

Definition at line 155 of file METRecCfg.py.

◆ modelConfig

METRecCfg.modelConfig = ComponentAccumulator()

Definition at line 101 of file METRecCfg.py.

◆ muWriter

METRecCfg.muWriter = CompFactory.LumiBlockMuWriter("LumiBlockMuWriter",LumiDataKey="LuminosityCondData")

Definition at line 126 of file METRecCfg.py.

◆ nthreads

int METRecCfg.nthreads = 1

Definition at line 76 of file METRecCfg.py.

◆ NumConcurrentEvents

METRecCfg.NumConcurrentEvents

Definition at line 80 of file METRecCfg.py.

◆ NumThreads

METRecCfg.NumThreads

Definition at line 77 of file METRecCfg.py.

◆ outputlist

list METRecCfg.outputlist = ["EventInfo#*"]

Definition at line 146 of file METRecCfg.py.

◆ StoreGateSvc

METRecCfg.StoreGateSvc = CompFactory.StoreGateSvc

Definition at line 97 of file METRecCfg.py.

◆ UseTracks

METRecCfg.UseTracks

Definition at line 81 of file METRecCfg.py.

METCalo_Cfg
Definition: METCalo_Cfg.py:1
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
METMakerConfig.getMETMakerAlg
def getMETMakerAlg(suffix, jetSelection="Tier0", jetColl="")
Definition: METMakerConfig.py:41
METAssociatorCfg
Definition: METAssociatorCfg.py:1
METRecCfg.METCfg
def METCfg(inputFlags)
Definition: METRecCfg.py:7
METTrack_Cfg
Definition: METTrack_Cfg.py:1
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142
METTruth_Cfg
Definition: METTruth_Cfg.py:1