ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_G4_SD
python
AFP_G4_SDConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
def
AFP_SensitiveDetectorCfg
(flags, name="AFP_SensitiveDetector", **kwargs):
7
result = ComponentAccumulator()
8
volumeList=[]
#["AFP::AFP*_LogSIDSensor*" , "AFP::AFP*_LogSIDVacuumSensor*" , "AFP::AFP*_LogTDSensor*"]
9
for
det
in
range(4):
10
for
num
in
range(4):
11
volumeList += [
"AFP::AFP0"
+str(det)+
"_LogSIDSensor["
+str(num)+
"]"
]
12
for
det
in
range(4):
13
volumeList += [
"AFP::AFP0"
+str(det)+
"_LogSIDVacuumSensor[11]"
]
14
for
det
in
[0,3]:
15
for
Q
in
range(1,2):
16
for
num
in
range(11,45):
17
volumeList += [
"AFP::AFP0"
+str(det)+
"_Q"
+str(Q)+
"_LogTDSensor["
+str(num)+
"]"
]
18
volumeList += [
"AFP::AFP0"
+str(det)+
"_Q"
+str(Q)+
"_LogRadiator["
+str(num)+
"]"
]
19
volumeList += [
"AFP::AFP0"
+str(det)+
"_Q"
+str(Q)+
"_LGuide["
+str(num)+
"]"
]
20
kwargs.setdefault(
"LogicalVolumeNames"
, volumeList)
21
kwargs.setdefault(
"OutputCollectionNames"
, [
"AFP_TDSimHitCollection"
,
"AFP_SIDSimHitCollection"
])
22
result.setPrivateTools(CompFactory.AFP_SensitiveDetectorTool(name, **kwargs))
23
return
result
24
25
26
def
AFP_SiDSensitiveDetectorCfg
(flags, name="AFP_SiDSensitiveDetector", **kwargs):
27
result = ComponentAccumulator()
28
volumeList=[]
#["AFP::AFP*_LogSIDSensor*" , "AFP::AFP*_LogSIDVacuumSensor*"]
29
for
det
in
range(4):
30
for
num
in
range(4):
31
volumeList += [
"AFP::AFP0"
+str(det)+
"_LogSIDSensor["
+str(num)+
"]"
]
32
for
det
in
range(4):
33
volumeList += [
"AFP::AFP0"
+str(det)+
"_LogSIDVacuumSensor[11]"
]
34
kwargs.setdefault(
"LogicalVolumeNames"
, volumeList)
35
kwargs.setdefault(
"OutputCollectionNames"
, [
"AFP_SIDSimHitCollection"
])
36
result.setPrivateTools(CompFactory.AFP_SiDSensitiveDetectorTool(name, **kwargs))
37
return
result
38
39
40
def
AFP_TDSensitiveDetectorCfg
(flags, name="AFP_TDSensitiveDetector", **kwargs):
41
result = ComponentAccumulator()
42
volumeList=[]
#["AFP::AFP*_LogTDSensor*"]
43
for
det
in
[0,3]:
44
for
Q
in
range(1,2):
45
for
num
in
range(11,45):
46
volumeList += [
"AFP::AFP0"
+str(det)+
"_Q"
+str(Q)+
"_LogTDSensor["
+str(num)+
"]"
]
47
kwargs.setdefault(
"LogicalVolumeNames"
, volumeList)
48
kwargs.setdefault(
"OutputCollectionNames"
, [
"AFP_TDSimHitCollection"
])
49
result.setPrivateTools(CompFactory.AFP_TDSensitiveDetectorTool(name, **kwargs))
50
return
result
AFP_G4_SDConfig.AFP_SiDSensitiveDetectorCfg
AFP_SiDSensitiveDetectorCfg(flags, name="AFP_SiDSensitiveDetector", **kwargs)
Definition
AFP_G4_SDConfig.py:26
AFP_G4_SDConfig.AFP_TDSensitiveDetectorCfg
AFP_TDSensitiveDetectorCfg(flags, name="AFP_TDSensitiveDetector", **kwargs)
Definition
AFP_G4_SDConfig.py:40
AFP_G4_SDConfig.AFP_SensitiveDetectorCfg
AFP_SensitiveDetectorCfg(flags, name="AFP_SensitiveDetector", **kwargs)
Definition
AFP_G4_SDConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0