ATLAS Offline Software
egammaArtSpecialContent.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 def egammaArtSpecialContent(flags,cfg):
4  from OutputStreamAthenaPool.OutputStreamConfig import outputStreamName
5  StreamAOD = cfg.getEventAlgo(outputStreamName("AOD"))
6  List = StreamAOD.ItemList
7  KeyForExisting = 'CaloCalTopoClustersAux'
8  AdditionalEgamma = '.ENG_FRAC_EM'
9 
10  newItem = ''
11  for e in List:
12  if e.find(KeyForExisting) >= 0:
13  newItem = e + AdditionalEgamma
14  newList = [ e for e in List if e.find(KeyForExisting) < 0 ]
15  newList.append(newItem)
16  StreamAOD.ItemList = newList
AthenaPoolExample_WriteCond.outputStreamName
string outputStreamName
Definition: AthenaPoolExample_WriteCond.py:21
egammaArtSpecialContent.egammaArtSpecialContent
def egammaArtSpecialContent(flags, cfg)
Definition: egammaArtSpecialContent.py:3