ATLAS Offline Software
Functions
python.G4DebuggingToolsConfig Namespace Reference

Functions

def VerboseSelectorToolCfg (flags, name="G4UA::VerboseSelectorTool", **kwargs)
 
def VolumeDebuggerToolCfg (flags, name='G4UA::VolumeDebuggerTool', **kwargs)
 
def VolumeDebugger (configFlags, name="G4UA::ISFFullUserActionSvc", **kwargs)
 
def StepHistogramToolCfg (flags, name="G4UA::StepHistogramTool", **kwargs)
 

Function Documentation

◆ StepHistogramToolCfg()

def python.G4DebuggingToolsConfig.StepHistogramToolCfg (   flags,
  name = "G4UA::StepHistogramTool",
**  kwargs 
)
flags.Sim.OptionalUserActionList += ['G4DebuggingTools.G4DebuggingToolsConfig.StepHistogramToolCfg']

Definition at line 48 of file G4DebuggingToolsConfig.py.

48 def StepHistogramToolCfg(flags, name="G4UA::StepHistogramTool", **kwargs): """
49  flags.Sim.OptionalUserActionList += ['G4DebuggingTools.G4DebuggingToolsConfig.StepHistogramToolCfg']
50  """
51  result = ComponentAccumulator()
52  if flags.Concurrency.NumThreads > 1:
53  msg = 'Attempt to run '+name+' with more than one thread, which is not supported'
54  log = logging.getLogger(name)
55  log.fatal(msg)
56  raise TypeError(msg)
57  output = './StepHistograms_opts_temp.root'
58  result.addService(CompFactory.THistSvc(Output = ["stepHisto DATAFILE='"+output+"' OPT='RECREATE'"]))
59  result.setPrivateTools(CompFactory.G4UA.StepHistogramTool(name, **kwargs))
60  return result
61 

◆ VerboseSelectorToolCfg()

def python.G4DebuggingToolsConfig.VerboseSelectorToolCfg (   flags,
  name = "G4UA::VerboseSelectorTool",
**  kwargs 
)

Definition at line 9 of file G4DebuggingToolsConfig.py.

9 def VerboseSelectorToolCfg(flags, name="G4UA::VerboseSelectorTool", **kwargs):
10  result = ComponentAccumulator()
11  # example custom configuration - not enabled in this initial version
12  #if name in flags.Sim.UserActionConfig.keys():
13  # for prop,value in flags.Sim.UserActionConfig[name].items():
14  # kwargs.setdefault(prop,value)
15  result.setPrivateTools(CompFactory.G4UA.VerboseSelectorTool(name, **kwargs))
16  return result
17 
18 

◆ VolumeDebugger()

def python.G4DebuggingToolsConfig.VolumeDebugger (   configFlags,
  name = "G4UA::ISFFullUserActionSvc",
**  kwargs 
)

Definition at line 25 of file G4DebuggingToolsConfig.py.

25 def VolumeDebugger(configFlags, name="G4UA::ISFFullUserActionSvc", **kwargs):
26 
27  kwargs.setdefault("RunGeoTest",True)
28  kwargs.setdefault("Verbose",False)
29 
30  result = ComponentAccumulator()
31  #Setting up the CA for the LengthIntegrator
32  from G4DebuggingTools.G4DebuggingToolsConfig import VolumeDebuggerToolCfg
33  actionAcc = ComponentAccumulator()
34  actions = []
35  actions += [actionAcc.popToolsAndMerge(VolumeDebuggerToolCfg(configFlags,**kwargs))]
36  actionAcc.setPrivateTools(actions)
37  volumeDebuggerAction = result.popToolsAndMerge(actionAcc)
38 
39  actionList = volumeDebuggerAction
40  #We clear it here because UserActionsTools also wants kwargs, different
41  #from the tool above - probably this can be improved...
42  kwargs_UATools = {}
43  kwargs_UATools.setdefault("UserActionTools",actionList)
44  result.addService(CompFactory.G4UA.UserActionSvc(name,**kwargs_UATools))
45 
46  return result
47 

◆ VolumeDebuggerToolCfg()

def python.G4DebuggingToolsConfig.VolumeDebuggerToolCfg (   flags,
  name = 'G4UA::VolumeDebuggerTool',
**  kwargs 
)

Definition at line 19 of file G4DebuggingToolsConfig.py.

19 def VolumeDebuggerToolCfg(flags, name='G4UA::VolumeDebuggerTool', **kwargs):
20  result = ComponentAccumulator()
21  result.setPrivateTools(CompFactory.G4UA.VolumeDebuggerTool(name,**kwargs))
22  return result
23 
24 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.G4DebuggingToolsConfig.VerboseSelectorToolCfg
def VerboseSelectorToolCfg(flags, name="G4UA::VerboseSelectorTool", **kwargs)
Definition: G4DebuggingToolsConfig.py:9
python.G4DebuggingToolsConfig.VolumeDebugger
def VolumeDebugger(configFlags, name="G4UA::ISFFullUserActionSvc", **kwargs)
Definition: G4DebuggingToolsConfig.py:25
python.G4DebuggingToolsConfig.StepHistogramToolCfg
def StepHistogramToolCfg(flags, name="G4UA::StepHistogramTool", **kwargs)
Definition: G4DebuggingToolsConfig.py:48
python.G4DebuggingToolsConfig.VolumeDebuggerToolCfg
def VolumeDebuggerToolCfg(flags, name='G4UA::VolumeDebuggerTool', **kwargs)
Definition: G4DebuggingToolsConfig.py:19