ATLAS Offline Software
Functions | Variables
testMuonDetector Namespace Reference

Functions

def MuonDetectorNavTestCfg (flags, name="MuonDetectorNavTest", **kwargs)
 

Variables

 parser = SetupArgParser()
 
 inputFile
 
 outRootFile
 
 nEvents
 
 help
 
 action
 
 default
 
 args = parser.parse_args()
 
 flags = initConfigFlags()
 
 doFullMonMT
 
 cfg
 
 dumpDetector
 
 dumpPassive
 
 dumpDetectorVolumes
 
 BuildSensitives
 
 dumpMaterialSurfaces
 

Function Documentation

◆ MuonDetectorNavTestCfg()

def testMuonDetector.MuonDetectorNavTestCfg (   flags,
  name = "MuonDetectorNavTest",
**  kwargs 
)

Definition at line 6 of file testMuonDetector.py.

6 def MuonDetectorNavTestCfg(flags, name = "MuonDetectorNavTest", **kwargs):
7  result = ComponentAccumulator()
8  containerNames = []
9  if flags.Detector.EnableMDT:
10  containerNames+=["xMdtSimHits"]
11  if flags.Detector.EnableMM:
12  containerNames+=["xMmSimHits"]
13  if flags.Detector.EnableRPC:
14  containerNames+=["xRpcSimHits"]
15  if flags.Detector.EnableTGC:
16  containerNames+=["xTgcSimHits"]
17  if flags.Detector.EnablesTGC:
18  containerNames+=["xStgcSimHits"]
19 
20  from MuonTruthAlgsR4.MuonTruthAlgsConfig import TruthSegmentMakerCfg, TruthSegmentToTruthPartAssocCfg, SdoMultiTruthMakerCfg
21 
22  from MuonConfig.MuonTruthAlgsConfig import TruthMuonMakerAlgCfg, MuonTruthHitCountsAlgCfg
23 
24  result.merge(TruthMuonMakerAlgCfg(flags, pdgIds=[13,998,999]))
25  result.merge(MuonTruthHitCountsAlgCfg(flags))
26  result.merge(TruthSegmentToTruthPartAssocCfg(flags))
27  result.merge(SdoMultiTruthMakerCfg(flags))
28 
29  result.merge(TruthSegmentMakerCfg(flags, SimHitKeys=containerNames, useOnlyMuonHits = False))
30  kwargs.setdefault("StartFromFirstHit", True)
31 
32  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
33  extp = result.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
34  extp.ApplyMaterialEffects = False
35  kwargs.setdefault("Extrapolator", extp)
36 
37  the_alg = CompFactory.ActsTrk.MuonDetectorNavTest(name, **kwargs)
38  result.addEventAlgo(the_alg, primary = True)
39  return result
40 

Variable Documentation

◆ action

testMuonDetector.action

Definition at line 47 of file testMuonDetector.py.

◆ args

testMuonDetector.args = parser.parse_args()

Definition at line 53 of file testMuonDetector.py.

◆ BuildSensitives

testMuonDetector.BuildSensitives

Definition at line 68 of file testMuonDetector.py.

◆ cfg

testMuonDetector.cfg

Definition at line 57 of file testMuonDetector.py.

◆ default

testMuonDetector.default

Definition at line 47 of file testMuonDetector.py.

◆ doFullMonMT

testMuonDetector.doFullMonMT

Definition at line 56 of file testMuonDetector.py.

◆ dumpDetector

testMuonDetector.dumpDetector

Definition at line 65 of file testMuonDetector.py.

◆ dumpDetectorVolumes

testMuonDetector.dumpDetectorVolumes

Definition at line 67 of file testMuonDetector.py.

◆ dumpMaterialSurfaces

testMuonDetector.dumpMaterialSurfaces

Definition at line 69 of file testMuonDetector.py.

◆ dumpPassive

testMuonDetector.dumpPassive

Definition at line 66 of file testMuonDetector.py.

◆ flags

testMuonDetector.flags = initConfigFlags()

Definition at line 55 of file testMuonDetector.py.

◆ help

testMuonDetector.help

Definition at line 47 of file testMuonDetector.py.

◆ inputFile

testMuonDetector.inputFile

Definition at line 44 of file testMuonDetector.py.

◆ nEvents

testMuonDetector.nEvents

Definition at line 46 of file testMuonDetector.py.

◆ outRootFile

testMuonDetector.outRootFile

Definition at line 45 of file testMuonDetector.py.

◆ parser

testMuonDetector.parser = SetupArgParser()

Definition at line 43 of file testMuonDetector.py.

MuonTruthAlgsConfig.TruthSegmentMakerCfg
def TruthSegmentMakerCfg(flags, name="TruthSegmentMakerAlg", **kwargs)
Definition: MuonPhaseII/MuonPatternRecognition/MuonTruthAlgsR4/python/MuonTruthAlgsConfig.py:7
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonTruthAlgsConfig.SdoMultiTruthMakerCfg
def SdoMultiTruthMakerCfg(flags, useSDO=False)
Definition: MuonPhaseII/MuonPatternRecognition/MuonTruthAlgsR4/python/MuonTruthAlgsConfig.py:97
MuonTruthAlgsConfig.TruthSegmentToTruthPartAssocCfg
def TruthSegmentToTruthPartAssocCfg(flags, name="MuonTruthSegmentToTruthAssocAlg", **kwargs)
Definition: MuonPhaseII/MuonPatternRecognition/MuonTruthAlgsR4/python/MuonTruthAlgsConfig.py:141
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
testMuonDetector.MuonDetectorNavTestCfg
def MuonDetectorNavTestCfg(flags, name="MuonDetectorNavTest", **kwargs)
Definition: testMuonDetector.py:6
MuonTruthAlgsConfig.MuonTruthHitCountsAlgCfg
def MuonTruthHitCountsAlgCfg(flags, name="MuonTruthHitSummaryAlg", **kwargs)
Definition: MuonConfig/python/MuonTruthAlgsConfig.py:49
MuonTruthAlgsConfig.TruthMuonMakerAlgCfg
def TruthMuonMakerAlgCfg(flags, name="TruthMuonMakerAlg", **kwargs)
Definition: MuonConfig/python/MuonTruthAlgsConfig.py:28