3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaCommon.Logging
import logging
15 result.setPrivateTools(CompFactory.G4UA.VerboseSelectorTool(name, **kwargs))
21 result.setPrivateTools(CompFactory.G4UA.VolumeDebuggerTool(name,**kwargs))
25 def VolumeDebugger(configFlags, name="G4UA::ISFFullUserActionSvc
", **kwargs):
27 kwargs.setdefault("RunGeoTest",
True)
28 kwargs.setdefault(
"Verbose",
False)
32 from G4DebuggingTools.G4DebuggingToolsConfig
import VolumeDebuggerToolCfg
36 actionAcc.setPrivateTools(actions)
37 volumeDebuggerAction = result.popToolsAndMerge(actionAcc)
39 actionList = volumeDebuggerAction
43 kwargs_UATools.setdefault(
"UserActionTools",actionList)
44 result.addService(CompFactory.G4UA.UserActionSvc(name,**kwargs_UATools))
50 flags.Sim.OptionalUserActionList += ['G4DebuggingTools.G4DebuggingToolsConfig.StepHistogramToolCfg']
53 if flags.Concurrency.NumThreads > 1:
54 msg =
'Attempt to run '+name+
' with more than one thread, which is not supported'
55 log = logging.getLogger(name)
58 output =
'./StepHistograms_opts_temp.root'
59 result.addService(CompFactory.THistSvc(Output = [
"stepHisto DATAFILE='"+output+
"' OPT='RECREATE'"]))
60 result.setPrivateTools(CompFactory.G4UA.StepHistogramTool(name, **kwargs))