9 """Main config for TRUTH3"""
15 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddStandardTruthContentsCfg
21 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
22 TRUTH3SlimmingHelper =
SlimmingHelper(
"TRUTH3SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
24 TRUTH3SlimmingHelper.AppendToDictionary = {
'EventInfo':
'xAOD::EventInfo',
'EventInfoAux':
'xAOD::EventAuxInfo',
25 'TruthEvents':
'xAOD::TruthEventContainer',
'TruthEventsAux':
'xAOD::TruthEventAuxContainer',
26 'MET_Truth':
'xAOD::MissingETContainer',
'MET_TruthAux':
'xAOD::MissingETAuxContainer',
27 'TruthLHEParticles':
'xAOD::TruthParticleContainer',
'TruthLHEParticlesAux':
'xAOD::TruthParticleAuxContainer',
28 'TruthElectrons':
'xAOD::TruthParticleContainer',
'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
29 'TruthMuons':
'xAOD::TruthParticleContainer',
'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
30 'TruthPhotons':
'xAOD::TruthParticleContainer',
'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
31 'TruthTaus':
'xAOD::TruthParticleContainer',
'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
32 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
33 'TruthBSM':
'xAOD::TruthParticleContainer',
'TruthBSMAux':
'xAOD::TruthParticleAuxContainer',
34 'TruthBoson':
'xAOD::TruthParticleContainer',
'TruthBosonAux':
'xAOD::TruthParticleAuxContainer',
35 'TruthBottom':
'xAOD::TruthParticleContainer',
'TruthBottomAux':
'xAOD::TruthParticleAuxContainer',
36 'TruthTop':
'xAOD::TruthParticleContainer',
'TruthTopAux':
'xAOD::TruthParticleAuxContainer',
37 'TruthForwardProtons':
'xAOD::TruthParticleContainer',
'TruthForwardProtonsAux':
'xAOD::TruthParticleAuxContainer',
38 'BornLeptons':
'xAOD::TruthParticleContainer',
'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
39 'TruthBosonsWithDecayParticles':
'xAOD::TruthParticleContainer',
'TruthBosonsWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
40 'TruthBosonsWithDecayVertices':
'xAOD::TruthVertexContainer',
'TruthBosonsWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
41 'TruthBSMWithDecayParticles':
'xAOD::TruthParticleContainer',
'TruthBSMWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
42 'TruthBSMWithDecayVertices':
'xAOD::TruthVertexContainer',
'TruthBSMWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
43 'AntiKt4TruthDressedWZJets':
'xAOD::JetContainer',
'AntiKt4TruthDressedWZJetsAux':
'xAOD::JetAuxContainer',
44 'AntiKt10TruthSoftDropBeta100Zcut10Jets':
'xAOD::JetContainer',
'AntiKt10TruthSoftDropBeta100Zcut10JetsAux':
'xAOD::JetAuxContainer'
48 TRUTH3SlimmingHelper.AllVariables = [
'EventInfo',
52 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTauAndDownstreamParticlesCfg
54 TRUTH3SlimmingHelper.AllVariables += [
'TruthTausWithDecayParticles',
'TruthTausWithDecayVertices']
57 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
61 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
62 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
63 TRUTH3ItemList = TRUTH3SlimmingHelper.GetItemList()
64 acc.merge(
OutputStreamCfg(flags,
"DAOD_TRUTH3", ItemList=TRUTH3ItemList))
65 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TRUTH3", createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))