110 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
111 STDM7TriggerListsHelper = TriggerListsHelper(flags)
114 acc.merge(
STDM7KernelCfg(flags, name=
"STDM7Kernel", StreamName =
'StreamDAOD_STDM7', TriggerListsHelper = STDM7TriggerListsHelper))
119 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
120 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
121 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
123 STDM7SlimmingHelper =
SlimmingHelper(
"STDM7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
124 STDM7SlimmingHelper.SmartCollections = [
"EventInfo",
129 "InDetTrackParticles",
131 "AntiKt4EMPFlowJets",
132 "BTagging_AntiKt4EMPFlow",
133 "BTagging_AntiKtVR30Rmax4Rmin02Track",
134 "MET_Baseline_AntiKt4EMTopo",
135 "MET_Baseline_AntiKt4EMPFlow",
144 STDM7SlimmingHelper.AllVariables = [
"AFPSiHitContainer",
145 "AFPToFHitContainer",
146 "AFPSiHitsClusterContainer",
148 "AFPToFTrackContainer",
149 "AFPProtonContainer",
153 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
155 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
156 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
157 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
158 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
159 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
160 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
162 STDM7SlimmingHelper.StaticContent = StaticContent
167 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
169 STDM7SlimmingHelper.AllVariables += [
'TruthHFWithDecayParticles',
'TruthHFWithDecayVertices',
'TruthCharm',
'TruthPileupParticles',
'InTimeAntiKt4TruthJets',
'OutOfTimeAntiKt4TruthJets']
170 STDM7SlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
173 "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",
174 "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",
175 "TruthPrimaryVertices.t.x.y.z",
176 "InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers",
177 "EventInfo.hardScatterVertexLink.timeStampNSOffset",
178 "TauJets.dRmax.etOverPtLeadTrk",
180 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
181 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
184 STDM7SlimmingHelper.IncludeTriggerNavigation =
False
185 STDM7SlimmingHelper.IncludeJetTriggerContent =
False
186 STDM7SlimmingHelper.IncludeMuonTriggerContent =
False
187 STDM7SlimmingHelper.IncludeEGammaTriggerContent =
False
188 STDM7SlimmingHelper.IncludeTauTriggerContent =
False
189 STDM7SlimmingHelper.IncludeEtMissTriggerContent =
False
190 STDM7SlimmingHelper.IncludeBJetTriggerContent =
False
191 STDM7SlimmingHelper.IncludeBPhysTriggerContent =
False
192 STDM7SlimmingHelper.IncludeMinBiasTriggerContent =
False
196 if flags.Trigger.EDMVersion == 2:
197 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
199 OutputContainerPrefix =
"TrigMatch_",
200 TriggerList = STDM7TriggerListsHelper.Run2TriggerNamesTau)
202 OutputContainerPrefix =
"TrigMatch_",
203 TriggerList = STDM7TriggerListsHelper.Run2TriggerNamesNoTau)
205 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
206 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
210 STDM7ItemList = STDM7SlimmingHelper.GetItemList()
211 acc.merge(
OutputStreamCfg(flags,
"DAOD_STDM7", ItemList=STDM7ItemList, AcceptAlgs=[
"STDM7Kernel"]))
212 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_STDM7", AcceptAlgs=[
"STDM7Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))