157 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
158 JETM4TriggerListsHelper = TriggerListsHelper(flags)
161 acc.merge(
JETM4KernelCfg(flags, name=
"JETM4Kernel", StreamName =
'StreamDAOD_JETM4', TriggerListsHelper = JETM4TriggerListsHelper))
166 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
167 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
168 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
170 JETM4SlimmingHelper =
SlimmingHelper(
"JETM4SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
172 JETM4SlimmingHelper.SmartCollections = [
"EventInfo",
"InDetTrackParticles",
"PrimaryVertices",
173 "Electrons",
"Photons",
"Muons",
"TauJets",
174 "MET_Baseline_AntiKt4EMTopo",
"MET_Baseline_AntiKt4EMPFlow",
175 "AntiKt4EMPFlowJets",
"AntiKt4EMTopoJets",
"AntiKt4UFOCSSKLowPtJets",
176 "AntiKt10UFOCSSKJets",
177 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
178 "AntiKtVR30Rmax4Rmin02PV0TrackJets",
179 "BTagging_AntiKt4EMPFlow",
180 "BTagging_AntiKtVR30Rmax4Rmin02Track"]
182 JETM4SlimmingHelper.AllVariables = [
"CHSGChargedParticleFlowObjects",
"CHSGNeutralParticleFlowObjects",
184 "Kt4EMTopoOriginEventShape",
"Kt4EMPFlowEventShape",
"Kt4EMPFlowPUSBEventShape",
"Kt4EMPFlowNeutEventShape"]
186 JETM4SlimmingHelper.ExtraVariables = [
"TauJets.truthJetLink.truthParticleLink.IsTruthMatched"]
189 from DerivationFrameworkJetEtMiss.CommonJETMXContent
import ClusterVariables, FlowElementVariables
190 JETM4SlimmingHelper.ExtraVariables += [
".".
join([
"CaloCalTopoClusters"] + ClusterVariables)]
191 JETM4SlimmingHelper.ExtraVariables += [
".".
join([
"GlobalChargedParticleFlowObjects"] + FlowElementVariables)]
192 JETM4SlimmingHelper.ExtraVariables += [
".".
join([
"GlobalNeutralParticleFlowObjects"] + FlowElementVariables)]
197 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
200 JETM4SlimmingHelper.AppendToDictionary.update({
'TruthParticles':
'xAOD::TruthParticleContainer',
201 'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer'})
203 JETM4SlimmingHelper.AllVariables += [
"TruthParticles",
"TruthEvents",
"TruthVertices",
204 "MuonTruthParticles",
"egammaTruthParticles",]
205 JETM4SlimmingHelper.SmartCollections += [
"AntiKt4TruthJets",
"AntiKt10TruthJets",
206 "AntiKt10TruthSoftDropBeta100Zcut10Jets"]
209 JETM4SlimmingHelper.IncludeTriggerNavigation =
False
210 JETM4SlimmingHelper.IncludeJetTriggerContent =
False
211 JETM4SlimmingHelper.IncludeMuonTriggerContent =
False
212 JETM4SlimmingHelper.IncludeEGammaTriggerContent =
True
213 JETM4SlimmingHelper.IncludeTauTriggerContent =
False
214 JETM4SlimmingHelper.IncludeEtMissTriggerContent =
False
215 JETM4SlimmingHelper.IncludeBJetTriggerContent =
False
216 JETM4SlimmingHelper.IncludeBPhysTriggerContent =
False
217 JETM4SlimmingHelper.IncludeMinBiasTriggerContent =
False
221 if flags.Trigger.EDMVersion == 2:
222 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
224 OutputContainerPrefix =
"TrigMatch_",
225 TriggerList = JETM4TriggerListsHelper.Run2TriggerNamesTau)
227 OutputContainerPrefix =
"TrigMatch_",
228 TriggerList = JETM4TriggerListsHelper.Run2TriggerNamesNoTau)
230 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
231 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
235 JETM4ItemList = JETM4SlimmingHelper.GetItemList()
236 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM4", ItemList=JETM4ItemList, AcceptAlgs=[
"JETM4Kernel"]))
237 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM4", AcceptAlgs=[
"JETM4Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))