ATLAS Offline Software
Functions
python.MuonTruthAlgsConfig Namespace Reference

Functions

def MuonDetailedTrackTruthMakerCfg (flags, name="MuonDetailedTrackTruthMaker", **kwargs)
 
def MuonTruthDecorationAlgCfg (flags, name="MuonTruthDecorationAlg", **kwargs)
 
def MuonTruthAssociationAlgCfg (flags, name="MuonTruthAssociationAlg", **kwargs)
 
def MuonSegmentTruthAssociationAlgCfg (flags, name="MuonSegmentTruthAssociationAlg", **kwargs)
 

Function Documentation

◆ MuonDetailedTrackTruthMakerCfg()

def python.MuonTruthAlgsConfig.MuonDetailedTrackTruthMakerCfg (   flags,
  name = "MuonDetailedTrackTruthMaker",
**  kwargs 
)

Definition at line 6 of file MuonConfig/python/MuonTruthAlgsConfig.py.

6 def MuonDetailedTrackTruthMakerCfg(flags, name="MuonDetailedTrackTruthMaker", **kwargs):
7  result = ComponentAccumulator()
8 
9  PRD_TruthNames = ["RPC_TruthMap", "TGC_TruthMap", "MDT_TruthMap"]
10  if flags.Detector.EnableCSC:
11  PRD_TruthNames += ["CSC_TruthMap"]
12  if flags.Detector.EnableMM:
13  PRD_TruthNames += ["MM_TruthMap"]
14  if flags.Detector.EnablesTGC:
15  PRD_TruthNames += ["STGC_TruthMap"]
16 
17  kwargs.setdefault("PRD_TruthNames", PRD_TruthNames)
18  result.addEventAlgo(CompFactory.MuonDetailedTrackTruthMaker(name, **kwargs))
19  return result
20 

◆ MuonSegmentTruthAssociationAlgCfg()

def python.MuonTruthAlgsConfig.MuonSegmentTruthAssociationAlgCfg (   flags,
  name = "MuonSegmentTruthAssociationAlg",
**  kwargs 
)

Definition at line 56 of file MuonConfig/python/MuonTruthAlgsConfig.py.

56 def MuonSegmentTruthAssociationAlgCfg(flags, name="MuonSegmentTruthAssociationAlg", **kwargs):
57  result = ComponentAccumulator()
58  result.addEventAlgo(CompFactory.Muon.MuonSegmentTruthAssociationAlg(name, **kwargs))
59  return result

◆ MuonTruthAssociationAlgCfg()

def python.MuonTruthAlgsConfig.MuonTruthAssociationAlgCfg (   flags,
  name = "MuonTruthAssociationAlg",
**  kwargs 
)

Definition at line 51 of file MuonConfig/python/MuonTruthAlgsConfig.py.

51 def MuonTruthAssociationAlgCfg(flags, name="MuonTruthAssociationAlg", **kwargs):
52  result = ComponentAccumulator()
53  result.addEventAlgo(CompFactory.MuonTruthAssociationAlg(name, **kwargs))
54  return result
55 

◆ MuonTruthDecorationAlgCfg()

def python.MuonTruthAlgsConfig.MuonTruthDecorationAlgCfg (   flags,
  name = "MuonTruthDecorationAlg",
**  kwargs 
)

Definition at line 21 of file MuonConfig/python/MuonTruthAlgsConfig.py.

21 def MuonTruthDecorationAlgCfg(flags, name="MuonTruthDecorationAlg", **kwargs):
22  result = ComponentAccumulator()
23 
24  PRD_TruthMaps = ["RPC_TruthMap","TGC_TruthMap","MDT_TruthMap"]
25  SDOs = ["RPC_SDO","TGC_SDO","MDT_SDO"]
26  CSCSDOs = "CSC_SDO"
27 
28  if flags.Detector.EnablesTGC and flags.Detector.EnableMM:
29  SDOs += ["MM_SDO","sTGC_SDO"]
30  PRD_TruthMaps += ["MM_TruthMap", "STGC_TruthMap"]
31  if not flags.Detector.EnableCSC:
32  CSCSDOs = ""
33  else:
34  PRD_TruthMaps += ["CSC_TruthMap"]
35 
36  kwargs.setdefault("SDOs", SDOs)
37  kwargs.setdefault("CSCSDOs", CSCSDOs)
38  kwargs.setdefault("PRD_TruthMaps", PRD_TruthMaps)
39 
40  from MCTruthClassifier.MCTruthClassifierConfig import MCTruthClassifierCfg
41  kwargs.setdefault("MCTruthClassifier", result.popToolsAndMerge(MCTruthClassifierCfg(flags)))
42 
43  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
44  kwargs.setdefault("Extrapolator", result.popToolsAndMerge(AtlasExtrapolatorCfg(flags)))
45 
46  trackRecords = [item for item in ["CaloEntryLayer", "MuonEntryLayer", "MuonExitLayer"] if item in flags.Input.Collections]
47  kwargs.setdefault("TrackRecordCollectionNames", trackRecords)
48  result.addEventAlgo(CompFactory.Muon.MuonTruthDecorationAlg(name, **kwargs))
49  return result
50 
MCTruthClassifierConfig.MCTruthClassifierCfg
def MCTruthClassifierCfg(flags, **kwargs)
Definition: MCTruthClassifier/python/MCTruthClassifierConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
python.MuonTruthAlgsConfig.MuonDetailedTrackTruthMakerCfg
def MuonDetailedTrackTruthMakerCfg(flags, name="MuonDetailedTrackTruthMaker", **kwargs)
Definition: MuonConfig/python/MuonTruthAlgsConfig.py:6
python.MuonTruthAlgsConfig.MuonSegmentTruthAssociationAlgCfg
def MuonSegmentTruthAssociationAlgCfg(flags, name="MuonSegmentTruthAssociationAlg", **kwargs)
Definition: MuonConfig/python/MuonTruthAlgsConfig.py:56
python.MuonTruthAlgsConfig.MuonTruthDecorationAlgCfg
def MuonTruthDecorationAlgCfg(flags, name="MuonTruthDecorationAlg", **kwargs)
Definition: MuonConfig/python/MuonTruthAlgsConfig.py:21
python.MuonTruthAlgsConfig.MuonTruthAssociationAlgCfg
def MuonTruthAssociationAlgCfg(flags, name="MuonTruthAssociationAlg", **kwargs)
Definition: MuonConfig/python/MuonTruthAlgsConfig.py:51