ATLAS Offline Software
Functions
InDetOutputConfig Namespace Reference

Functions

def InDetOutputCfg (flags, **kwargs)
 

Function Documentation

◆ InDetOutputCfg()

def InDetOutputConfig.InDetOutputCfg (   flags,
**  kwargs 
)
Write output file in AOD_IDTPM format, on top of the
histogram output file, for reprocessing

Definition at line 15 of file InDetOutputConfig.py.

15 def InDetOutputCfg( flags, **kwargs ):
16  '''
17  Write output file in AOD_IDTPM format, on top of the
18  histogram output file, for reprocessing
19  '''
20  acc = ComponentAccumulator()
21 
22 
26 
27 
36 
37 
38  itemsToRecord = set()
39 
40  for trkAnaName in flags.PhysVal.IDTPM.trkAnaNames:
41 
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.',#+truthVars+'.'+objVars,
47  'xAOD::TrackParticleContainer#'+trigTracks,
48  'xAOD::TrackParticleAuxContainer#'+trigTracks+'Aux.',#+truthVars,
49  })
50 
51 
52  truthParticles = getattr( flags.PhysVal.IDTPM, trkAnaName+'.TruthPartKey' )
53  itemsToRecord.update({
54  'xAOD::TruthParticleContainer#'+truthParticles,
55  'xAOD::TruthParticleAuxContainer#'+truthParticles+'Aux.',
56  })
57 
58 
59  objStr = getattr( flags.PhysVal.IDTPM, trkAnaName+".SelectOfflineObject" )
60 
61 
62  if objStr == 'Electron':
63  itemsToRecord.update({
64  'xAOD::ElectronContainer#Electrons',
65  # TODO - uncomment to store xAOD::Electron decorations
66  #'xAOD::ElectronAuxContainer#ElectronsAux.',
67  })
68 
69 
70  if objStr == 'Muon':
71  itemsToRecord.update({
72  'xAOD::MuonContainer#Muons',
73  # TODO - uncomment to store xAOD::Muon decorations
74  #'xAOD::MuonAuxContainer#MuonsAux.',
75  })
76 
77 
78  if objStr == 'Tau':
79  itemsToRecord.update({
80  'xAOD::TauJetContainer#TauJets',
81  # TODO - uncomment to store xAOD::TauJets decorations
82  #'xAOD::TauJetAuxContainer#TauJetsAux.',
83  })
84 
85 
86  trkAnaInfo = "TrkAnaInfo"+getattr( flags.PhysVal.IDTPM, trkAnaName+'.anaTag' )
87  itemsToRecord.update({
88  'xAOD::BaseContainer#'+trkAnaInfo,
89  'xAOD::AuxContainerBase#'+trkAnaInfo+'Aux.',
90  })
91 
92 
93  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
94  acc.merge( OutputStreamCfg( flags, 'AOD_IDTPM',
95  ItemList = list( itemsToRecord ),
96  disableEventTag = True ) )
97 
98  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
InDetOutputConfig.InDetOutputCfg
def InDetOutputCfg(flags, **kwargs)
Definition: InDetOutputConfig.py:15
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232