11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory
import CompFactory
13 from AthenaConfiguration.Enums
import MetadataCategory
14 from GoodRunsLists.GoodRunsListsDictionary
import getGoodRunsLists
19 """do the CP algorithm configuration for PHYSLITE"""
21 from AthenaCommon.Logging
import logging
22 logPLCPAlgCfg = logging.getLogger(
'PLCPAlgCfg')
23 logPLCPAlgCfg.info(
'****************** STARTING PHYSLITE CPAlgorithmsCfg *****************')
25 forceEGammaFullSimConfig =
False
26 if not flags.Sim.ISF.Simulator.isFullSim():
27 logPLCPAlgCfg.warning(
"Forcing full simulation configuration for EGamma algorithms. This is not recommended for fast simulation but no recommendations available yet.")
28 forceEGammaFullSimConfig =
True
30 from AnalysisAlgorithmsConfig.ConfigFactory
import ConfigFactory
31 from AnalysisAlgorithmsConfig.ConfigSequence
import ConfigSequence
32 configSeq = ConfigSequence ()
35 factory = ConfigFactory()
38 subConfig = factory.makeConfig (
'CommonServices')
39 subConfig.setOptionValue (
'.runSystematics',
False)
40 configSeq += subConfig
45 configSeq += factory.makeConfig (
'PileupReweighting')
48 configSeq += factory.makeConfig (
'EventCleaning')
49 configSeq.setOptionValue (
'.noFilter',
True)
54 logPLCPAlgCfg.info(
'Do Muons')
56 subConfig = factory.makeConfig (
'Muons', containerName=
'AnalysisMuons')
57 configSeq += subConfig
58 subConfig = factory.makeConfig (
'Muons.WorkingPoint', containerName=
'AnalysisMuons',
59 selectionName=
'loose')
60 subConfig.setOptionValue (
'.trackSelection',
False)
61 subConfig.setOptionValue (
'.quality',
'Loose')
62 subConfig.setOptionValue (
'.isolation',
'NonIso')
63 configSeq += subConfig
64 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisMuons')
65 subConfig.setOptionValue (
'.selectionName',
'loose')
66 subConfig.setOptionValue (
'.deepCopy',
True)
67 subConfig.setOptionValue (
'.sortPt',
True)
68 subConfig.setOptionValue (
'.noUniformSelection',
True)
69 configSeq += subConfig
73 logPLCPAlgCfg.info(
'Do Electrons')
75 subConfig = factory.makeConfig (
'Electrons', containerName=
'AnalysisElectrons')
76 subConfig.setOptionValue (
'.forceFullSimConfig', forceEGammaFullSimConfig)
77 subConfig.setOptionValue (
'.isolationCorrection',
True)
78 subConfig.setOptionValue (
'.minPt', 0.)
79 configSeq += subConfig
80 subConfig = factory.makeConfig (
'Electrons.WorkingPoint', containerName=
'AnalysisElectrons',
81 selectionName=
'loose')
82 subConfig.setOptionValue (
'.trackSelection',
False)
83 subConfig.setOptionValue (
'.identificationWP',
'LooseLHElectron')
84 subConfig.setOptionValue (
'.isolationWP',
'NonIso')
85 subConfig.setOptionValue (
'.doFSRSelection',
True)
86 subConfig.setOptionValue (
'.noEffSF',
True)
87 configSeq += subConfig
88 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisElectrons')
89 subConfig.setOptionValue (
'.selectionName',
'loose')
90 subConfig.setOptionValue (
'.deepCopy',
True)
91 subConfig.setOptionValue (
'.sortPt',
True)
92 subConfig.setOptionValue (
'.noUniformSelection',
True)
93 configSeq += subConfig
96 subConfig = factory.makeConfig (
'Electrons', containerName=
'AnalysisSiHitElectrons')
97 subConfig.setOptionValue (
'.forceFullSimConfig', forceEGammaFullSimConfig)
98 subConfig.setOptionValue (
'.isolationCorrection',
True)
99 subConfig.setOptionValue (
'.minPt', 0.)
100 subConfig.setOptionValue (
'.postfix',
'SiHit')
101 configSeq += subConfig
102 subConfig = factory.makeConfig (
'Electrons.WorkingPoint', containerName=
'AnalysisSiHitElectrons', selectionName=
'SiHits')
103 subConfig.setOptionValue (
'.trackSelection',
False)
104 subConfig.setOptionValue (
'.identificationWP',
'SiHitElectron')
105 subConfig.setOptionValue (
'.isolationWP',
'NonIso')
106 subConfig.setOptionValue (
'.doFSRSelection',
True)
107 subConfig.setOptionValue (
'.noEffSF',
True)
108 subConfig.setOptionValue (
'.postfix',
'SiHit')
109 configSeq += subConfig
110 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisSiHitElectrons')
111 subConfig.setOptionValue (
'.selectionName',
'SiHits')
112 subConfig.setOptionValue (
'.deepCopy',
True)
113 subConfig.setOptionValue (
'.sortPt',
True)
114 subConfig.setOptionValue (
'.noUniformSelection',
True)
115 configSeq += subConfig
119 logPLCPAlgCfg.info(
'Do Photons')
121 subConfig = factory.makeConfig (
'Photons', containerName=
'AnalysisPhotons')
122 subConfig.setOptionValue (
'.forceFullSimConfig', forceEGammaFullSimConfig)
123 subConfig.setOptionValue (
'.recomputeIsEM',
False)
124 subConfig.setOptionValue (
'.minPt', 0.)
125 configSeq += subConfig
126 subConfig = factory.makeConfig (
'Photons.WorkingPoint', containerName=
'AnalysisPhotons',
127 selectionName=
'loose')
128 subConfig.setOptionValue (
'.qualityWP',
'Loose')
129 subConfig.setOptionValue (
'.isolationWP',
'NonIso')
130 subConfig.setOptionValue (
'.doFSRSelection',
True)
131 subConfig.setOptionValue (
'.recomputeIsEM',
False)
132 subConfig.setOptionValue (
'.noEffSF',
True)
133 configSeq += subConfig
134 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisPhotons')
135 subConfig.setOptionValue (
'.selectionName',
'loose')
136 subConfig.setOptionValue (
'.deepCopy',
True)
137 subConfig.setOptionValue (
'.sortPt',
True)
138 subConfig.setOptionValue (
'.noUniformSelection',
True)
139 configSeq += subConfig
145 subConfig = factory.makeConfig (
'TauJets', containerName=
'AnalysisTauJets')
146 configSeq += subConfig
147 subConfig = factory.makeConfig (
'TauJets.WorkingPoint', containerName=
'AnalysisTauJets',
148 selectionName=
'baseline')
149 subConfig.setOptionValue (
'.quality',
'Baseline')
150 configSeq += subConfig
151 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisTauJets')
152 subConfig.setOptionValue (
'.selectionName',
'baseline')
153 subConfig.setOptionValue (
'.deepCopy',
True)
154 subConfig.setOptionValue (
'.sortPt',
True)
155 subConfig.setOptionValue (
'.noUniformSelection',
True)
156 configSeq += subConfig
159 jetContainer =
'AntiKt4EMPFlowJets'
160 subConfig = factory.makeConfig (
'Jets', containerName=
'AnalysisJets',
161 jetCollection=jetContainer)
162 subConfig.setOptionValue (
'.runFJvtUpdate',
False)
163 subConfig.setOptionValue (
'.runFJvtSelection',
False)
164 subConfig.setOptionValue (
'.runJvtSelection',
False)
165 configSeq += subConfig
166 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisJets')
167 subConfig.setOptionValue (
'.deepCopy',
True)
168 subConfig.setOptionValue (
'.sortPt',
True)
169 subConfig.setOptionValue (
'.noUniformSelection',
True)
170 configSeq += subConfig
172 largeRjetContainer=
'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets'
173 subConfig = factory.makeConfig (
'Jets', containerName=
'AnalysisLargeRJets',
174 jetCollection=largeRjetContainer)
175 subConfig.setOptionValue (
'.runGhostMuonAssociation',
False)
176 configSeq += subConfig
177 subConfig = factory.makeConfig (
'Thinning', containerName=
'AnalysisLargeRJets')
178 subConfig.setOptionValue (
'.deepCopy',
True)
179 subConfig.setOptionValue (
'.sortPt',
True)
180 subConfig.setOptionValue (
'.noUniformSelection',
True)
181 configSeq += subConfig
183 from AnalysisAlgorithmsConfig.ConfigAccumulator
import ConfigAccumulator
184 configAccumulator = ConfigAccumulator (dataType=
None, algSeq=
None,
185 autoconfigFromFlags=flags, noSysSuffix=
True, noSystematics=
True)
186 configSeq.fullConfigure (configAccumulator)
187 return configAccumulator.CA
193 """Configure the derivation framework driving algorithm (kernel) for PHYSLITE"""
198 if 'StreamAOD' in flags.Input.ProcessingTags:
200 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
207 thinningToolsArgs = {
208 'ElectronCaloClusterThinningToolName' :
"PHYSLITEElectronCaloClusterThinningTool",
209 'PhotonCaloClusterThinningToolName' :
"PHYSLITEPhotonCaloClusterThinningTool",
210 'ElectronGSFTPThinningToolName' :
"PHYSLITEElectronGSFTPThinningTool",
211 'PhotonGSFTPThinningToolName' :
"PHYSLITEPhotonGSFTPThinningTool"
214 if 'StreamAOD' in flags.Input.ProcessingTags:
215 thinningToolsArgs.update({
216 'TrackParticleThinningToolName' :
"PHYSLITETrackParticleThinningTool",
217 'MuonTPThinningToolName' :
"PHYSLITEMuonTPThinningTool",
218 'TauJetThinningToolName' :
"PHYSLITETauJetThinningTool",
219 'TauJets_MuonRMThinningToolName' :
"PHYSLITETauJets_MuonRMThinningTool",
220 'DiTauTPThinningToolName' :
"PHYSLITEDiTauTPThinningTool",
221 'DiTauLowPtThinningToolName' :
"PHYSLITEDiTauLowPtThinningTool",
222 'DiTauLowPtTPThinningToolName' :
"PHYSLITEDiTauLowPtTPThinningTool",
225 from DerivationFrameworkPhys.PhysCommonThinningConfig
import PhysCommonThinningCfg
229 for key
in thinningToolsArgs:
230 thinningTools.append(acc.getPublicTool(thinningToolsArgs[key]))
237 if 'StreamAOD' in flags.Input.ProcessingTags:
240 from DerivationFrameworkHiggs.HiggsPhysContent
import HiggsAugmentationAlgsCfg
244 from IsolationSelection.IsolationSelectionConfig
import IsoCloseByAlgsCfg
261 if 'StreamAOD' in flags.Input.ProcessingTags:
262 from METReconstruction.METAssocCfg
import AssocConfig, METAssocConfig
263 from METReconstruction.METAssociatorCfg
import getAssocCA
264 associators = [AssocConfig(
'PFlowJet',
'AnalysisJets'),
265 AssocConfig(
'Muon',
'AnalysisMuons'),
266 AssocConfig(
'Ele',
'AnalysisElectrons'),
267 AssocConfig(
'Gamma',
'AnalysisPhotons'),
268 AssocConfig(
'Tau',
'AnalysisTauJets'),
269 AssocConfig(
'Soft',
'')]
270 PHYSLITE_cfg = METAssocConfig(
'AnalysisMET',
275 components_PHYSLITE_cfg =
getAssocCA(PHYSLITE_cfg,METName=
'AnalysisMET')
276 acc.merge(components_PHYSLITE_cfg)
277 elif 'StreamDAOD_PHYS' in flags.Input.ProcessingTags:
278 from DerivationFrameworkJetEtMiss.METCommonConfig
import METRemappingCfg
281 acc.merge(METRemap_cfg)
284 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
298 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
299 PHYSLITETriggerListsHelper = TriggerListsHelper(flags)
302 streamName =
'StreamDAOD_PHYSLITE' if 'StreamAOD' in flags.Input.ProcessingTags
else 'StreamD2AOD_PHYSLITE'
305 acc.merge(
PHYSLITEKernelCfg(flags, name=
"PHYSLITEKernel", StreamName = streamName, TriggerListsHelper = PHYSLITETriggerListsHelper))
310 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
311 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
312 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
314 PHYSLITESlimmingHelper =
SlimmingHelper(
"PHYSLITESlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
315 PHYSLITESlimmingHelper.ExtraVariables = []
317 PHYSLITESlimmingHelper.IncludeTriggerNavigation =
False
318 PHYSLITESlimmingHelper.IncludeJetTriggerContent =
False
319 PHYSLITESlimmingHelper.IncludeMuonTriggerContent =
False
320 PHYSLITESlimmingHelper.IncludeEGammaTriggerContent =
False
321 PHYSLITESlimmingHelper.IncludeTauTriggerContent =
False
322 PHYSLITESlimmingHelper.IncludeEtMissTriggerContent =
False
323 PHYSLITESlimmingHelper.IncludeBJetTriggerContent =
False
324 PHYSLITESlimmingHelper.IncludeBPhysTriggerContent =
False
325 PHYSLITESlimmingHelper.IncludeMinBiasTriggerContent =
False
329 if flags.Trigger.EDMVersion == 2:
331 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
333 name =
"PHYSLITETrigMatchNoTau",
334 OutputContainerPrefix =
"AnalysisTrigMatch_",
335 ChainNames = PHYSLITETriggerListsHelper.Run2TriggerNamesNoTau,
336 InputElectrons =
"AnalysisElectrons",
337 InputPhotons =
"AnalysisPhotons",
338 InputMuons =
"AnalysisMuons",
339 InputTaus =
"AnalysisTauJets"))
341 name =
"PHYSLITETrigMatchTau",
342 OutputContainerPrefix =
"AnalysisTrigMatch_",
343 ChainNames = PHYSLITETriggerListsHelper.Run2TriggerNamesTau,
345 InputElectrons =
"AnalysisElectrons",
346 InputPhotons =
"AnalysisPhotons",
347 InputMuons =
"AnalysisMuons",
348 InputTaus =
"AnalysisTauJets"))
350 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
352 OutputContainerPrefix =
"AnalysisTrigMatch_",
353 TriggerList = PHYSLITETriggerListsHelper.Run2TriggerNamesTau)
355 OutputContainerPrefix =
"AnalysisTrigMatch_",
356 TriggerList = PHYSLITETriggerListsHelper.Run2TriggerNamesNoTau)
359 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
361 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
365 PHYSLITESlimmingHelper.AppendToDictionary.update({
366 'TruthEvents':
'xAOD::TruthEventContainer',
'TruthEventsAux':
'xAOD::TruthEventAuxContainer',
367 'MET_Truth':
'xAOD::MissingETContainer',
'MET_TruthAux':
'xAOD::MissingETAuxContainer',
368 'TruthElectrons':
'xAOD::TruthParticleContainer',
'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
369 'TruthMuons':
'xAOD::TruthParticleContainer',
'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
370 'TruthPhotons':
'xAOD::TruthParticleContainer',
'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
371 'TruthTaus':
'xAOD::TruthParticleContainer',
'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
372 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
373 'TruthBSM':
'xAOD::TruthParticleContainer',
'TruthBSMAux':
'xAOD::TruthParticleAuxContainer',
374 'TruthBoson':
'xAOD::TruthParticleContainer',
'TruthBosonAux':
'xAOD::TruthParticleAuxContainer',
375 'TruthTop':
'xAOD::TruthParticleContainer',
'TruthTopAux':
'xAOD::TruthParticleAuxContainer',
376 'TruthForwardProtons':
'xAOD::TruthParticleContainer',
'TruthForwardProtonsAux':
'xAOD::TruthParticleAuxContainer',
377 'BornLeptons':
'xAOD::TruthParticleContainer',
'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
378 'TruthBosonsWithDecayParticles':
'xAOD::TruthParticleContainer',
'TruthBosonsWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
379 'TruthBosonsWithDecayVertices':
'xAOD::TruthVertexContainer',
'TruthBosonsWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
380 'TruthBSMWithDecayParticles':
'xAOD::TruthParticleContainer',
'TruthBSMWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
381 'TruthBSMWithDecayVertices':
'xAOD::TruthVertexContainer',
'TruthBSMWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
382 'HardScatterParticles':
'xAOD::TruthParticleContainer',
'HardScatterParticlesAux':
'xAOD::TruthParticleAuxContainer',
383 'HardScatterVertices':
'xAOD::TruthVertexContainer',
'HardScatterVerticesAux':
'xAOD::TruthVertexAuxContainer',
384 'TruthPrimaryVertices':
'xAOD::TruthVertexContainer',
'TruthPrimaryVerticesAux':
'xAOD::TruthVertexAuxContainer',
385 'AnalysisElectrons':
'xAOD::ElectronContainer',
'AnalysisElectronsAux':
'xAOD::ElectronAuxContainer',
386 'AnalysisSiHitElectrons':
'xAOD::ElectronContainer',
'AnalysisSiHitElectronsAux':
'xAOD::ElectronAuxContainer',
387 'AnalysisMuons':
'xAOD::MuonContainer',
'AnalysisMuonsAux':
'xAOD::MuonAuxContainer',
388 'AnalysisJets':
'xAOD::JetContainer',
'AnalysisJetsAux':
'xAOD::AuxContainerBase',
389 'AnalysisPhotons':
'xAOD::PhotonContainer',
'AnalysisPhotonsAux':
'xAOD::PhotonAuxContainer',
390 'AnalysisTauJets':
'xAOD::TauJetContainer',
'AnalysisTauJetsAux':
'xAOD::TauJetAuxContainer',
391 'MET_Core_AnalysisMET':
'xAOD::MissingETContainer',
'MET_Core_AnalysisMETAux':
'xAOD::MissingETAuxContainer',
392 'METAssoc_AnalysisMET':
'xAOD::MissingETAssociationMap',
'METAssoc_AnalysisMETAux':
'xAOD::MissingETAuxAssociationMap',
393 'AntiKt10TruthTrimmedPtFrac5SmallR20Jets':
'xAOD::JetContainer',
'AntiKt10TruthTrimmedPtFrac5SmallR20JetsAux':
'xAOD::JetAuxContainer',
394 'AnalysisLargeRJets':
'xAOD::JetContainer',
'AnalysisLargeRJetsAux':
'xAOD::AuxContainerBase'
397 PHYSLITESlimmingHelper.SmartCollections = [
399 'InDetTrackParticles',
403 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonVariablesCfg
406 from DerivationFrameworkHiggs.HiggsPhysContent
import setupHiggsSlimmingVariables
410 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
412 from DerivationFrameworkMCTruth.HFClassificationCommonConfig
import HFClassificationCommonCfg
416 btag_variables = [f
'GN2v01_p{x}' for x
in [
'b',
'c',
'u',
'tau']]
417 btag_variables += [f
'DL1dv01_p{x}' for x
in [
'b',
'c',
'u']]
418 PHYSLITESlimmingHelper.ExtraVariables += [
419 'AnalysisElectrons.trackParticleLinks.f1.pt.eta.phi.m.charge.author.DFCommonElectronsLHVeryLoose.DFCommonElectronsLHLoose.DFCommonElectronsLHLooseBL.DFCommonElectronsLHMedium.DFCommonElectronsLHTight.DFCommonElectronsLHVeryLooseIsEMValue.DFCommonElectronsLHLooseIsEMValue.DFCommonElectronsLHLooseBLIsEMValue.DFCommonElectronsLHMediumIsEMValue.DFCommonElectronsLHTightIsEMValue.DFCommonElectronsDNNLoose.DFCommonElectronsDNNMedium.DFCommonElectronsDNNTight.DFCommonElectronsDNNVeryLooseNoCF97.DFCommonElectronsDNNMediumNoCF.DFCommonElectronsDNNTightNoCF.DFCommonElectronsECIDS.DFCommonElectronsECIDSResult.topoetcone20.topoetcone20ptCorrection.neflowisol20.ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt500.ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt1000.ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt500.ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000.topoetcone20_CloseByCorr.ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr.ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr.caloClusterLinks.ambiguityLink.TruthLink.truthParticleLink.truthOrigin.truthType.truthPdgId.firstEgMotherTruthType.firstEgMotherTruthOrigin.firstEgMotherTruthParticleLink.firstEgMotherPdgId.ambiguityType.OQ.Eadded_Lr2.Eadded_Lr3',
420 'AnalysisSiHitElectrons.pt.eta.phi.m.charge.author.topoetcone20_CloseByCorr.DFCommonElectronsLHVeryLoose.ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr.OQ.truthOrigin.truthType.firstEgMotherTruthType.firstEgMotherTruthOrigin.z0stheta.d0Normalized.nInnerExpPix.clEta.clPhi',
421 'AnalysisPhotons.f1.pt.eta.phi.m.author.OQ.DFCommonPhotonsIsEMLoose.DFCommonPhotonsIsEMMedium.DFCommonPhotonsIsEMTight.DFCommonPhotonsIsEMTightIsEMValue.DFCommonPhotonsCleaning.DFCommonPhotonsCleaningNoTime.ptcone20.topoetcone20.topoetcone40.topoetcone20ptCorrection.topoetcone40ptCorrection.topoetcone20_CloseByCorr.topoetcone40_CloseByCorr.ptcone20_CloseByCorr.caloClusterLinks.vertexLinks.ambiguityLink.TruthLink.truthParticleLink.truthOrigin.truthType.Eadded_Lr2.Eadded_Lr3',
422 'GSFTrackParticles.chiSquared.phi.d0.theta.qOverP.definingParametersCovMatrixDiag.definingParametersCovMatrixOffDiag.z0.vz.charge.vertexLink.numberOfPixelHits.numberOfSCTHits.expectInnermostPixelLayerHit.expectNextToInnermostPixelLayerHit.numberOfInnermostPixelLayerHits.numberOfNextToInnermostPixelLayerHits.originalTrackParticle',
423 'GSFConversionVertices.trackParticleLinks.x.y.z.px.py.pz.pt1.pt2.neutralParticleLinks.minRfirstHit',
424 'egammaClusters.calE.calEta.calPhi.calM.e_sampl.eta_sampl.ETACALOFRAME.PHICALOFRAME.ETA2CALOFRAME.PHI2CALOFRAME.constituentClusterLinks',
426 'CombinedMuonTrackParticles.qOverP.d0.z0.vz.phi.theta.truthOrigin.truthType.definingParametersCovMatrixDiag.definingParametersCovMatrixOffDiag.numberOfPixelDeadSensors.numberOfPixelHits.numberOfPixelHoles.numberOfSCTDeadSensors.numberOfSCTHits.numberOfSCTHoles.numberOfTRTHits.numberOfTRTOutliers.chiSquared.numberDoF',
427 'ExtrapolatedMuonTrackParticles.d0.z0.vz.definingParametersCovMatrixDiag.definingParametersCovMatrixOffDiag.truthOrigin.truthType.qOverP.theta.phi',
428 'MuonSpectrometerTrackParticles.phi.d0.z0.vz.definingParametersCovMatrixDiag.definingParametersCovMatrixOffDiag.vertexLink.theta.qOverP.truthParticleLink',
429 'InDetForwardTrackParticles.vz.truthType.truthOrigin.numberDoF.numberOfTRTHits.numberOfSCTHoles.theta.numberOfTRTOutliers.numberOfPrecisionLayers.numberOfSCTDeadSensors.numberOfPixelHoles.numberOfSCTHits.numberOfPrecisionHoleLayers.numberOfPixelDeadSensors.phi.numberOfPixelHits.z0.d0.qOverP.chiSquared.definingParametersCovMatrixDiag.definingParametersCovMatrixOffDiag',
430 'AnalysisTauJets.pt.eta.phi.m.ptFinalCalib.etaFinalCalib.ptTauEnergyScale.etaTauEnergyScale.charge.isTauFlags.PanTau_DecayMode.NNDecayMode.RNNJetScore.RNNJetScoreSigTrans.RNNEleScore.RNNEleScoreSigTrans_v1.EleRNNLoose_v1.EleRNNMedium_v1.EleRNNTight_v1.tauTrackLinks.vertexLink.truthParticleLink.truthJetLink.IsTruthMatched.truthOrigin.truthType',
431 'AnalysisJets.pt.eta.phi.m.JetConstitScaleMomentum_pt.JetConstitScaleMomentum_eta.JetConstitScaleMomentum_phi.JetConstitScaleMomentum_m.NumTrkPt500.SumPtTrkPt500.DetectorEta.JVFCorr.NNJvtPass.NumTrkPt1000.TrackWidthPt1000.GhostMuonSegmentCount.PartonTruthLabelID.HadronConeExclExtendedTruthLabelID.HadronConeExclTruthLabelID.TrueFlavor.DFCommonJets_jetClean_LooseBad.DFCommonJets_jetClean_TightBad.Timing.btagging.btaggingLink.GhostTrack.DFCommonJets_fJvt.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.PSFrac.JetAccessorMap.EMFrac.Width.ActiveArea4vec_pt.ActiveArea4vec_eta.ActiveArea4vec_m.ActiveArea4vec_phi.EnergyPerSampling.SumPtChargedPFOPt500.isJvtHS',
432 '.'.
join([
'BTagging_AntiKt4EMPFlow'] + btag_variables),
433 'TruthPrimaryVertices.t.x.y.z',
434 'MET_Core_AnalysisMET.name.mpx.mpy.sumet.source',
435 'METAssoc_AnalysisMET.',
436 'InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.numberOfTRTHits.numberOfTRTOutliers',
437 'EventInfo.RandomRunNumber.PileupWeight_NOSYS.GenFiltHT.GenFiltMET.GenFiltHTinclNu.GenFiltPTZ.GenFiltFatJ.HF_Classification.HF_SimpleClassification.{GRL_Deco_names}'.
format(GRL_Deco_names=
'.'.
join(
str(key)
for key
in (
getGoodRunsLists()).
keys())),
438 'Kt4EMPFlowEventShape.Density',
439 'Kt4EMPFlowNeutEventShape.Density',
440 'TauTracks.pt.eta.phi.flagSet.trackLinks',
441 'AnalysisLargeRJets.pt.eta.phi.m.JetConstitScaleMomentum_pt.JetConstitScaleMomentum_eta.JetConstitScaleMomentum_phi.JetConstitScaleMomentum_m.DetectorEta.TrackSumMass.TrackSumPt.constituentLinks.ECF1.ECF2.ECF3.Tau1_wta.Tau2_wta.Tau3_wta.Split12.Split23.Qw.D2.C2.R10TruthLabel_R22v1.R10TruthLabel_R21Precision_2022v1.R10TruthLabel_R21Precision.GhostBHadronsFinalCount.GhostCHadronsFinalCount.Parent.GN2Xv01_phbb.GN2Xv01_phcc.GN2Xv01_ptop.GN2Xv01_pqcd.GN2Xv02_phbb.GN2Xv02_phcc.GN2Xv02_ptop.GN2Xv02_pqcd',
445 PHYSLITEItemList = PHYSLITESlimmingHelper.GetItemList()
447 formatString =
'D2AOD_PHYSLITE' if 'StreamDAOD_PHYS' in flags.Input.ProcessingTags
else 'DAOD_PHYSLITE'
448 acc.merge(
OutputStreamCfg(flags, formatString, ItemList=PHYSLITEItemList, AcceptAlgs=[
"PHYSLITEKernel"]))
449 acc.merge(
SetupMetaDataForStreamCfg(flags, formatString, AcceptAlgs=[
"PHYSLITEKernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))