ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_G4_SDConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def ALFA_SensitiveDetectorCfg(flags, name="ALFA_SensitiveDetector", **kwargs):
7 result = ComponentAccumulator()
8 volumeNames = [ "ALFA::logALFA_FiberU" , "ALFA::logALFA_FiberV" , "ALFA::logOD_FiberActive" ,
9 "ALFA::B7L1_GVS" , "ALFA::A7L1_GVS" , "ALFA::A7R1_GVS" , "ALFA::B7R1_GVS" ]
10 for i in range(64):
11 volumeNames += [ "ALFA::logALFA_FiberU["+str(i)+"]" ]
12 volumeNames += [ "ALFA::logALFA_FiberV["+str(i)+"]" ]
13 kwargs.setdefault("LogicalVolumeNames", volumeNames)
14 kwargs.setdefault("OutputCollectionNames", ["ALFA_HitCollection", "ALFA_ODHitCollection"])
15 result.setPrivateTools(CompFactory.ALFA_SensitiveDetectorTool(name, **kwargs))
16 return result
ALFA_SensitiveDetectorCfg(flags, name="ALFA_SensitiveDetector", **kwargs)