230 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
231 JETM3TriggerListsHelper = TriggerListsHelper(flags)
234 acc.merge(
JETM3KernelCfg(flags, name=
"JETM3Kernel", StreamName =
'StreamDAOD_JETM3', TriggerListsHelper = JETM3TriggerListsHelper))
239 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
240 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
241 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
243 JETM3SlimmingHelper =
SlimmingHelper(
"JETM3SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
245 JETM3SlimmingHelper.SmartCollections = [
"EventInfo",
"InDetTrackParticles",
"PrimaryVertices",
246 "Electrons",
"Photons",
"Muons",
"TauJets",
247 "MET_Baseline_AntiKt4EMTopo",
"MET_Baseline_AntiKt4EMPFlow",
248 "AntiKt4EMPFlowJets",
"AntiKt4EMTopoJets",
249 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
250 "BTagging_AntiKt4EMPFlow"]
252 JETM3SlimmingHelper.AllVariables = [
"CHSGChargedParticleFlowObjects",
"CHSGNeutralParticleFlowObjects",
253 "MuonSegments",
"LVL1JetRoIs",
254 "Kt4EMTopoOriginEventShape",
"Kt4EMPFlowEventShape",
"Kt4EMPFlowPUSBEventShape",
"Kt4EMPFlowNeutEventShape"]
256 JETM3SlimmingHelper.ExtraVariables = [
"AntiKt4EMPFlowJets.passOnlyBJVT.DFCommonJets_bJvt.isJvtHS.isJvtPU",
257 "Muons.energyLossType.EnergyLoss.ParamEnergyLoss.MeasEnergyLoss.EnergyLossSigma.MeasEnergyLossSigma.ParamEnergyLossSigmaPlus.ParamEnergyLossSigmaMinus"]
260 from DerivationFrameworkJetEtMiss.CommonJETMXContent
import ClusterVariables, FlowElementVariables
261 JETM3SlimmingHelper.ExtraVariables += [
".".
join([
"CaloCalTopoClusters"] + ClusterVariables)]
262 JETM3SlimmingHelper.ExtraVariables += [
".".
join([
"GlobalChargedParticleFlowObjects"] + FlowElementVariables)]
263 JETM3SlimmingHelper.ExtraVariables += [
".".
join([
"GlobalNeutralParticleFlowObjects"] + FlowElementVariables)]
268 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
271 JETM3SlimmingHelper.AppendToDictionary.update({
'TruthParticles':
'xAOD::TruthParticleContainer',
272 'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer'})
274 JETM3SlimmingHelper.AllVariables += [
"AntiKt4TruthJets",
"InTimeAntiKt4TruthJets",
"OutOfTimeAntiKt4TruthJets",
275 "TruthParticles",
"TruthEvents",
"TruthVertices",
276 "MuonTruthParticles",
"egammaTruthParticles",]
277 JETM3SlimmingHelper.SmartCollections += [
"AntiKt4TruthWZJets",
"AntiKt4TruthJets",
"AntiKt10TruthJets",
278 "AntiKt10TruthTrimmedPtFrac5SmallR20Jets",
279 "AntiKt10TruthSoftDropBeta100Zcut10Jets"]
282 JETM3SlimmingHelper.IncludeTriggerNavigation =
False
283 JETM3SlimmingHelper.IncludeJetTriggerContent =
True
284 JETM3SlimmingHelper.IncludeMuonTriggerContent =
True
285 JETM3SlimmingHelper.IncludeEGammaTriggerContent =
True
286 JETM3SlimmingHelper.IncludeTauTriggerContent =
False
287 JETM3SlimmingHelper.IncludeEtMissTriggerContent =
False
288 JETM3SlimmingHelper.IncludeBJetTriggerContent =
False
289 JETM3SlimmingHelper.IncludeBPhysTriggerContent =
False
290 JETM3SlimmingHelper.IncludeMinBiasTriggerContent =
False
294 if flags.Trigger.EDMVersion == 2:
295 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
297 OutputContainerPrefix =
"TrigMatch_",
298 TriggerList = JETM3TriggerListsHelper.Run2TriggerNamesTau)
300 OutputContainerPrefix =
"TrigMatch_",
301 TriggerList = JETM3TriggerListsHelper.Run2TriggerNamesNoTau)
303 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
304 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
307 jetOutputList = [
"AntiKt4EMPFlowLowPtJets",
"AntiKt4EMTopoLowPtJets",
"AntiKt4UFOCSSKLowPtJets"]
308 from DerivationFrameworkJetEtMiss.JetCommonConfig
import addJetsToSlimmingTool
312 JETM3ItemList = JETM3SlimmingHelper.GetItemList()
313 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM3", ItemList=JETM3ItemList, AcceptAlgs=[
"JETM3Kernel"]))
314 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM3", AcceptAlgs=[
"JETM3Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))