5 '''@file InDetOutputConfig.py
8 @brief CA-based python configurations to add the output stream of the AOD_IDTPM file
11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
17 Write output file in AOD_IDTPM format, on top of the
18 histogram output file, for reprocessing
40 for trkAnaName
in flags.PhysVal.IDTPM.trkAnaNames:
42 offTracks = getattr( flags.PhysVal.IDTPM, trkAnaName+
'.OfflineTrkKey' )
43 trigTracks = getattr( flags.PhysVal.IDTPM, trkAnaName+
'.TrigTrkKey' )
44 itemsToRecord.update({
45 'xAOD::TrackParticleContainer#'+offTracks,
46 'xAOD::TrackParticleAuxContainer#'+offTracks+
'Aux.',
47 'xAOD::TrackParticleContainer#'+trigTracks,
48 'xAOD::TrackParticleAuxContainer#'+trigTracks+
'Aux.',
52 truthParticles = getattr( flags.PhysVal.IDTPM, trkAnaName+
'.TruthPartKey' )
53 itemsToRecord.update({
54 'xAOD::TruthParticleContainer#'+truthParticles,
55 'xAOD::TruthParticleAuxContainer#'+truthParticles+
'Aux.',
59 objStr = getattr( flags.PhysVal.IDTPM, trkAnaName+
".SelectOfflineObject" )
62 if objStr ==
'Electron':
63 itemsToRecord.update({
64 'xAOD::ElectronContainer#Electrons',
71 itemsToRecord.update({
72 'xAOD::MuonContainer#Muons',
79 itemsToRecord.update({
80 'xAOD::TauJetContainer#TauJets',
85 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
87 ItemList =
list( itemsToRecord ),
88 disableEventTag =
True ) )