10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaConfiguration.Enums
import LHCPeriod, MetadataCategory
14 MergedElectronContainer =
"StdWithLRTElectrons"
15 MergedMuonContainer =
"StdWithLRTMuons"
16 MergedMuonContainer_wZPH =
"StdWithLRTMuons_wZPH"
17 MergedTrackCollection =
"InDetWithLRTTrackParticles"
18 MergedGSFTrackCollection =
"InDetWithLRTGSFTrackParticles"
19 LLP1VrtSecInclusiveSuffixes = []
20 LLP1NewVSISuffixes = []
25 """Configure the derivation framework driving algorithm (kernel) for LLP1"""
32 from DerivationFrameworkInDet.InDetToolsConfig
import InDetLRTMergeCfg
34 acc.merge(
InDetLRTMergeCfg(flags, name=
"GSFTrackMergerAlg", InputTrackParticleLocations = [
"GSFTrackParticles",
"LRTGSFTrackParticles"], OutputTrackParticleLocation = MergedGSFTrackCollection, OutputTrackParticleLocationCopy = MergedGSFTrackCollection))
37 from DerivationFrameworkLLP.LLPToolsConfig
import LRTMuonMergerAlg
39 PromptMuonLocation =
"Muons",
40 LRTMuonLocation =
"MuonsLRT",
41 OutputMuonLocation = MergedMuonContainer,
42 CreateViewCollection =
True,
43 UseRun3WP = flags.GeoModel.Run == LHCPeriod.Run3))
46 from DerivationFrameworkLLP.LLPToolsConfig
import LRTElectronMergerAlg
48 PromptElectronLocation =
"Electrons",
49 LRTElectronLocation =
"LRTElectrons",
50 OutputCollectionName = MergedElectronContainer,
52 CreateViewCollection =
True))
55 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
56 MaxCellDecoratorCfg, MaxCellDecoratorKernelCfg)
64 name =
"LLP1LRTMaxCellDecoratorTool",
65 SGKey_electrons =
"LRTElectrons",
66 SGKey_egammaClusters = (
"" if flags.GeoModel.Run == LHCPeriod.Run3
67 else "egammaClusters"),
69 acc.addPublicTool(LLP1LRTMaxCellDecoratorTool)
72 from TrkConfig.TrkVertexFitterUtilsConfig
import AtlasFullLinearizedTrackFactoryCfg
74 name =
"LLP1AtlasFullLinearizedTrackFactory"))
75 acc.addPublicTool(AtlasFullLinearizedTrackFactoryTool)
77 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
79 name =
"LLP1ExtrapolatorTool"))
80 acc.addPublicTool(ExtrapolatorTool)
83 from DerivationFrameworkLLP.LLPToolsConfig
import TrackParametersKVUCfg
85 name =
"LLP1TrackParametersKVU",
86 TrackParticleContainerName =
"InDetDisappearingTrackParticles",
87 VertexContainerName =
"PrimaryVertices",
88 LinearizedTrackFactory = AtlasFullLinearizedTrackFactoryTool,
89 TrackExtrapolator = ExtrapolatorTool))
90 acc.addPublicTool(LLP1TrackParametersKVUTool)
94 isoPar = ROOT.xAOD.Iso.IsolationType
95 deco_ptcones = [isoPar.ptcone40, isoPar.ptcone30, isoPar.ptcone20]
96 deco_ptcones_suffix = [
"ptcone40",
"ptcone30",
"ptcone20"]
99 from InDetConfig.InDetTrackSelectionToolConfig
import InDetTrackSelectionTool_Loose_Cfg
101 name =
"TrackSelectionToolStd",
106 name =
"TrackSelectionToolPdEdx",
112 name =
"TrackSelectionToolPdEdxTight",
117 from IsolationAlgs.IsoToolsConfig
import TrackIsolationToolCfg, CaloIsolationToolCfg
119 name =
"TrackIsoToolStd",
120 TrackSelectionTool = TrackSelectionToolStd))
121 acc.addPublicTool(TrackIsoToolStd)
124 name =
"TrackIsoToolPdEdx",
125 TrackSelectionTool = TrackSelectionToolPdEdx))
126 acc.addPublicTool(TrackIsoToolPdEdx)
129 name =
"TrackIsoToolPdEdxTight",
130 TrackSelectionTool = TrackSelectionToolPdEdxTight))
131 acc.addPublicTool(TrackIsoToolPdEdxTight)
133 from CaloIdentifier
import SUBCALO
135 name =
"CaloIsoTool",
136 EMCaloNums = [SUBCALO.LAREM],
137 HadCaloNums = [SUBCALO.LARHEC, SUBCALO.TILE],
139 UseCaloExtensionCaching =
False,
140 saveOnlyRequestedCorrections =
True))
141 acc.addPublicTool(CaloIsoTool)
143 from DerivationFrameworkInDet.InDetToolsConfig
import IsolationTrackDecoratorCfg
145 name =
"LLP1IsolationTrackDecorator",
146 TrackIsolationTool = TrackIsoToolStd,
147 CaloIsolationTool = CaloIsoTool,
148 TargetContainer =
"InDetTrackParticles",
149 SelectionString =
"InDetTrackParticles.pt>10*GeV",
150 iso = [isoPar.ptcone40, isoPar.ptcone30, isoPar.ptcone20, isoPar.ptvarcone40, isoPar.ptvarcone30, isoPar.ptvarcone20, isoPar.topoetcone40, isoPar.topoetcone30, isoPar.topoetcone20],
151 isoSuffix = [
"ptcone40",
"ptcone30",
"ptcone20",
"ptvarcone40",
"ptvarcone30",
"ptvarcone20",
"topoetcone40",
"topoetcone30",
"topoetcone20"],
152 Prefix = deco_prefix))
153 acc.addPublicTool(LLP1IsolationTrackDecoratorTool)
156 name =
"LLP1IsolationTrackDecoratorDT",
157 TrackIsolationTool = TrackIsoToolStd,
158 CaloIsolationTool = CaloIsoTool,
159 TargetContainer =
"InDetDisappearingTrackParticles",
160 SelectionString =
"InDetDisappearingTrackParticles.pt>10*GeV",
161 iso = [isoPar.ptcone40, isoPar.ptcone30, isoPar.ptcone20, isoPar.ptvarcone40, isoPar.ptvarcone30, isoPar.ptvarcone20, isoPar.topoetcone40, isoPar.topoetcone30, isoPar.topoetcone20],
162 isoSuffix = [
"ptcone40",
"ptcone30",
"ptcone20",
"ptvarcone40",
"ptvarcone30",
"ptvarcone20",
"topoetcone40",
"topoetcone30",
"topoetcone20"],
163 Prefix = deco_prefix))
164 acc.addPublicTool(LLP1IsolationTrackDecoratorDTTool)
167 name =
"LLP1IsolationTrackDecoratorPdEdx",
168 TrackIsolationTool = TrackIsoToolPdEdx,
169 CaloIsolationTool = CaloIsoTool,
170 TargetContainer =
"InDetTrackParticles",
172 Prefix =
'TrkIsoPtPdEdx_',
173 isoSuffix = deco_ptcones_suffix))
174 acc.addPublicTool(LLP1IsolationTrackDecoratorPdEdxTool)
177 name =
"LLP1IsolationTrackDecoratorPdEdxDT",
178 TrackIsolationTool = TrackIsoToolPdEdx,
179 CaloIsolationTool = CaloIsoTool,
180 TargetContainer =
"InDetDisappearingTrackParticles",
182 Prefix =
'TrkIsoPtPdEdx_',
183 isoSuffix = deco_ptcones_suffix))
184 acc.addPublicTool(LLP1IsolationTrackDecoratorPdEdxDTTool)
187 name =
"LLP1IsolationTrackDecoratorPdEdxTight",
188 TrackIsolationTool = TrackIsoToolPdEdxTight,
189 CaloIsolationTool = CaloIsoTool,
190 TargetContainer =
"InDetTrackParticles",
192 Prefix =
'TrkIsoPtTightPdEdx_',
193 isoSuffix = deco_ptcones_suffix))
194 acc.addPublicTool(LLP1IsolationTrackDecoratorPdEdxTightTool)
197 name =
"LLP1IsolationTrackDecoratorPdEdxTightDT",
198 TrackIsolationTool = TrackIsoToolPdEdxTight,
199 CaloIsolationTool = CaloIsoTool,
200 TargetContainer =
"InDetDisappearingTrackParticles",
202 Prefix =
'TrkIsoPtTightPdEdx_',
203 isoSuffix = deco_ptcones_suffix))
204 acc.addPublicTool(LLP1IsolationTrackDecoratorPdEdxTightDTTool)
206 from DerivationFrameworkLLP.LLPToolsConfig
import TrackParticleCaloCellDecoratorCfg
208 name =
"LLP1TrackParticleCaloCellDecorator",
209 DecorationPrefix =
"LLP1",
210 ContainerName =
"InDetTrackParticles"))
211 acc.addPublicTool(LLP1TrackParticleCaloCellDecoratorTool)
213 augmentationTools = [ LLP1LRTMaxCellDecoratorTool,
214 LLP1TrackParametersKVUTool,
215 LLP1IsolationTrackDecoratorTool,
216 LLP1IsolationTrackDecoratorDTTool,
217 LLP1IsolationTrackDecoratorPdEdxTool,
218 LLP1IsolationTrackDecoratorPdEdxDTTool,
219 LLP1IsolationTrackDecoratorPdEdxTightTool,
220 LLP1IsolationTrackDecoratorPdEdxTightDTTool,
221 LLP1TrackParticleCaloCellDecoratorTool ]
226 name =
"LLP1TauMaxCellDecoratorTool",
227 SGKey_taus =
'TauJets',
228 SGKey_electrons =
'',
230 acc.addPublicTool(LLP1TauMaxCellDecoratorTool)
232 augmentationTools += [ LLP1TauMaxCellDecoratorTool ]
237 name =
"LLP1AntiKt4EMTopoJetMaxCellDecoratorTool",
238 SGKey_jets =
'AntiKt4EMTopoJets',
240 SGKey_electrons =
'',
242 acc.addPublicTool(LLP1AntiKt4EMTopoJetMaxCellDecoratorTool)
244 augmentationTools += [ LLP1AntiKt4EMTopoJetMaxCellDecoratorTool ]
249 name =
"LLP1AntiKt4EMPFlowJetMaxCellDecoratorTool",
250 SGKey_jets =
'AntiKt4EMPFlowJets',
252 SGKey_electrons =
'',
254 acc.addPublicTool(LLP1AntiKt4EMPFlowJetMaxCellDecoratorTool)
256 augmentationTools += [ LLP1AntiKt4EMPFlowJetMaxCellDecoratorTool ]
259 from JetRecConfig.JetRecConfig
import registerAsInputConstit, JetRecCfg
260 from JetRecConfig.StandardSmallRJets
import AntiKt4Truth, AntiKt4EMTopo
261 from JetRecConfig.JetDefinition
import JetDefinition
262 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst
266 cst.AntiKt4EMTopoJets.label =
"EMTopoRC"
267 cst.AntiKt4TruthJets.label =
"TruthRC"
269 AntiKt10RCEMTopo = JetDefinition(
"AntiKt",1.0,cst.AntiKt4EMTopoJets,
270 ghostdefs = [
"Track",
"TrackLRT",
"LCTopoOrigin"],
271 modifiers = (
"Sort",
"Filter:200000",),
272 standardRecoMode =
True,
276 AntiKt10RCTruth = JetDefinition(
"AntiKt",1.0,cst.AntiKt4TruthJets,
278 modifiers = (
"Sort",
"Filter:200000",),
279 standardRecoMode =
True,
283 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
285 acc.merge(
JetRecCfg(flags,AntiKt10RCEMTopo))
286 if flags.Input.isMC: acc.merge(
JetRecCfg(flags,AntiKt10RCTruth))
289 from DerivationFrameworkJetEtMiss.METCommonConfig
import METLRTCfg
290 acc.merge(
METLRTCfg(flags,
"AntiKt4EMTopo"))
291 acc.merge(
METLRTCfg(flags,
"AntiKt4EMPFlow"))
294 from DerivationFrameworkEGamma.EGammaLRTConfig
import EGammaLRTCfg
297 from DerivationFrameworkLLP.LLPToolsConfig
import LRTElectronLHSelectorsCfg
301 from DerivationFrameworkLLP.LLPToolsConfig
import PhotonIsEMSelectorsCfg
305 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonsCommonCfg
310 from DerivationFrameworkLLP.LLPToolsConfig
import RecoverZeroPixelHitMuonsCfg
314 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import FtagJetCollectionsCfg
318 from VrtSecInclusive.VrtSecInclusiveConfig
import VrtSecInclusiveCfg
321 name =
"VrtSecInclusive",
322 AugmentingVersionString =
"",
323 FillIntermediateVertices =
False,
324 TrackLocation = MergedTrackCollection))
325 LLP1VrtSecInclusiveSuffixes.append(
"")
328 shortLifetimeSuffix =
"_shortLifetime"
330 name =
"VrtSecInclusive_InDet"+shortLifetimeSuffix,
331 AugmentingVersionString = shortLifetimeSuffix,
332 FillIntermediateVertices =
False,
333 TrackLocation = MergedTrackCollection,
334 twoTrkVtxFormingD0Cut = 1.0))
335 LLP1VrtSecInclusiveSuffixes.append(shortLifetimeSuffix)
337 if flags.Input.isMC
and flags.Derivation.LLP.doTrackSystematics:
338 from InDetTrackSystematicsTools.InDetTrackSystematicsToolsConfig
import TrackSystematicsAlgCfg
339 TrackSystSuffix =
"_TRK_EFF_LARGED0_GLOBAL__1down"
342 name=f
"InDetTrackSystematicsAlg{TrackSystSuffix}",
343 InputTrackContainer = MergedTrackCollection,
344 OutputTrackContainer = f
"{MergedTrackCollection}{TrackSystSuffix}"))
346 name = f
"VrtSecInclusive{TrackSystSuffix}",
347 AugmentingVersionString = TrackSystSuffix,
348 FillIntermediateVertices =
False,
349 TrackLocation = f
"{MergedTrackCollection}{TrackSystSuffix}"))
350 LLP1VrtSecInclusiveSuffixes.append(TrackSystSuffix)
352 TrackSystSuffixShortLifetime =
"_TRK_EFF_LARGED0_GLOBAL__1down_shortLifetime"
355 name=f
"InDetTrackSystematicsAlg{TrackSystSuffixShortLifetime}",
356 InputTrackContainer = MergedTrackCollection,
357 OutputTrackContainer = f
"{MergedTrackCollection}{TrackSystSuffixShortLifetime}"))
359 name = f
"VrtSecInclusive{TrackSystSuffixShortLifetime}",
360 AugmentingVersionString = TrackSystSuffixShortLifetime,
361 FillIntermediateVertices =
False,
362 TrackLocation = f
"{MergedTrackCollection}{TrackSystSuffixShortLifetime}",
363 twoTrkVtxFormingD0Cut = 1.0))
364 LLP1VrtSecInclusiveSuffixes.append(TrackSystSuffixShortLifetime)
367 from DerivationFrameworkLLP.LLPToolsConfig
import ZeroPixelHitMuonMergerAlgCfg
369 InputMuonContainers = [MergedMuonContainer,
"ZeroPixelHitMuons"],
370 OutputMuonLocation = MergedMuonContainer_wZPH))
374 LeptonsSuffix =
"_Leptons"
376 name =
"VrtSecInclusive_InDet"+LeptonsSuffix,
377 AugmentingVersionString = LeptonsSuffix,
378 FillIntermediateVertices =
False,
379 TrackLocation = MergedTrackCollection,
380 twoTrkVtxFormingD0Cut = 1.0,
381 doSelectTracksFromMuons =
True,
382 doRemoveCaloTaggedMuons =
True,
383 doSelectTracksFromElectrons =
True,
384 MuonLocation = MergedMuonContainer,
385 ElectronLocation = MergedElectronContainer))
386 LLP1VrtSecInclusiveSuffixes.append(LeptonsSuffix)
389 LepTrackSuffix =
"_LepTrack"
391 name =
"VrtSecInclusive_InDet"+LepTrackSuffix,
392 AugmentingVersionString = LepTrackSuffix,
393 FillIntermediateVertices =
False,
394 TrackLocation = MergedTrackCollection,
395 MuonLocation = MergedMuonContainer,
396 ElectronLocation = MergedElectronContainer,
397 twoTrkVtxFormingD0Cut = 1.0,
398 doSelectIDAndGSFTracks =
True,
399 doRemoveCaloTaggedMuons =
True,
400 doRemoveNonLeptonVertices =
True,
401 doAssociateNonSelectedTracks=
False))
402 LLP1VrtSecInclusiveSuffixes.append(LepTrackSuffix)
405 BoostedMuonsSuffix =
"_BoostedMuons"
407 name =
"VrtSecInclusive_InDet"+BoostedMuonsSuffix,
408 AugmentingVersionString = BoostedMuonsSuffix,
409 FillIntermediateVertices =
False,
410 TrackLocation = MergedTrackCollection,
411 twoTrkVtxFormingD0Cut = 0.0,
412 doSelectTracksFromMuons =
True,
413 doRemoveCaloTaggedMuons =
True,
414 doSelectTracksFromElectrons =
False,
415 MuonLocation = MergedMuonContainer_wZPH,
416 do_PVvetoCut =
False,
417 DoTwoTrSoftBtag =
True,
418 TwoTrVrtMinDistFromPVCut = 0.5,
419 associatePtCut = 500.))
420 LLP1VrtSecInclusiveSuffixes.append(BoostedMuonsSuffix)
423 from NewVrtSecInclusiveTool.NewVrtSecInclusiveAlgConfig
import NewVrtSecInclusiveAlgLLPCfg
424 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig
import DVFinderToolCfg
425 IDAndGSFSuffix =
"_IDAndGSF_LepTrack"
427 NVSILepTrack_Tool = acc.popToolsAndMerge(
DVFinderToolCfg(flags,FillHist=
False,AugmentingVersionString=IDAndGSFSuffix,MaxZVrt=1000.,AntiPileupSigRCut=2.))
429 algname =
"NVSI"+IDAndGSFSuffix,
430 AugmentingVersionString = IDAndGSFSuffix,
431 ElectronContainer = MergedElectronContainer,
432 MuonContainer = MergedMuonContainer,
433 TrackParticleContainer = MergedTrackCollection,
434 GSFTrackParticleContainer = MergedGSFTrackCollection,
435 BVertexContainerName =
"NewVrtSecInclusive_SecondaryVertices"+IDAndGSFSuffix,
438 RemoveNonLepVertices =
True,
439 BVertexTool = NVSILepTrack_Tool))
440 LLP1NewVSISuffixes.append(IDAndGSFSuffix)
443 jet_clean_prefix=
"DFCommonJets_"
444 jet_clean_container=
"AntiKt4EMTopoJets"
445 jet_clean_level=
"SuperLooseBadLLP"
446 from JetSelectorTools.JetSelectorToolsConfig
import EventCleaningToolCfg, JetCleaningToolCfg
448 "LLP1JetCleanSuperLLP",
452 acc.addPublicTool(LLP1JetCleanSuperLLPTool)
455 "LLP1EventCleanSuperLLP",
457 LLP1EventCleanSuperLLPTool.JetCleanPrefix = jet_clean_prefix
458 LLP1EventCleanSuperLLPTool.JetContainer = jet_clean_container
459 LLP1EventCleanSuperLLPTool.JetCleaningTool = LLP1JetCleanSuperLLPTool
460 acc.addPublicTool(LLP1EventCleanSuperLLPTool)
462 LLP1EventCleanAlg = CompFactory.EventCleaningTestAlg(
463 "LLP1JetCleanDecoratorSuperLLP",
464 EventCleaningTool = LLP1EventCleanSuperLLPTool,
465 JetCollectionName = jet_clean_container,
466 EventCleanPrefix = jet_clean_prefix,
467 CleaningLevel = jet_clean_level,
472 acc.addSequence(CompFactory.AthSequencer(
'EventCleanSeq', Sequential=
True))
473 acc.addEventAlgo(LLP1EventCleanAlg,
'EventCleanSeq')
476 from DerivationFrameworkLLP.LLPToolsConfig
import AugmentationToolLeadingJetsCfg
478 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, AugmentationTools = [augmentationToolLeadingJets]))
481 from DerivationFrameworkInDet.InDetToolsConfig
import TrackParticleThinningCfg, EgammaTrackParticleThinningCfg, MuonTrackParticleThinningCfg, TauTrackParticleThinningCfg, DiTauTrackParticleThinningCfg
482 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import GenericObjectThinningCfg
483 from DerivationFrameworkTau.TauCommonConfig
import TauThinningCfg
488 name =
"LLP1TrackParticleThinningTool",
489 StreamName = kwargs[
'StreamName'],
490 SelectionString =
"InDetTrackParticles.pt>10*GeV",
491 InDetTrackParticlesKey =
"InDetTrackParticles"))
495 name =
"LLP1LRTGSFTrackParticleThinningTool",
496 StreamName = kwargs[
'StreamName'],
497 SelectionString =
"LRTGSFTrackParticles.pt>0*GeV",
498 InDetTrackParticlesKey =
"LRTGSFTrackParticles"))
502 name =
"LLP1DTTrackParticleThinningTool",
503 StreamName = kwargs[
'StreamName'],
504 SelectionString =
"InDetDisappearingTrackParticles.pt>5*GeV",
505 InDetTrackParticlesKey =
"InDetDisappearingTrackParticles"))
510 name =
"LLP1ElectronTPThinningTool",
511 StreamName = kwargs[
'StreamName'],
513 InDetTrackParticlesKey =
"InDetTrackParticles"))
517 name =
"LLP1LRTElectronTPThinningTool",
518 StreamName = kwargs[
'StreamName'],
519 SGKey =
"LRTElectrons",
520 InDetTrackParticlesKey =
"InDetLargeD0TrackParticles",
521 GSFTrackParticlesKey =
"LRTGSFTrackParticles"))
525 name =
"LLP1MuonTPThinningTool",
526 StreamName = kwargs[
'StreamName'],
528 InDetTrackParticlesKey =
"InDetTrackParticles"))
532 name =
"LLP1LRTMuonTPThinningTool",
533 StreamName = kwargs[
'StreamName'],
534 MuonKey =
"MuonsLRT",
535 InDetTrackParticlesKey =
"InDetLargeD0TrackParticles"))
538 tau_thinning_expression = f
"TauJets.pt >= {flags.Tau.MinPtDAOD}"
541 name =
"LLP1TauJetThinningTool",
542 StreamName = kwargs[
'StreamName'],
544 TauTracks =
"TauTracks",
545 TrackParticles =
"InDetTrackParticles",
546 TauNeutralPFOs =
"TauNeutralParticleFlowObjects",
547 TauSecondaryVertices =
"TauSecondaryVertices",
548 SelectionString = tau_thinning_expression))
553 name =
"LLP1TauTPThinningTool",
554 StreamName = kwargs[
'StreamName'],
556 InDetTrackParticlesKey =
"InDetTrackParticles",
557 DoTauTracksThinning =
True,
558 TauTracksKey =
"TauTracks"))
560 tau_murm_thinning_expression = tau_thinning_expression.replace(
'TauJets',
'TauJets_MuonRM')
561 LLP1TauJetMuonRMParticleThinningTool = acc.getPrimaryAndMerge(
TauThinningCfg(
563 name =
"LLP1TauJets_MuonRMThinningTool",
564 StreamName = kwargs[
'StreamName'],
565 Taus =
"TauJets_MuonRM",
566 TauTracks =
"TauTracks_MuonRM",
567 TrackParticles =
"InDetTrackParticles",
568 TauNeutralPFOs =
"TauNeutralParticleFlowObjects_MuonRM",
569 TauSecondaryVertices =
"TauSecondaryVertices_MuonRM",
570 SelectionString = tau_murm_thinning_expression))
575 name =
"LLP1DiTauTPThinningTool",
576 StreamName = kwargs[
'StreamName'],
577 DiTauKey =
"DiTauJets",
578 InDetTrackParticlesKey =
"InDetTrackParticles"))
583 name =
"LLP1DiTauLowPtThinningTool",
584 StreamName = kwargs[
'StreamName'],
585 ContainerName =
"DiTauJetsLowPt",
586 SelectionString =
"DiTauJetsLowPt.nSubjets > 1"))
591 name =
"LLP1DiTauLowPtTPThinningTool",
592 StreamName = kwargs[
'StreamName'],
593 DiTauKey =
"DiTauJetsLowPt",
594 InDetTrackParticlesKey =
"InDetTrackParticles",
595 SelectionString =
"DiTauJetsLowPt.nSubjets > 1"))
599 from DerivationFrameworkLLP.LLPToolsConfig
import VSITrackParticleThinningCfg
601 name =
"LLP1VSITPThinningTool",
602 StreamName = kwargs[
'StreamName'],
603 InDetTrackParticlesKey =
"InDetTrackParticles",
604 AugVerStrings = LLP1VrtSecInclusiveSuffixes + LLP1NewVSISuffixes))
606 name =
"LLP1LRTVSITPThinningTool",
607 StreamName = kwargs[
'StreamName'],
608 InDetTrackParticlesKey =
"InDetLargeD0TrackParticles",
609 AugVerStrings = LLP1VrtSecInclusiveSuffixes + LLP1NewVSISuffixes))
611 name =
"LLP1GSFVSITPThinningTool",
612 StreamName = kwargs[
'StreamName'],
613 InDetTrackParticlesKey =
"GSFTrackParticles",
614 AugVerStrings = [IDAndGSFSuffix]))
617 from DerivationFrameworkLLP.LLPToolsConfig
import JetTrackParticleThinningCfg, JetLargeD0TrackParticleThinningCfg
619 name =
"LLP1JetTPThinningTool",
620 StreamName = kwargs[
'StreamName'],
621 JetKey =
"AntiKt4EMTopoJets",
622 SelectionString =
"(AntiKt4EMTopoJets.pt > 20.*GeV) && (abs(AntiKt4EMTopoJets.eta) < 2.5)",
623 InDetTrackParticlesKey =
"InDetTrackParticles"))
626 name =
"LLP1FatJetTPThinningTool",
627 StreamName = kwargs[
'StreamName'],
628 JetKey =
"AntiKt10EMTopoRCJets",
629 SelectionString =
"(AntiKt10EMTopoRCJets.pt > 200.*GeV) && (abs(AntiKt10EMTopoRCJets.eta) < 2.5)",
630 InDetTrackParticlesKey =
"InDetTrackParticles",
634 if flags.Tracking.doLargeD0:
636 name =
"LLP1LRTJetTPThinningTool",
637 StreamName = kwargs[
'StreamName'],
638 JetKey =
"AntiKt4EMTopoJets",
639 SelectionString =
"(AntiKt4EMTopoJets.pt > 20.*GeV) && (abs(AntiKt4EMTopoJets.eta) < 2.5)",
640 InDetTrackParticlesKey =
"InDetLargeD0TrackParticles"))
643 name =
"LLP1LRTFatJetTPThinningTool",
644 StreamName = kwargs[
'StreamName'],
645 JetKey =
"AntiKt10EMTopoRCJets",
646 SelectionString =
"(AntiKt10EMTopoRCJets.pt > 200.*GeV) && (abs(AntiKt10EMTopoRCJets.eta) < 2.5)",
647 InDetTrackParticlesKey =
"InDetLargeD0TrackParticles",
651 from DerivationFrameworkLLP.LLPToolsConfig
import PixeldEdxTrackParticleThinningCfg
654 name =
"LLP1PixeldEdxTrackParticleThinningTool",
655 StreamName = kwargs[
'StreamName'],
656 InDetTrackParticlesKey =
"InDetTrackParticles"))
660 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import JetCaloClusterThinningCfg
665 StreamName = kwargs[
'StreamName'],
666 SGKey =
"AntiKt4EMTopoJets",
667 TopoClCollectionSGKey =
"CaloCalTopoClusters",
668 SelectionString =
"(AntiKt4EMTopoJets.DFDecoratorLeadingJets)",
669 AdditionalClustersKey = [
"EMOriginTopoClusters",
"LCOriginTopoClusters"]
677 thinningTools = [LLP1TrackParticleThinningTool,
678 LLP1DTTrackParticleThinningTool,
679 LLP1ElectronTPThinningTool,
680 LLP1LRTElectronTPThinningTool,
681 LLP1MuonTPThinningTool,
682 LLP1LRTMuonTPThinningTool,
683 LLP1TauJetsThinningTool,
684 LLP1TauTPThinningTool,
685 LLP1TauJetMuonRMParticleThinningTool,
686 LLP1DiTauTPThinningTool,
687 LLP1DiTauLowPtThinningTool,
688 LLP1DiTauLowPtTPThinningTool,
689 LLP1VSITPThinningTool,
690 LLP1LRTVSITPThinningTool,
691 LLP1GSFVSITPThinningTool,
692 LLP1JetTPThinningTool,
693 LLP1FatJetTPThinningTool,
694 LLP1PixeldEdxTrackParticleThinningTool,
696 LLP1LRTGSFTrackParticleThinningTool
699 if flags.Tracking.doLargeD0:
700 thinningTools.append(LLP1LRTJetTPThinningTool)
701 thinningTools.append(LLP1LRTFatJetTPThinningTool)
706 from DerivationFrameworkLLP.LLPToolsConfig
import RCJetSubstructureAugCfg
708 name =
"LLP1RCJetSubstructureClustTrimAugTool",
709 StreamName = kwargs[
'StreamName'],
710 JetContainerKey =
"AntiKt10EMTopoRCJets",
711 SelectionString =
"(AntiKt10EMTopoRCJets.pt > 200.*GeV) && (abs(AntiKt10EMTopoRCJets.eta) < 2.5)",
712 GhostConstitNames = [
"GhostLCTopoOrigin"],
713 Suffix =
"clusterTrim",
714 Grooming =
"Trimming",
718 RCSubstructureClusterTrimAug = CompFactory.DerivationFramework.CommonAugmentation(
"RCSubstructureClusterTrimAug", AugmentationTools = [LLP1RCJetSubstructureClustTrimAugTool])
719 acc.addEventAlgo(RCSubstructureClusterTrimAug)
722 name =
"LLP1RCJetSubstructureClustSDAugTool",
723 StreamName = kwargs[
'StreamName'],
724 JetContainerKey =
"AntiKt10EMTopoRCJets",
725 SelectionString =
"(AntiKt10EMTopoRCJets.pt > 200.*GeV) && (abs(AntiKt10EMTopoRCJets.eta) < 2.5)",
726 GhostConstitNames = [
"GhostLCTopoOrigin"],
727 Suffix =
"clusterSoftDrop",
728 Grooming =
"SoftDrop",
732 RCSubstructureClusterSDAug = CompFactory.DerivationFramework.CommonAugmentation(
"RCSubstructureClusterSDAug", AugmentationTools = [LLP1RCJetSubstructureClustSDAugTool])
733 acc.addEventAlgo(RCSubstructureClusterSDAug)
736 from DerivationFrameworkLLP.LLPToolsConfig
import RCJetSubstructureAugCfg
738 name =
"LLP1RCJetSubstructureTrackTrimAugTool",
739 StreamName = kwargs[
'StreamName'],
740 JetContainerKey =
"AntiKt10EMTopoRCJets",
741 SelectionString =
"(AntiKt10EMTopoRCJets.pt > 200.*GeV) && (abs(AntiKt10EMTopoRCJets.eta) < 2.5)",
742 GhostConstitNames = [
"GhostTrack",
"GhostTrackLRT"],
743 Suffix =
"trackTrim",
744 Grooming =
"Trimming",
748 RCSubstructureTrackTrimAug = CompFactory.DerivationFramework.CommonAugmentation(
"RCSubstructureTrackTrimAug", AugmentationTools = [LLP1RCJetSubstructureTrackTrimAugTool])
749 acc.addEventAlgo(RCSubstructureTrackTrimAug)
751 from DerivationFrameworkLLP.LLPToolsConfig
import RCJetSubstructureAugCfg
753 name =
"LLP1RCJetSubstructureTrackSDAugTool",
754 StreamName = kwargs[
'StreamName'],
755 JetContainerKey =
"AntiKt10EMTopoRCJets",
756 SelectionString =
"(AntiKt10EMTopoRCJets.pt > 200.*GeV) && (abs(AntiKt10EMTopoRCJets.eta) < 2.5)",
757 GhostConstitNames = [
"GhostTrack",
"GhostTrackLRT"],
758 Suffix =
"trackSoftDrop",
759 Grooming =
"SoftDrop",
763 RCSubstructureTrackSDAug = CompFactory.DerivationFramework.CommonAugmentation(
"RCSubstructureTrackSDAug", AugmentationTools = [LLP1RCJetSubstructureTrackSDAugTool])
764 acc.addEventAlgo(RCSubstructureTrackSDAug)
771 from DerivationFrameworkLLP.LLPToolsConfig
import LLP1TriggerSkimmingToolCfg
773 name =
"LLP1TriggerSkimmingTool",
774 TriggerListsHelper = kwargs[
'TriggerListsHelper']))
776 skimmingTools.append(LLP1TriggerSkimmingTool)
778 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
780 SkimmingTools = skimmingTools,
781 ThinningTools = thinningTools,
782 AugmentationTools = augmentationTools))
797 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
798 LLP1TriggerListsHelper = TriggerListsHelper(flags)
801 acc.merge(
LLP1KernelCfg(flags, name=
"LLP1Kernel", StreamName =
'StreamDAOD_LLP1', TriggerListsHelper = LLP1TriggerListsHelper))
806 from IsolationSelection.IsolationSelectionConfig
import IsoCloseByAlgsCfg
813 acc.merge(
IsoCloseByAlgsCfg(flags, isPhysLite =
False, stream_name =
'StreamDAOD_LLP1'))
814 contNames = [
"LRTElectrons",
"MuonsLRT" ]
815 acc.merge(
IsoCloseByAlgsCfg(flags, suff =
"_LLP1", isPhysLite =
False, containerNames = contNames, useSelTools =
True, stream_name =
'StreamDAOD_LLP1', hasLRT =
True))
816 contNames = [ MergedMuonContainer, MergedElectronContainer,
"Photons" ]
817 acc.merge(
IsoCloseByAlgsCfg(flags, suff =
"_LLP1_LRTMerged", isPhysLite =
False, containerNames = contNames, useSelTools =
True, stream_name =
'StreamDAOD_LLP1', isoDecSuffix =
"CloseByCorr_LRT", caloDecSuffix =
'_LRT', hasLRT =
True))
818 contNames = [
"ZeroPixelHitMuons" ]
819 acc.merge(
IsoCloseByAlgsCfg(flags, suff =
"_LLP1_ZeroPixelHitsMuons", isPhysLite =
False, containerNames = contNames, stream_name =
'StreamDAOD_LLP1', isoDecSuffix =
"CloseByCorr_ZPH"))
824 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
825 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
826 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
828 LLP1SlimmingHelper =
SlimmingHelper(
"LLP1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
830 LLP1SlimmingHelper.SmartCollections = [
"EventInfo",
837 "InDetTrackParticles",
838 "InDetLargeD0TrackParticles",
840 "AntiKt4EMPFlowJets",
841 "BTagging_AntiKt4EMTopo",
842 "BTagging_AntiKt4EMPFlow",
843 "BTagging_AntiKtVR30Rmax4Rmin02Track",
844 "MET_Baseline_AntiKt4EMTopo",
845 "MET_Baseline_AntiKt4EMPFlow",
850 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
851 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
852 "AntiKtVR30Rmax4Rmin02PV0TrackJets",
855 LLP1SlimmingHelper.AllVariables = [
"InDetDisappearingTrackParticles",
857 "MuonSpectrometerTrackParticles",
858 "UnAssocMuonSegments",
862 "CombinedMuonTrackParticles",
863 "ExtrapolatedMuonTrackParticles",
864 "CombinedMuonsLRTTrackParticles",
865 "ExtraPolatedMuonsLRTTrackParticles",
866 "MSOnlyExtraPolatedMuonsLRTTrackParticles",
867 "CombinedStauTrackParticles",
876 "EMOriginTopoClusters",
878 "METAssoc_AntiKt4EMTopo",
879 "MET_Core_AntiKt4EMTopo",
880 "METAssoc_AntiKt4EMPFlow",
881 "MET_Core_AntiKt4EMPFlow",
882 "InDetLowPtRoITrackParticles",
885 "DisappearingPixelMSOSs",
886 "LowPtRoIPixelMSOSs",
889 "DisappearingSCT_MSOSs",
894 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
896 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
897 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
898 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
899 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
900 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
901 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
902 StaticContent += [
"xAOD::JetContainer#AntiKt10EMTopoRCJets",
"xAOD::JetAuxContainer#AntiKt10EMTopoRCJetsAux.-PseudoJet"]
903 StaticContent += [
"CaloClusterCellLinkContainer#CaloCalTopoClusters_links"]
905 for wp
in LLP1VrtSecInclusiveSuffixes:
906 StaticContent += [
"xAOD::VertexContainer#VrtSecInclusive_SecondaryVertices" + wp]
907 StaticContent += [
"xAOD::VertexAuxContainer#VrtSecInclusive_SecondaryVertices" + wp +
"Aux."]
909 for wp
in LLP1NewVSISuffixes:
910 StaticContent += [
"xAOD::VertexContainer#NewVrtSecInclusive_SecondaryVertices" + wp]
911 StaticContent += [
"xAOD::VertexAuxContainer#NewVrtSecInclusive_SecondaryVertices" + wp +
"Aux." + excludedVertexAuxData]
913 LLP1SlimmingHelper.ExtraVariables += [
"AntiKt10TruthTrimmedPtFrac5SmallR20Jets.Tau1_wta.Tau2_wta.Tau3_wta.D2.GhostBHadronsFinalCount",
914 "Electrons.LHValue.DFCommonElectronsLHVeryLooseNoPixResult.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z.f3",
915 "LRTElectrons.LHValue.DFCommonElectronsLHVeryLooseNoPixResult.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z.f3",
916 "Photons.DFCommonPhotonsIsEMMedium.DFCommonPhotonsIsEMMediumIsEMValue.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z.f3",
917 "Muons.meanDeltaADCCountsMDT",
918 "egammaClusters.phi_sampl.eta0.phi0",
919 "LRTegammaClusters.phi_sampl.eta0.phi0",
920 "AntiKt4EMTopoJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.PartonTruthLabelID.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt.GhostBHadronsFinal.GhostCHadronsFinal.GhostTrack.GhostTrackCount.GhostTrackLRT.GhostTrackLRTCount.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z",
921 "AntiKt4EMPFlowJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.PartonTruthLabelID.DFCommonJets_fJvt.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt.GhostBHadronsFinal.GhostCHadronsFinal.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z",
922 "AntiKtVR30Rmax4Rmin02TrackJets_BTagging201903.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt.GhostTausFinal.GhostTausFinalCount",
923 "AntiKtVR30Rmax4Rmin02TrackJets_BTagging201810.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt.GhostTausFinal.GhostTausFinalCount",
924 "TruthPrimaryVertices.t.x.y.z.sumPt2",
925 "PrimaryVertices.t.x.y.z.sumPt2.covariance",
926 "InDetTrackParticles.d0.z0.vz.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.truthParticleLink.truthMatchProbability.radiusOfFirstHit.hitPattern.patternRecoInfo",
927 "InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers",
928 "InDetTrackParticles.numberOfIBLOverflowsdEdx.numberOfUsedHitsdEdx.pixeldEdx",
929 "InDetTrackParticles.expectInnermostPixelLayerHit.expectNextToInnermostPixelLayerHit.numberOfNextToInnermostPixelLayerHits.numberOfContribPixelLayers.numberOfGangedFlaggedFakes.numberOfPixelOutliers.numberOfPixelSplitHits.numberOfPixelSpoiltHits",
930 "InDetTrackParticles.numberOfSCTOutliers.numberOfSCTSpoiltHits",
931 "InDetTrackParticles.numberOfTRTHoles.numberOfTRTDeadStraws.numberOfTRTSharedHits.numberOfTRTHighThresholdHits.numberOfTRTHighThresholdHitsTotal.numberOfTRTHighThresholdOutliers.TRTdEdx.TRTdEdxUsedHits.hitPattern",
932 "InDetTrackParticles.truthMatchProbability.truthOrigin.truthType",
933 "InDetTrackParticles.TrkIsoPtPdEdx_ptcone20.TrkIsoPtPdEdx_ptcone30.TrkIsoPtPdEdx_ptcone40.TrkIsoPtTightPdEdx_ptcone20.TrkIsoPtTightPdEdx_ptcone30.TrkIsoPtTightPdEdx_ptcone40",
934 "InDetTrackParticles.LLP1_ptcone20.LLP1_ptcone30.LLP1_ptcone40.LLP1_ptvarcone20.LLP1_ptvarcone30.LLP1_ptvarcone40.definingParametersCovMatrixDiag.definingParametersCovMatrixOffDiag",
935 "InDetTrackParticles.LLP1_topoetcone20.LLP1_topoetcone30.LLP1_topoetcone40.LLP1_topoetcone20NonCoreCone.LLP1_topoetcone30NonCoreCone.LLP1_topoetcone40NonCoreCone",
936 "InDetTrackParticles.LLP1_CaloCelldEta.LLP1_CaloCelldPhi.LLP1_CaloCelldR.LLP1_CaloCelldX.LLP1_CaloCelldY.LLP1_CaloCelldZ.LLP1_CaloCellE.LLP1_CaloCellEta.LLP1_CaloCellGain.LLP1_CaloCellID.LLP1_CaloCellPhi.LLP1_CaloCellProvenance.LLP1_CaloCellQuality.LLP1_CaloCellR.LLP1_CaloCellSampling.LLP1_CaloCellTime.LLP1_CaloCellX.LLP1_CaloCellY.LLP1_CaloCellZ.LLP1_CaloCellEneDiff.LLP1_CaloCellTimeDiff",
937 "InDetTrackParticles.Reco_msosLink",
939 "InDetLargeD0TrackParticles.d0.z0.vz.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.truthParticleLink.truthMatchProbability.radiusOfFirstHit.hitPattern.patternRecoInfo",
940 "GSFTrackParticles.d0.z0.vz.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.truthParticleLink.truthMatchProbability.radiusOfFirstHit.numberOfPixelHoles.numberOfSCTHoles.numberDoF.chiSquared.hitPattern.truthOrigin.truthType",
941 "LRTGSFTrackParticles.d0.z0.vz.TTVA_AMVFVertices.TTVA_AMVFWeights.eProbabilityHT.truthParticleLink.truthMatchProbability.radiusOfFirstHit.numberOfPixelHoles.numberOfSCTHoles.numberDoF.chiSquared.hitPattern.truthOrigin.truthType",
942 "EventInfo.hardScatterVertexLink.timeStampNSOffset",
943 "EventInfo.GenFiltHT.GenFiltMET.GenFiltHTinclNu.GenFiltPTZ.GenFiltFatJ",
944 "EventInfo.hardScatterVertexLink.timeStampNSOffset",
945 "EventInfo.DFCommonJets_eventClean_SuperLooseBadLLP.DFCommonJets_eventClean_SuperLooseBadLLP_EMTopo.DFCommonJets_eventClean_LooseBadLLP_EMTopo",
946 "TauJets.dRmax.etOverPtLeadTrk.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z",
947 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
948 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"]
951 LLP1SlimmingHelper.ExtraVariables += [
"Muons.topoetcone20_CloseByCorr_LRT.neflowisol20_CloseByCorr_LRT.ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt500_CloseByCorr_LRT.ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt1000_CloseByCorr_LRT",
952 "MuonsLRT.topoetcone20_CloseByCorr_LRT.neflowisol20_CloseByCorr_LRT.ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt500_CloseByCorr_LRT.ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt1000_CloseByCorr_LRT",
953 "Electrons.topoetcone20_CloseByCorr_LRT.ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr_LRT.ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr_LRT",
954 "LRTElectrons.topoetcone20_CloseByCorr_LRT.ptcone20_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr_LRT.ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000_CloseByCorr_LRT",
955 "Photons.topoetcone20_CloseByCorr_LRT.topoetcone40_CloseByCorr_LRT.ptcone20_CloseByCorr_LRT"
959 "is_selected",
"is_associated",
"is_svtrk_final",
"pt_wrtSV",
"eta_wrtSV",
960 "phi_wrtSV",
"d0_wrtSV",
"z0_wrtSV",
"errP_wrtSV",
"errd0_wrtSV",
961 "errz0_wrtSV",
"chi2_toSV"
964 for suffix
in LLP1VrtSecInclusiveSuffixes + LLP1NewVSISuffixes:
965 LLP1SlimmingHelper.ExtraVariables += [
"InDetTrackParticles." +
'.'.
join( [ var + suffix
for var
in VSITrackAuxVars] ) ]
966 LLP1SlimmingHelper.ExtraVariables += [
"InDetLargeD0TrackParticles." +
'.'.
join( [ var + suffix
for var
in VSITrackAuxVars] ) ]
967 LLP1SlimmingHelper.ExtraVariables += [
"GSFTrackParticles." +
'.'.
join( [ var + suffix
for var
in VSITrackAuxVars] ) ]
968 LLP1SlimmingHelper.ExtraVariables += [
"LRTGSFTrackParticles." +
'.'.
join( [ var + suffix
for var
in VSITrackAuxVars] ) ]
970 LLP1SlimmingHelper.ExtraVariables.append(
'CaloCalTopoClusters.e_sampl.calM.calE.calEta.calPhi.CENTER_MAG.SECOND_TIME')
971 LLP1SlimmingHelper.AppendToDictionary[
"EMOriginTopoClusters"]=
'xAOD::CaloClusterContainer'
972 LLP1SlimmingHelper.AppendToDictionary[
"EMOriginTopoClustersAux"]=
'xAOD::ShallowAuxContainer'
973 LLP1SlimmingHelper.ExtraVariables.append(
'EMOriginTopoClusters.e_sampl.calM.calE.calEta.calPhi.CENTER_MAG.SECOND_TIME')
979 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
981 LLP1SlimmingHelper.AllVariables += [
'TruthHFWithDecayParticles',
'TruthHFWithDecayVertices',
'TruthCharm',
'TruthPileupParticles',
'InTimeAntiKt4TruthJets',
'OutOfTimeAntiKt4TruthJets',
'AntiKt4TruthJets']
982 LLP1SlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
983 "LRTElectrons.TruthLink",
985 "MuonsLRT.TruthLink",
988 if flags.Derivation.LLP.saveFullTruth:
989 LLP1SlimmingHelper.ExtraVariables += [
'TruthParticles',
'TruthVertices']
990 StaticContent += [
"xAOD::JetContainer#AntiKt10TruthRCJets",
"xAOD::JetAuxContainer#AntiKt10TruthRCJetsAux.-PseudoJet"]
993 StaticContent += [
"xAOD::MuonContainer#ZeroPixelHitMuons",
"xAOD::MuonAuxContainer#ZeroPixelHitMuonsAux."]
995 from DerivationFrameworkEGamma.PhotonsCPDetailedContent
import (
996 PhotonsCPDetailedContent,
998 LLP1SlimmingHelper.ExtraVariables += PhotonsCPDetailedContent
1001 from DerivationFrameworkJetEtMiss.JetCommonConfig
import addOriginCorrectedClustersToSlimmingTool
1003 LLP1SlimmingHelper.StaticContent = StaticContent
1006 LLP1SlimmingHelper.IncludeTriggerNavigation =
False
1007 LLP1SlimmingHelper.IncludeJetTriggerContent =
False
1008 LLP1SlimmingHelper.IncludeMuonTriggerContent =
False
1009 LLP1SlimmingHelper.IncludeEGammaTriggerContent =
False
1010 LLP1SlimmingHelper.IncludeTauTriggerContent =
False
1011 LLP1SlimmingHelper.IncludeEtMissTriggerContent =
False
1012 LLP1SlimmingHelper.IncludeBJetTriggerContent =
False
1013 LLP1SlimmingHelper.IncludeBPhysTriggerContent =
False
1014 LLP1SlimmingHelper.IncludeMinBiasTriggerContent =
False
1018 if flags.Trigger.EDMVersion == 2:
1019 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
1020 from DerivationFrameworkLLP.LLPToolsConfig
import LLP1TriggerMatchingToolRun2Cfg
1022 OutputContainerPrefix =
"TrigMatch_",
1023 TriggerList = LLP1TriggerListsHelper.Run2TriggerNamesTau)
1025 OutputContainerPrefix =
"TrigMatch_",
1026 TriggerList = LLP1TriggerListsHelper.Run2TriggerNamesNoTau)
1029 name =
"LRTTriggerMatchingTool_LLP1",
1030 OutputContainerPrefix =
"LRTTrigMatch_LLP1_",
1031 TriggerList = LLP1TriggerListsHelper.Run2TriggerNamesNoTau,
1032 InputElectrons=MergedElectronContainer,
1033 InputMuons=MergedMuonContainer_wZPH
1037 OutputContainerPrefix =
"LRTTrigMatch_LLP1_",
1038 TriggerList = LLP1TriggerListsHelper.Run2TriggerNamesNoTau,
1039 InputElectrons=MergedElectronContainer,
1040 InputMuons=MergedMuonContainer_wZPH
1043 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
1044 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
1048 LLP1ItemList = LLP1SlimmingHelper.GetItemList()
1049 acc.merge(
OutputStreamCfg(flags,
"DAOD_LLP1", ItemList=LLP1ItemList, AcceptAlgs=[
"LLP1Kernel"]))
1050 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_LLP1", AcceptAlgs=[
"LLP1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))