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