ATLAS Offline Software
Loading...
Searching...
No Matches
egammaArtSpecialContent Namespace Reference

Functions

 egammaArtSpecialContent (flags, cfg)

Function Documentation

◆ egammaArtSpecialContent()

egammaArtSpecialContent.egammaArtSpecialContent ( flags,
cfg )

Definition at line 3 of file egammaArtSpecialContent.py.

3def 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