ATLAS Offline Software
TrigRoiConversionConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.Enums import Format
6 
7 def RoiWriterCfg(flags):
8  """Configure RoiWriter to convert AOD RoI descriptors to xAOD"""
9 
10  from TrigEDMConfig.TriggerEDMRun2 import TriggerRoiList
11  from OutputStreamAthenaPool.OutputStreamConfig import addToAOD
12 
13  acc = ComponentAccumulator()
14 
15  roiWriter = CompFactory.RoiWriter()
16  if flags.Input.Format is Format.BS:
17  # If TrigBSExtraction is running, enforce order via fictional data dependency
18  roiWriter.ExtraInputs = {("TrigBSExtractionOutput", "StoreGateSvc+TrigBSExtractionOutput")}
19 
20  acc.addEventAlgo( roiWriter )
21  acc.merge( addToAOD(flags, TriggerRoiList) )
22 
23  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigRoiConversionConfig.RoiWriterCfg
def RoiWriterCfg(flags)
Definition: TrigRoiConversionConfig.py:7
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142