114 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
115 JETM5TriggerListsHelper = TriggerListsHelper(flags)
118 acc.merge(
JETM5KernelCfg(flags, name=
"JETM5Kernel", StreamName =
'StreamDAOD_JETM5', TriggerListsHelper = JETM5TriggerListsHelper))
123 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
124 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
125 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
127 JETM5SlimmingHelper =
SlimmingHelper(
"JETM5SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
129 JETM5SlimmingHelper.SmartCollections = [
"EventInfo",
"InDetTrackParticles",
"PrimaryVertices",
130 "Electrons",
"Photons",
"Muons",
"TauJets",
131 "MET_Baseline_AntiKt4EMTopo",
"MET_Baseline_AntiKt4EMPFlow",
132 "AntiKt4EMTopoJets",
"AntiKt4EMPFlowJets",
133 "BTagging_AntiKt4EMPFlow"]
135 JETM5SlimmingHelper.AllVariables = [
"CaloCalTopoClusters",
137 "Kt4EMTopoOriginEventShape",
"Kt4EMPFlowEventShape",
138 "GlobalNeutralParticleFlowObjects",
"GlobalChargedParticleFlowObjects",
139 "CHSGChargedParticleFlowObjects",
"CHSGNeutralParticleFlowObjects",
143 JETM5SlimmingHelper.ExtraVariables += [
"AntiKt4EMPFlowJets.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1"]
146 JETM5SlimmingHelper.AppendToDictionary.update({
'TruthParticles':
'xAOD::TruthParticleContainer',
147 'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer',
148 'TruthVertices':
'xAOD::TruthVertexContainer',
149 'TruthVerticesAux':
'xAOD::TruthVertexAuxContainer'})
151 JETM5SlimmingHelper.AllVariables += [
"MuonTruthParticles",
"egammaTruthParticles",
152 "TruthParticles",
"TruthEvents",
"TruthVertices"]
155 JETM5SlimmingHelper.IncludeTriggerNavigation =
False
156 JETM5SlimmingHelper.IncludeJetTriggerContent =
False
157 JETM5SlimmingHelper.IncludeMuonTriggerContent =
False
158 JETM5SlimmingHelper.IncludeEGammaTriggerContent =
False
159 JETM5SlimmingHelper.IncludeTauTriggerContent =
False
160 JETM5SlimmingHelper.IncludeEtMissTriggerContent =
False
161 JETM5SlimmingHelper.IncludeBJetTriggerContent =
False
162 JETM5SlimmingHelper.IncludeBPhysTriggerContent =
False
163 JETM5SlimmingHelper.IncludeMinBiasTriggerContent =
False
166 JETM5ItemList = JETM5SlimmingHelper.GetItemList()
167 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM5", ItemList=JETM5ItemList, AcceptAlgs=[
"JETM5Kernel"]))
168 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM5", AcceptAlgs=[
"JETM5Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))