1 """Configure Truth output for digitization with ComponentAccumulator style
3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.Enums
import ProductionStep
6 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
10 """Return ComponentAccumulator with Truth output items"""
12 if flags.Common.ProductionStep == ProductionStep.PileUpPresampling:
13 prefix = flags.Overlay.BkgPrefix
16 f
"McEventCollection#{prefix}TruthEvent",
17 f
"TrackRecordCollection#{prefix}MuonEntryLayer",
19 if not flags.Digitization.PileUp:
21 f
"TrackRecordCollection#{prefix}CaloEntryLayer",
22 f
"TrackRecordCollection#{prefix}MuonExitLayer",
25 if 'TrackRecordCollection#CosmicPerigee' in flags.Input.TypedCollections:
26 ItemList += [
"TrackRecordCollection#CosmicPerigee"]
27 if 'TrackRecordCollection#CosmicRecord' in flags.Input.TypedCollections:
28 ItemList += [
"TrackRecordCollection#CosmicRecord"]
30 from RunDependentSimComps.PileUpUtils
import pileupInputCollections
33 ItemList += [
'HijingEventParams#Hijing_event_params']
35 dropped_jet_vars = [
'constituentLinks',
37 'ConeExclBHadronsFinal',
38 'ConeExclCHadronsFinal',
44 jet_var_str =
'.-'.join ([
''] + dropped_jet_vars)
46 dropped_jet_vars = [
'constituentLinks',
48 'ConeExclBHadronsFinal',
49 'ConeExclCHadronsFinal',
55 jet_var_str =
'.-'.join ([
''] + dropped_jet_vars)
58 if "AntiKt4TruthJets" in puCollections:
60 f
"xAOD::JetContainer#{prefix}InTimeAntiKt4TruthJets",
61 f
"xAOD::AuxContainerBase!#{prefix}InTimeAntiKt4TruthJetsAux" + jet_var_str,
62 f
"xAOD::JetContainer#{prefix}OutOfTimeAntiKt4TruthJets",
63 f
"xAOD::AuxContainerBase!#{prefix}OutOfTimeAntiKt4TruthJetsAux" + jet_var_str,
65 if "AntiKt6TruthJets" in puCollections:
67 f
"xAOD::JetContainer#{prefix}InTimeAntiKt6TruthJets",
68 f
"xAOD::AuxContainerBase!#{prefix}InTimeAntiKt6TruthJetsAux" + jet_var_str,
69 f
"xAOD::JetContainer#{prefix}OutOfTimeAntiKt6TruthJets",
70 f
"xAOD::AuxContainerBase!#{prefix}OutOfTimeAntiKt6TruthJetsAux" + jet_var_str,
72 if "TruthPileupParticles" in puCollections:
74 f
"xAOD::TruthParticleContainer#{prefix}TruthPileupParticles",
75 f
"xAOD::TruthParticleAuxContainer#{prefix}TruthPileupParticlesAux.",