60 from MuonConfig.MuonDataPrepConfig
import PrimaryMeasContNamesCfg
62 if flags.Detector.GeometryMDT:
63 the_alg = CompFactory.MuonR4.PrdMultiTruthMaker(
"PrdMultiTruthMakerMdt",
64 PrdContainer = [prd
for prd
in prdContainer
if "xMdt" in prd],
65 WriteKey =
"MDT_TruthMap")
66 result.addEventAlgo(the_alg)
67 if flags.Detector.GeometryRPC:
68 the_alg = CompFactory.MuonR4.PrdMultiTruthMaker(
"PrdMultiTruthMakerRpc",
69 PrdContainer = [prd
for prd
in prdContainer
if "xRpc" in prd],
70 WriteKey =
"RPC_TruthMap")
71 result.addEventAlgo(the_alg)
72 if flags.Detector.GeometryTGC:
73 the_alg = CompFactory.MuonR4.PrdMultiTruthMaker(
"PrdMultiTruthMakerTgc",
74 PrdContainer = [prd
for prd
in prdContainer
if "xTgc" in prd],
75 WriteKey =
"TGC_TruthMap")
76 result.addEventAlgo(the_alg)
77 if flags.Detector.GeometryMM:
78 the_alg = CompFactory.MuonR4.PrdMultiTruthMaker(
"PrdMultiTruthMakerMm",
79 PrdContainer = [prd
for prd
in prdContainer
if "MM" in prd],
80 WriteKey =
"MM_TruthMap")
81 result.addEventAlgo(the_alg)
82 if flags.Detector.GeometrysTGC:
83 the_alg = CompFactory.MuonR4.PrdMultiTruthMaker(
"PrdMultiTruthMakerSTGC",
84 PrdContainer = [prd
for prd
in prdContainer
if "STGC" in prd],
85 WriteKey =
"STGC_TruthMap")
86 result.addEventAlgo(the_alg)