195 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
196 JETM7TriggerListsHelper = TriggerListsHelper(flags)
199 acc.merge(
JETM7KernelCfg(flags, name=
"JETM7Kernel", StreamName =
'StreamDAOD_JETM7', TriggerListsHelper = JETM7TriggerListsHelper))
204 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
205 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
206 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
208 JETM7SlimmingHelper =
SlimmingHelper(
"JETM7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
210 JETM7SlimmingHelper.SmartCollections = [
"Electrons",
"Photons",
"Muons",
212 "InDetTrackParticles",
213 "AntiKt4EMPFlowJets",
218 JETM7SlimmingHelper.ExtraVariables = [
"InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights"]
223 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
226 JETM7SlimmingHelper.AppendToDictionary.update({
'TruthParticles':
'xAOD::TruthParticleContainer',
227 'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer'})
229 JETM7SlimmingHelper.SmartCollections += [
"AntiKt4TruthWZJets"]
231 JETM7SlimmingHelper.AllVariables += [
"TruthTopQuarkWithDecayParticles",
"TruthTopQuarkWithDecayVertices",
232 "AntiKt4TruthJets",
"InTimeAntiKt4TruthJets",
"OutOfTimeAntiKt4TruthJets",
"TruthParticles",
233 "TruthVertices",
"TruthEvents"]
234 JETM7SlimmingHelper.ExtraVariables += [
"InDetTrackParticles.truthMatchProbability",
"TruthVertices.barcode.z"]
238 JETM7SlimmingHelper.IncludeTriggerNavigation =
True
239 JETM7SlimmingHelper.IncludeJetTriggerContent =
False
240 JETM7SlimmingHelper.IncludeMuonTriggerContent =
False
241 JETM7SlimmingHelper.IncludeEGammaTriggerContent =
False
242 JETM7SlimmingHelper.IncludeTauTriggerContent =
False
243 JETM7SlimmingHelper.IncludeEtMissTriggerContent =
False
244 JETM7SlimmingHelper.IncludeBJetTriggerContent =
False
245 JETM7SlimmingHelper.IncludeBPhysTriggerContent =
False
246 JETM7SlimmingHelper.IncludeMinBiasTriggerContent =
False
250 if flags.Trigger.EDMVersion == 2:
251 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
253 OutputContainerPrefix =
"TrigMatch_",
254 TriggerList = JETM7TriggerListsHelper.Run2TriggerNamesTau)
256 OutputContainerPrefix =
"TrigMatch_",
257 TriggerList = JETM7TriggerListsHelper.Run2TriggerNamesNoTau)
259 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
260 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
263 jetOutputList = [
"AntiKt4EMPFlowByVertexJets"]
264 from DerivationFrameworkJetEtMiss.JetCommonConfig
import addJetsToSlimmingTool
268 JETM7ItemList = JETM7SlimmingHelper.GetItemList()
269 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM7", ItemList=JETM7ItemList, AcceptAlgs=[
"JETM7Kernel"]))
270 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM7", AcceptAlgs=[
"JETM7Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))