ATLAS Offline Software
TrigConfxAODConfig.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 def getxAODConfigSvc(flags):
6  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7  from AthenaConfiguration.ComponentFactory import CompFactory
8 
10 
11  cfgsvc = CompFactory.TrigConf.xAODConfigSvc('xAODConfigSvc')
12  # We serve in-file metadata where possible. If it does not exist (e.g. RAWtoALL), then it is obtained from the Conditions and Detector stores
13  cfgsvc.UseInFileMetadata = flags.Trigger.triggerConfig == 'INFILE'
14  acc.addService(cfgsvc, primary=True)
15 
16  if flags.Trigger.triggerConfig == 'INFILE':
17  from AthenaServices.MetaDataSvcConfig import MetaDataSvcCfg
18  acc.merge(MetaDataSvcCfg(flags))
19  else: # All other possilbe access methods are via Det store or Cond store. For now the svc will forward the requests (but we should update clients to make direct calls)
20  from TrigConfigSvc.TrigConfigSvcCfg import TrigConfigSvcCfg
21  acc.merge(TrigConfigSvcCfg(flags))
22 
23  return acc
python.TrigConfigSvcCfg.TrigConfigSvcCfg
def TrigConfigSvcCfg(flags)
Definition: TrigConfigSvcCfg.py:263
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigConfxAODConfig.getxAODConfigSvc
def getxAODConfigSvc(flags)
Definition: TrigConfxAODConfig.py:5
python.MetaDataSvcConfig.MetaDataSvcCfg
def MetaDataSvcCfg(flags, toolNames=[], tools=[])
Definition: MetaDataSvcConfig.py:6