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

Functions

 IsoOutputCfg (flags, name="IsoOutputList")

Detailed Description

Prepare isolation output list (density) 

Function Documentation

◆ IsoOutputCfg()

IsoOutputConfig.IsoOutputCfg ( flags,
name = "IsoOutputList" )

Definition at line 8 of file IsoOutputConfig.py.

8def IsoOutputCfg(flags, name="IsoOutputList"):
9
10 mlog = logging.getLogger(name)
11 mlog.info('Starting isolation Output configuration')
12
13 acc = ComponentAccumulator()
14
15 toESD = []
16 toAOD = []
17
18 DensityAODSupp = "-DensityArea.-DensitySigma"
19
20 if flags.Detector.EnableCalo:
21 toESD += [
22 "xAOD::EventShape#TopoClusterIsoCentralEventShape",
23 "xAOD::EventShapeAuxInfo#TopoClusterIsoCentralEventShapeAux."]
24 toESD += [
25 "xAOD::EventShape#TopoClusterIsoForwardEventShape",
26 "xAOD::EventShapeAuxInfo#TopoClusterIsoForwardEventShapeAux."]
27 if flags.Reco.EnablePFlow:
28 toESD += [
29 "xAOD::EventShape#NeutralParticleFlowIsoCentralEventShape",
30 "xAOD::EventShapeAuxInfo#NeutralParticleFlowIsoCentralEventShapeAux."]
31 toESD += [
32 "xAOD::EventShape#NeutralParticleFlowIsoForwardEventShape",
33 "xAOD::EventShapeAuxInfo#NeutralParticleFlowIsoForwardEventShapeAux."]
34
35 toAOD = [ i.replace('Aux.',f'Aux.{DensityAODSupp}') for i in toESD ]
36
37 if flags.Output.doWriteESD:
38 from OutputStreamAthenaPool.OutputStreamConfig import addToESD
39 acc.merge(addToESD(flags, toESD))
40 mlog.info('isoDensityESDList: %s ', toESD)
41
42 if flags.Output.doWriteAOD:
43 from OutputStreamAthenaPool.OutputStreamConfig import addToAOD
44 acc.merge(addToAOD(flags, toAOD))
45 mlog.info('isoDensityAODList: %s ', toAOD)
46
47 mlog.info("Isolation Output configured")
48 return acc