57 def PHYSCoreCfg(flags, name_tag='PHYS', StreamName='StreamDAOD_PHYS', TriggerListsHelper=None):
59 if TriggerListsHelper
is None:
60 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
61 TriggerListsHelper = TriggerListsHelper(flags)
66 from DerivationFrameworkHiggs.HiggsPhysContent
import HiggsAugmentationAlgsCfg
70 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import JetCollectionsBTaggingCfg
75 from IsolationSelection.IsolationSelectionConfig
import IsoCloseByAlgsCfg
76 acc.merge(
IsoCloseByAlgsCfg(flags, suff =
"_"+name_tag, isPhysLite =
False, stream_name = StreamName))
81 from DerivationFrameworkMCTruth.HFClassificationCommonConfig
import HFClassificationCommonCfg
87 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
88 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
89 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
91 PHYSSlimmingHelper =
SlimmingHelper(name_tag+
"SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
92 PHYSSlimmingHelper.SmartCollections = [
"EventInfo",
97 "InDetTrackParticles",
100 "BTagging_AntiKt4EMPFlow",
101 "AntiKt4EMPFlowJets_FTAG",
102 "MET_Baseline_AntiKt4EMTopo",
103 "MET_Baseline_AntiKt4EMPFlow",
108 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
109 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
110 "AntiKtVR30Rmax4Rmin02PV0TrackJets",
112 if flags.Tau.TauEleRM_isAvailable:
113 PHYSSlimmingHelper.SmartCollections.append(
"TauJets_EleRM")
115 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
117 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
118 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
119 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
120 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
121 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
122 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
124 PHYSSlimmingHelper.StaticContent = StaticContent
127 PHYSSlimmingHelper.ExtraVariables += [
"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.IsoFixedCone5PtPUsub",
128 "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.GhostPartons.isJvtHS.isJvtPU.IsoFixedCone5PtPUsub",
129 "TruthPrimaryVertices.t.x.y.z",
130 "InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers",
131 "EventInfo.GenFiltHT.GenFiltMET.GenFiltHTinclNu.GenFiltPTZ.GenFiltFatJ.HF_Classification.HF_SimpleClassification",
132 "TauJets.dRmax.etOverPtLeadTrk",
133 "TauJets_MuonRM.dRmax.etOverPtLeadTrk",
134 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
135 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
136 if flags.Tau.TauEleRM_isAvailable:
137 PHYSSlimmingHelper.ExtraVariables += [
"TauJets_EleRM.dRmax.etOverPtLeadTrk"]
141 for tagger
in [
"GN2Xv01",
"GN2Xv02"]:
142 for score
in [
"phbb",
"phcc",
"ptop",
"pqcd"]:
143 extraList.append(f
"{tagger}_{score}")
144 PHYSSlimmingHelper.ExtraVariables += [
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets." +
".".
join(extraList)]
148 modelName =
"bJR10v00"
149 for score
in [
"mass",
"pt"]:
150 extraListReg.append(f
"{modelName}_{score}")
151 PHYSSlimmingHelper.ExtraVariables += [
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets." +
".".
join(extraListReg)]
156 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
158 PHYSSlimmingHelper.AllVariables += [
'TruthLHEParticles',
'TruthHFWithDecayParticles',
'TruthHFWithDecayVertices',
'TruthCharm',
'TruthPileupParticles',
'InTimeAntiKt4TruthJets',
'OutOfTimeAntiKt4TruthJets']
159 PHYSSlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
162 "AntiKt4TruthDressedWZJets.IsoFixedCone5Pt"]
164 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTauAndDownstreamParticlesCfg
166 PHYSSlimmingHelper.AllVariables += [
'TruthTausWithDecayParticles',
'TruthTausWithDecayVertices']
169 from DerivationFrameworkHiggs.HiggsPhysContent
import setupHiggsSlimmingVariables
173 PHYSSlimmingHelper.IncludeTriggerNavigation =
False
174 PHYSSlimmingHelper.IncludeJetTriggerContent =
False
175 PHYSSlimmingHelper.IncludeMuonTriggerContent =
False
176 PHYSSlimmingHelper.IncludeEGammaTriggerContent =
False
177 PHYSSlimmingHelper.IncludeTauTriggerContent =
False
178 PHYSSlimmingHelper.IncludeEtMissTriggerContent =
False
179 PHYSSlimmingHelper.IncludeBJetTriggerContent =
False
180 PHYSSlimmingHelper.IncludeBPhysTriggerContent =
False
181 PHYSSlimmingHelper.IncludeMinBiasTriggerContent =
False
183 PHYSSlimmingHelper.IncludeBJetTriggerByYearContent =
True
187 if flags.Trigger.EDMVersion == 2:
188 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
190 OutputContainerPrefix =
"TrigMatch_",
191 TriggerList = TriggerListsHelper.Run2TriggerNamesTau)
193 OutputContainerPrefix =
"TrigMatch_",
194 TriggerList = TriggerListsHelper.Run2TriggerNamesNoTau)
196 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
197 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
201 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import getDataYear
204 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddjFexRoIsToSlimmingHelper
208 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddLegacyL1JetRoIsToSlimmingHelper
212 PHYSItemList = PHYSSlimmingHelper.GetItemList()
213 acc.merge(
OutputStreamCfg(flags,
"DAOD_"+name_tag, ItemList=PHYSItemList, AcceptAlgs=[name_tag+
"Kernel"]))
214 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_"+name_tag, AcceptAlgs=[name_tag+
"Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))