58 def PHYSCoreCfg(flags, name_tag='PHYS', StreamName='StreamDAOD_PHYS', TriggerListsHelper=None):
60 if TriggerListsHelper
is None:
61 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
62 TriggerListsHelper = TriggerListsHelper(flags)
67 from DerivationFrameworkHiggs.HiggsPhysContent
import HiggsAugmentationAlgsCfg
71 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import JetCollectionsBTaggingCfg
76 from IsolationSelection.IsolationSelectionConfig
import IsoCloseByAlgsCfg
77 acc.merge(
IsoCloseByAlgsCfg(flags, suff =
"_"+name_tag, isPhysLite =
False, stream_name = StreamName))
82 from DerivationFrameworkMCTruth.HFClassificationCommonConfig
import HFClassificationCommonCfg
88 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
89 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
90 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
92 PHYSSlimmingHelper =
SlimmingHelper(name_tag+
"SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
93 PHYSSlimmingHelper.SmartCollections = [
"EventInfo",
98 "InDetTrackParticles",
100 "AntiKt4EMPFlowJets",
101 "BTagging_AntiKt4EMPFlow",
102 "AntiKt4EMPFlowJets_FTAG",
103 "MET_Baseline_AntiKt4EMTopo",
104 "MET_Baseline_AntiKt4EMPFlow",
109 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
110 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
111 "AntiKtVR30Rmax4Rmin02PV0TrackJets",
113 if flags.Tau.TauEleRM_isAvailable:
114 PHYSSlimmingHelper.SmartCollections.append(
"TauJets_EleRM")
116 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
118 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
119 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
120 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
121 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
122 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
123 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
125 PHYSSlimmingHelper.StaticContent = StaticContent
128 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",
129 "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",
130 "TruthPrimaryVertices.t.x.y.z",
131 "InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers",
132 "EventInfo.GenFiltHT.GenFiltMET.GenFiltHTinclNu.GenFiltPTZ.GenFiltFatJ.HF_Classification.HF_SimpleClassification",
133 "TauJets.dRmax.etOverPtLeadTrk",
134 "TauJets_MuonRM.dRmax.etOverPtLeadTrk",
135 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
136 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
137 if flags.Tau.TauEleRM_isAvailable:
138 PHYSSlimmingHelper.ExtraVariables += [
"TauJets_EleRM.dRmax.etOverPtLeadTrk"]
142 for tagger
in [
"GN2Xv01",
"GN2Xv02"]:
143 for score
in [
"phbb",
"phcc",
"ptop",
"pqcd"]:
144 extraList.append(f
"{tagger}_{score}")
145 PHYSSlimmingHelper.ExtraVariables += [
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets." +
".".
join(extraList)]
149 modelName =
"bJR10v00"
150 for score
in [
"mass",
"pt"]:
151 extraListReg.append(f
"{modelName}_{score}")
152 PHYSSlimmingHelper.ExtraVariables += [
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets." +
".".
join(extraListReg)]
157 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
159 PHYSSlimmingHelper.AllVariables += [
'TruthLHEParticles',
'TruthHFWithDecayParticles',
'TruthHFWithDecayVertices',
'TruthCharm',
'TruthPileupParticles',
'InTimeAntiKt4TruthJets',
'OutOfTimeAntiKt4TruthJets']
160 PHYSSlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
163 "AntiKt4TruthDressedWZJets.IsoFixedCone5Pt"]
165 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTauAndDownstreamParticlesCfg
167 PHYSSlimmingHelper.AllVariables += [
'TruthTausWithDecayParticles',
'TruthTausWithDecayVertices']
170 from DerivationFrameworkHiggs.HiggsPhysContent
import setupHiggsSlimmingVariables
174 PHYSSlimmingHelper.IncludeTriggerNavigation =
False
175 PHYSSlimmingHelper.IncludeJetTriggerContent =
False
176 PHYSSlimmingHelper.IncludeMuonTriggerContent =
False
177 PHYSSlimmingHelper.IncludeEGammaTriggerContent =
False
178 PHYSSlimmingHelper.IncludeTauTriggerContent =
False
179 PHYSSlimmingHelper.IncludeEtMissTriggerContent =
False
180 PHYSSlimmingHelper.IncludeBJetTriggerContent =
False
181 PHYSSlimmingHelper.IncludeBPhysTriggerContent =
False
182 PHYSSlimmingHelper.IncludeMinBiasTriggerContent =
False
184 PHYSSlimmingHelper.IncludeBJetTriggerByYearContent =
True
188 if flags.Trigger.EDMVersion == 2:
189 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
191 OutputContainerPrefix =
"TrigMatch_",
192 TriggerList = TriggerListsHelper.Run2TriggerNamesTau)
194 OutputContainerPrefix =
"TrigMatch_",
195 TriggerList = TriggerListsHelper.Run2TriggerNamesNoTau)
197 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
198 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
202 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import getDataYear
205 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddjFexRoIsToSlimmingHelper
209 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddLegacyL1JetRoIsToSlimmingHelper
213 PHYSItemList = PHYSSlimmingHelper.GetItemList()
214 acc.merge(
OutputStreamCfg(flags,
"DAOD_"+name_tag, ItemList=PHYSItemList, AcceptAlgs=[name_tag+
"Kernel"]))
215 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_"+name_tag, AcceptAlgs=[name_tag+
"Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))