3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
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"]
17 kwargs.setdefault(
"PRD_TruthNames", PRD_TruthNames)
18 result.addEventAlgo(CompFactory.MuonDetailedTrackTruthMaker(name, **kwargs))
24 PRD_TruthMaps = [
"RPC_TruthMap",
"TGC_TruthMap",
"MDT_TruthMap"]
25 SDOs = [
"RPC_SDO",
"TGC_SDO",
"MDT_SDO"]
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:
34 PRD_TruthMaps += [
"CSC_TruthMap"]
36 kwargs.setdefault(
"SDOs", SDOs)
37 kwargs.setdefault(
"CSCSDOs", CSCSDOs)
38 kwargs.setdefault(
"PRD_TruthMaps", PRD_TruthMaps)
40 from MCTruthClassifier.MCTruthClassifierConfig
import MCTruthClassifierCfg
43 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
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))
53 result.addEventAlgo(CompFactory.MuonTruthAssociationAlg(name, **kwargs))
58 result.addEventAlgo(CompFactory.Muon.MuonSegmentTruthAssociationAlg(name, **kwargs))