ATLAS Offline Software
CommonServiceSequence.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 # AnaAlgorithm import(s):
4 from AnaAlgorithm.DualUseConfig import createService
5 
6 def makeCommonServiceSequence (algSeq, runSystematics=True, ca=None) :
7  """make the common services for the CP algorithms"""
8 
9  # Set up the systematics loader/handler service:
10  sysService = createService( 'CP::SystematicsSvc', 'SystematicsSvc', sequence = algSeq )
11  if runSystematics :
12  sysService.sigmaRecommended = 1
13  selectionSvc = createService( 'CP::SelectionNameSvc', 'SelectionNameSvc', sequence = algSeq )
14  if ca is not None :
15  ca.addService( sysService )
16  ca.addService( selectionSvc )
python.CommonServiceSequence.makeCommonServiceSequence
def makeCommonServiceSequence(algSeq, runSystematics=True, ca=None)
Definition: CommonServiceSequence.py:6
python.DualUseConfig.createService
def createService(typeName, serviceName, sequence=None)
Definition: DualUseConfig.py:127