Skip to content
Snippets Groups Projects
Commit b32600fd authored by Nicholas Styles's avatar Nicholas Styles
Browse files

add postInclude for adding length integrator user action to a job

parent f960d9b8
No related branches found
No related tags found
7 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!41882aligning "tracktwoef_nonrnn_chain" with master branch,!41752Add postInclude for adding length integrator user action to a job
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
def LengthIntegrator(configFlags, name="G4UA::ISFFullUserActionSvc", **kwargs):
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.ComponentFactory import CompFactory
result = ComponentAccumulator()
#Setting up the CA for the LengthIntegrator
from G4UserActions.G4UserActionsConfigNew import LengthIntegratorToolCfg
actionAcc = ComponentAccumulator()
actions = []
actions += [actionAcc.popToolsAndMerge(LengthIntegratorToolCfg(configFlags))]
actionAcc.setPrivateTools(actions)
lengthIntegratorAction = result.popToolsAndMerge(actionAcc)
actionList = lengthIntegratorAction
#Setting up UserActionsService
kwargs.setdefault("UserActionTools",actionList)
result.addService(CompFactory.G4UA.UserActionSvc(name, **kwargs))
return result
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
from .PostIncludes import LengthIntegrator
__all__ = ['LengthIntegrator']
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