ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_G4
HGTD_G4_SD
python
HGTD_G4_SDToolConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
ISF_Algorithms.CollectionMergerConfig
import
CollectionMergerCfg
6
7
8
def
HgtdSensorSDCfg
(flags, name="HgtdSensorSD", **kwargs):
9
bare_collection_name =
"HGTD_Hits"
10
mergeable_collection_suffix =
"_G4"
11
merger_input_property =
"HGTDHits"
12
region =
"ITk"
13
14
acc, hits_collection_name = CollectionMergerCfg(flags,
15
bare_collection_name,
16
mergeable_collection_suffix,
17
merger_input_property,
18
region)
19
20
if
flags.HGTD.Geometry.useGeoModelXml:
21
kwargs.setdefault(
"GmxSensor"
,
True
)
22
kwargs.setdefault(
"LogicalVolumeNames"
, [
"HGTD::HGTDSiSensor"
,
"HGTD::HGTDSiSensorPosL0"
,
"HGTD::HGTDSiSensorPosL1"
,
"HGTD::HGTDSiSensorPosL2"
,
"HGTD::HGTDSiSensorPosL3"
,
"HGTD::HGTDSiSensorNegL0"
,
"HGTD::HGTDSiSensorNegL1"
,
"HGTD::HGTDSiSensorNegL2"
,
"HGTD::HGTDSiSensorNegL3"
])
23
else
:
24
kwargs.setdefault(
"LogicalVolumeNames"
, [
"HGTD::HGTDSiSensor0"
,
"HGTD::HGTDSiSensor1"
,
"HGTD::HGTDSiSensor2"
,
"HGTD::HGTDSiSensor3"
])
25
26
kwargs.setdefault(
"OutputCollectionNames"
, [hits_collection_name])
27
28
result = ComponentAccumulator()
29
result.merge(acc)
30
result.setPrivateTools(CompFactory.HGTDSensorSDTool(name, **kwargs))
31
return
result
HGTD_G4_SDToolConfig.HgtdSensorSDCfg
HgtdSensorSDCfg(flags, name="HgtdSensorSD", **kwargs)
Definition
HGTD_G4_SDToolConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0