109 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
110 STDM7TriggerListsHelper = TriggerListsHelper(flags)
113 acc.merge(
STDM7KernelCfg(flags, name=
"STDM7Kernel", StreamName =
'StreamDAOD_STDM7', TriggerListsHelper = STDM7TriggerListsHelper))
118 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
119 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
120 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
122 STDM7SlimmingHelper =
SlimmingHelper(
"STDM7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
123 STDM7SlimmingHelper.SmartCollections = [
"EventInfo",
128 "InDetTrackParticles",
130 "AntiKt4EMPFlowJets",
131 "BTagging_AntiKt4EMPFlow",
132 "BTagging_AntiKtVR30Rmax4Rmin02Track",
133 "MET_Baseline_AntiKt4EMTopo",
134 "MET_Baseline_AntiKt4EMPFlow",
143 STDM7SlimmingHelper.AllVariables = [
"AFPSiHitContainer",
144 "AFPToFHitContainer",
145 "AFPSiHitsClusterContainer",
147 "AFPToFTrackContainer",
148 "AFPProtonContainer",
152 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
154 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
155 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
156 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
157 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
158 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
159 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
161 STDM7SlimmingHelper.StaticContent = StaticContent
166 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
168 STDM7SlimmingHelper.AllVariables += [
'TruthHFWithDecayParticles',
'TruthHFWithDecayVertices',
'TruthCharm',
'TruthPileupParticles',
'InTimeAntiKt4TruthJets',
'OutOfTimeAntiKt4TruthJets']
169 STDM7SlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
172 "AntiKt4EMTopoJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt",
173 "AntiKt4EMPFlowJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt",
174 "TruthPrimaryVertices.t.x.y.z",
175 "InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers",
176 "EventInfo.hardScatterVertexLink.timeStampNSOffset",
177 "TauJets.dRmax.etOverPtLeadTrk",
179 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
180 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
183 STDM7SlimmingHelper.IncludeTriggerNavigation =
False
184 STDM7SlimmingHelper.IncludeJetTriggerContent =
False
185 STDM7SlimmingHelper.IncludeMuonTriggerContent =
False
186 STDM7SlimmingHelper.IncludeEGammaTriggerContent =
False
187 STDM7SlimmingHelper.IncludeTauTriggerContent =
False
188 STDM7SlimmingHelper.IncludeEtMissTriggerContent =
False
189 STDM7SlimmingHelper.IncludeBJetTriggerContent =
False
190 STDM7SlimmingHelper.IncludeBPhysTriggerContent =
False
191 STDM7SlimmingHelper.IncludeMinBiasTriggerContent =
False
195 if flags.Trigger.EDMVersion == 2:
196 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
198 OutputContainerPrefix =
"TrigMatch_",
199 TriggerList = STDM7TriggerListsHelper.Run2TriggerNamesTau)
201 OutputContainerPrefix =
"TrigMatch_",
202 TriggerList = STDM7TriggerListsHelper.Run2TriggerNamesNoTau)
204 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
205 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
209 STDM7ItemList = STDM7SlimmingHelper.GetItemList()
210 acc.merge(
OutputStreamCfg(flags,
"DAOD_STDM7", ItemList=STDM7ItemList, AcceptAlgs=[
"STDM7Kernel"]))
211 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_STDM7", AcceptAlgs=[
"STDM7Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))