3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from ISF_Algorithms.CollectionMergerConfig
import CollectionMergerCfg
9 bare_collection_name =
"CSC_Hits"
10 mergeable_collection_suffix =
"_G4"
11 merger_input_property =
"CSCHits"
15 mergeable_collection_suffix,
16 merger_input_property,
18 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::CscArCO2"])
19 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
21 result.setPrivateTools( CompFactory.CSCSensitiveDetectorCosmicsTool(name, **kwargs) )
24 bare_collection_name =
"CSC_Hits"
25 mergeable_collection_suffix =
"_G4"
26 merger_input_property =
"CSCHits"
30 mergeable_collection_suffix,
31 merger_input_property,
33 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::CscArCO2"])
34 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
36 result.setPrivateTools( CompFactory.CSCSensitiveDetectorTool(name, **kwargs) )
41 kwargs.setdefault(
"LogicalVolumeNames", [
"GenericSenitiveVolume"])
42 kwargs.setdefault(
"OutputCollectionNames", [
"GenericMuonSensitiveDetector"])
44 result.setPrivateTools( CompFactory.GenericMuonSensitiveDetectorTool(name, **kwargs) )
49 bare_collection_name =
"MDT_Hits"
50 mergeable_collection_suffix =
"_G4"
51 merger_input_property =
"MDTHits"
55 mergeable_collection_suffix,
56 merger_input_property,
58 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::SensitiveGas"])
59 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
61 result.setPrivateTools( CompFactory.MDTSensitiveDetectorCosmicsTool(name, **kwargs) )
66 bare_collection_name =
"MDT_Hits"
67 mergeable_collection_suffix =
"_G4"
68 merger_input_property =
"MDTHits"
72 mergeable_collection_suffix,
73 merger_input_property,
75 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::SensitiveGas"])
76 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
78 result.setPrivateTools( CompFactory.MDTSensitiveDetectorTool(name, **kwargs) )
83 bare_collection_name =
"MM_Hits"
84 mergeable_collection_suffix =
"_G4"
85 merger_input_property =
"MMHits"
89 mergeable_collection_suffix,
90 merger_input_property,
92 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::MM_Sensitive"])
93 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
95 result.setPrivateTools( CompFactory.MicromegasSensitiveDetectorTool(name, **kwargs) )
100 bare_collection_name =
"RPC_Hits"
101 mergeable_collection_suffix =
"_G4"
102 merger_input_property =
"RPCHits"
105 bare_collection_name,
106 mergeable_collection_suffix,
107 merger_input_property,
109 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::gazGap"])
110 kwargs.setdefault(
"OutputCollectionNames", [bare_collection_name])
112 result.setPrivateTools( CompFactory.RPCSensitiveDetectorCosmicsTool(name, **kwargs) )
117 bare_collection_name =
"RPC_Hits"
118 mergeable_collection_suffix =
"_G4"
119 merger_input_property =
"RPCHits"
122 bare_collection_name,
123 mergeable_collection_suffix,
124 merger_input_property,
126 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::gazGap"])
127 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
129 result.setPrivateTools( CompFactory.RPCSensitiveDetectorTool(name, **kwargs) )
134 bare_collection_name =
"TGC_Hits"
135 mergeable_collection_suffix =
"_G4"
136 merger_input_property =
"TGCHits"
139 bare_collection_name,
140 mergeable_collection_suffix,
141 merger_input_property,
143 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::muo::TGCGas"])
144 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
146 result.setPrivateTools( CompFactory.TGCSensitiveDetectorCosmicsTool(name, **kwargs) )
151 bare_collection_name =
"TGC_Hits"
152 mergeable_collection_suffix =
"_G4"
153 merger_input_property =
"TGCHits"
156 bare_collection_name,
157 mergeable_collection_suffix,
158 merger_input_property,
160 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::muo::TGCGas"])
161 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
163 result.setPrivateTools( CompFactory.TGCSensitiveDetectorTool(name, **kwargs) )
168 bare_collection_name =
"sTGC_Hits"
169 mergeable_collection_suffix =
"_G4"
170 merger_input_property =
"sTGCHits"
173 bare_collection_name,
174 mergeable_collection_suffix,
175 merger_input_property,
177 kwargs.setdefault(
"LogicalVolumeNames", [
"Muon::sTGC_Sensitive"])
178 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
180 result.setPrivateTools( CompFactory.sTGCSensitiveDetectorTool(name, **kwargs) )