ATLAS Offline Software
Loading...
Searching...
No Matches
DerivationPrimaryVertexConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaCommon.Logging import logging
5
6logPHYS = logging.getLogger('PHYS')
7
8
9def PVNNVertexCfg(flags):
10 acc = ComponentAccumulator()
11
12 from SGComps.AddressRemappingConfig import InputRenameCfg
13 acc.merge(InputRenameCfg("xAOD::VertexContainer", "PrimaryVertices", "PrimaryVertices_initial"))
14 acc.merge(InputRenameCfg("xAOD::VertexAuxContainer", "PrimaryVerticesAux.", "PrimaryVertices_initialAux."))
15
16 if flags.Tracking.PriVertex.PVNN.useJets:
17 from DerivationFrameworkPhys.PVNNVertexConfig import CustomJetsCfg
18 acc.merge(CustomJetsCfg(flags))
19
20
21 from InDetConfig.InDetPVNNSelectionConfig import PVNNSequenceCfg
22 acc.merge(PVNNSequenceCfg(flags))
23
24 from TrkConfig.TrkVertexToolsConfig import VertexCollectionSortingToolCfg
25 vxsort = VertexCollectionSortingToolCfg(flags)
26 from InDetPriVxFinder.ResortVerticesConfig import ResortVerticesCfg
27 acc.merge(ResortVerticesCfg(flags, "PrimaryVertices_initial", "PrimaryVertices", vxsort))
28
29 return acc
30
31
32def HGamNNVertexCfg(flags):
33 acc = ComponentAccumulator()
34
35 from SGComps.AddressRemappingConfig import InputRenameCfg
36 acc.merge(InputRenameCfg("xAOD::VertexContainer", "PrimaryVertices", "PrimaryVertices_old"))
37 acc.merge(InputRenameCfg("xAOD::VertexAuxContainer", "PrimaryVerticesAux.", "PrimaryVertices_oldAux."))
38
39 from DerivationFrameworkHiggs.HIGG1D1CustomVertexConfig import DiPhotonVertexCfg
40 acc.merge(DiPhotonVertexCfg(flags, VertexContainer="PrimaryVertices_old"))
41
42 from TrkConfig.TrkVertexToolsConfig import VertexCollectionSortingToolCfg
43 vxsort = VertexCollectionSortingToolCfg(flags)
44 from InDetPriVxFinder.ResortVerticesConfig import ResortVerticesCfg
45 acc.merge(ResortVerticesCfg(flags, "HggPrimaryVertices", "PrimaryVertices", vxsort))
46
47 return acc