3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import LHCPeriod
6 from ISF_Algorithms.CollectionMergerConfig
import CollectionMergerCfg
10 bare_collection_name =
"TRTUncompressedHits"
11 mergeable_collection_suffix =
"_G4"
12 merger_input_property =
"TRTUncompressedHits"
17 mergeable_collection_suffix,
18 merger_input_property,
21 logicalVolumeNames = [
"TRT::Gas"]
22 if flags.GeoModel.Run
in [LHCPeriod.Run2]:
23 logicalVolumeNames += [
"TRT::GasMA"]
24 if flags.GeoModel.Run
in [LHCPeriod.Run2, LHCPeriod.Run3]:
25 logicalVolumeNames += [
"TRT::Gas_Ar",
"TRT::GasMA_Ar"]
28 kwargs.setdefault(
"LogicalVolumeNames", logicalVolumeNames)
29 kwargs.setdefault(
"OutputCollectionNames", [hits_collection_name])
33 result.setPrivateTools(CompFactory.TRTSensitiveDetectorTool(name, **kwargs))
38 kwargs.setdefault(
"LogicalVolumeNames", [
"TRT::GasMA"])
39 kwargs.setdefault(
"OutputCollectionNames", [
"TRTUncompressedHits"])
41 result.setPrivateTools(CompFactory.TRTSensitiveDetectorTool(name, **kwargs))