6def AFP_SensitiveDetectorCfg(flags, name="AFP_SensitiveDetector", **kwargs):
7 result = ComponentAccumulator()
8 volumeList=[]
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