2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if not flags.Input.isMC:
11 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
15 if flags.Detector.EnableMDT: containerNames+=[
"MDT_SDO"]
16 if flags.Detector.EnableRPC: containerNames+=[
"RPC_SDO"]
17 if flags.Detector.EnableTGC: containerNames+=[
"TGC_SDO"]
18 if flags.Detector.EnableMM: containerNames+=[
"MM_SDO"]
19 if flags.Detector.EnablesTGC: containerNames+=[
"sTGC_SDO"]
20 kwargs.setdefault(
"SimHitKeys", containerNames)
22 the_alg = CompFactory.MuonR4.TruthSegmentMaker(name, **kwargs)
23 result.addEventAlgo(the_alg, primary =
True)
28 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
30 the_alg = CompFactory.MuonR4.PrepDataToSimHitAssocAlg(name, **kwargs)
31 result.addEventAlgo(the_alg, primary =
True)
36 if not flags.Input.isMC:
38 from MuonConfig.MuonDataPrepConfig
import PrimaryMeasContNamesCfg
41 if "xMdt" in cont_name:
43 elif "xRpc" in cont_name:
45 elif "xTgc" in cont_name:
47 elif "MM" in cont_name:
52 name=f
"{cont_name}PrepDataToSimHitAssoc",
54 Measurements=cont_name,
55 AssocPull = 1.
if cont_name==
"xAODsTgcPads" else 3. ))
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)
92 from MuonConfig.MuonDataPrepConfig
import PrimaryMeasContNamesCfg
93 PrdLinkInputs = [(
"xAOD::UncalibratedMeasurementContainer" ,