2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
7 kwargs.setdefault(
"OutputCollectionNames", [
"xRawMdtSimHits"])
8 kwargs.setdefault(
"LogicalVolumeNames", [
"MuonR4::MDTDriftGas"])
9 kwargs.setdefault(
"AlignStoreKey",
"MdtActsAlignContainer")
10 the_tool = CompFactory.MuonG4R4.MdtSensitiveDetectorTool(name, **kwargs)
11 from MuonSimHitSorting.MuonSimHitSortingCfg
import MuonSimHitSortingAlgCfg
13 InContainers=[
"xRawMdtSimHits"],
14 OutContainer =
"xMdtSimHits",
16 result.setPrivateTools(the_tool)
21 kwargs.setdefault(
"OutputCollectionNames", [
"xRawMmSimHits"])
22 kwargs.setdefault(
"LogicalVolumeNames", [
"MuonR4::actMicroMegaGas"])
23 kwargs.setdefault(
"AlignStoreKey",
"MmActsAlignContainer")
24 the_tool = CompFactory.MuonG4R4.MmSensitiveDetectorTool(name, **kwargs)
25 from MuonSimHitSorting.MuonSimHitSortingCfg
import MuonSimHitSortingAlgCfg
27 InContainers=[
"xRawMmSimHits"],
28 OutContainer =
"xMmSimHits",
30 result.setPrivateTools(the_tool)
35 kwargs.setdefault(
"OutputCollectionNames", [
"xRawRpcSimHits"])
36 kwargs.setdefault(
"LogicalVolumeNames", [
"MuonR4::RpcGasGap"])
37 kwargs.setdefault(
"AlignStoreKey",
"RpcActsAlignContainer")
38 from MuonSimHitSorting.MuonSimHitSortingCfg
import MuonSimHitSortingAlgCfg
40 InContainers=[
"xRawRpcSimHits"],
41 OutContainer =
"xRpcSimHits",
43 the_tool = CompFactory.MuonG4R4.RpcSensitiveDetectorTool(name, **kwargs)
44 result.setPrivateTools(the_tool)
49 kwargs.setdefault(
"OutputCollectionNames", [
"xRawTgcSimHits"])
50 kwargs.setdefault(
"LogicalVolumeNames", [
"MuonR4::TgcGas"])
51 kwargs.setdefault(
"AlignStoreKey",
"TgcActsAlignContainer")
52 from MuonSimHitSorting.MuonSimHitSortingCfg
import MuonSimHitSortingAlgCfg
54 InContainers=[
"xRawTgcSimHits"],
55 OutContainer =
"xTgcSimHits",
57 the_tool = CompFactory.MuonG4R4.TgcSensitiveDetectorTool(name, **kwargs)
58 result.setPrivateTools(the_tool)
63 kwargs.setdefault(
"OutputCollectionNames", [
"xRawStgcSimHits"])
64 kwargs.setdefault(
"LogicalVolumeNames", [
"MuonR4::sTgcGas"])
65 kwargs.setdefault(
"AlignStoreKey",
"sTgcActsAlignContainer")
66 from MuonSimHitSorting.MuonSimHitSortingCfg
import MuonSimHitSortingAlgCfg
68 InContainers=[
"xRawStgcSimHits"],
69 OutContainer =
"xStgcSimHits",
71 the_tool = CompFactory.MuonG4R4.sTgcSensitiveDetectorTool(name, **kwargs)
72 result.setPrivateTools(the_tool)
78 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
82 if flags.Detector.EnableMDT:
85 if flags.Detector.EnableRPC:
88 if flags.Detector.EnableMM:
91 if flags.Detector.EnableTGC:
93 if flags.Detector.EnablesTGC:
95 result.setPrivateTools(tools)
100 simHitContainers = []
101 if flags.Detector.EnableMDT:
102 simHitContainers+=[(
"xAOD::MuonSimHitContainer",
"xRawMdtSimHits")]
103 if flags.Detector.EnableMM:
104 simHitContainers+=[(
"xAOD::MuonSimHitContainer",
"xRawMmSimHits")]
105 if flags.Detector.EnableRPC:
106 simHitContainers+=[(
"xAOD::MuonSimHitContainer",
"xRawRpcSimHits")]
107 if flags.Detector.EnableTGC:
108 simHitContainers+=[(
"xAOD::MuonSimHitContainer",
"xRawTgcSimHits")]
109 if flags.Detector.EnablesTGC:
110 simHitContainers+=[(
"xAOD::MuonSimHitContainer",
"xRawStgcSimHits")]
111 return simHitContainers
115 if not flags.Muon.usePhaseIIGeoSetup:
return dependcies
116 if flags.Detector.EnableMDT:
117 dependcies+=[(
"ActsTrk::DetectorAlignStore",
"MdtActsAlignContainer")]
118 if flags.Detector.EnableMM:
119 dependcies+=[(
"ActsTrk::DetectorAlignStore",
"MmActsAlignContainer")]
120 if flags.Detector.EnableRPC:
121 dependcies+=[(
"ActsTrk::DetectorAlignStore",
"RpcActsAlignContainer")]
122 if flags.Detector.EnableTGC:
123 dependcies+=[(
"ActsTrk::DetectorAlignStore",
"TgcActsAlignContainer")]
124 if flags.Detector.EnablesTGC:
125 dependcies+=[(
"ActsTrk::DetectorAlignStore",
"sTgcActsAlignContainer")]
131 if flags.Detector.EnableMDT:
132 containerNames+=[
"xMdtSimHits"]
133 if flags.Detector.EnableMM:
134 containerNames+=[
"xMmSimHits"]
135 if flags.Detector.EnableRPC:
136 containerNames+=[
"xRpcSimHits"]
137 if flags.Detector.EnableTGC:
138 containerNames+=[
"xTgcSimHits"]
139 if flags.Detector.EnablesTGC:
140 containerNames+=[
"xStgcSimHits"]
142 outContainers +=[ f
"xAOD::MuonSimHitContainer#{cont}" for cont
in containerNames]
143 outContainers +=[ f
"xAOD::MuonSimHitAuxContainer#{cont}Aux." for cont
in containerNames]