Skip to content
Snippets Groups Projects
Commit 44b24b17 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'master-LengthIntegratorConfig' into 'master'

Add config for LengthIntegrator UserAction

See merge request !36040
parents d98dfad5 d1e35ba7
No related branches found
No related tags found
No related merge requests found
...@@ -87,3 +87,14 @@ def HitWrapperToolCfg(ConfigFlags, name="G4UA::HitWrapperTool", **kwargs): ...@@ -87,3 +87,14 @@ def HitWrapperToolCfg(ConfigFlags, name="G4UA::HitWrapperTool", **kwargs):
# kwargs.setdefault(prop,value) # kwargs.setdefault(prop,value)
result.setPrivateTools(CompFactory.G4UA.HitWrapperTool(name, **kwargs)) result.setPrivateTools(CompFactory.G4UA.HitWrapperTool(name, **kwargs))
return result return result
def LengthIntegratorToolCfg(ConfigFlags, name="G4UA::UserActionSvc.LengthIntegratorTool", **kwargs):
THistSvc= CompFactory.THistSvc
result = ComponentAccumulator()
histsvc = THistSvc(name="THistSvc")
histsvc.Output = ["lengths DATAFILE='LengthIntegrator.root' OPT='RECREATE'"]
result.addService(histsvc)
kwargs.setdefault("HistoSvc", "THistSvc")
result.setPrivateTools(CompFactory.G4UA.LengthIntegratorTool(name, **kwargs))
return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment