ATLAS Offline Software
Functions
ResortVerticesConfig Namespace Reference

Functions

def ResortVerticesCfg (flags, vxin, vxout, vxsortercfg, algname="ResortVx")
 
def main ()
 

Function Documentation

◆ main()

def ResortVerticesConfig.main ( )

Definition at line 21 of file ResortVerticesConfig.py.

21 def main():
22  from AthenaConfiguration.AllConfigFlags import initConfigFlags
23  flags = initConfigFlags()
24  flags.fillFromArgs()
25  flags.Exec.VerboseMessageComponents = ['ResortVx']
26  flags.lock()
27 
28  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
29  cfg=MainServicesCfg(flags)
30  from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
31  cfg.merge(PoolReadCfg(flags))
32 
33  from TrkConfig.TrkVertexToolsConfig import JetRestrictedSumPt2VertexCollectionSortingToolCfg
35  cfg.merge(ResortVerticesCfg(flags,'PrimaryVertices','PrimaryVertices_resorted',vxsort_jettrks))
36 
37  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
38  cfg.merge(
40  flags,
41  streamName='xAOD',
42  ItemList=[
43  'xAOD::VertexContainer#PrimaryVertices',
44  'xAOD::VertexAuxContainer#PrimaryVerticesAux.',
45  'xAOD::VertexContainer#PrimaryVertices_resorted',
46  'xAOD::VertexAuxContainer#PrimaryVertices_resortedAux.',
47  ])
48  )
49 
50  cfg.run()
51 

◆ ResortVerticesCfg()

def ResortVerticesConfig.ResortVerticesCfg (   flags,
  vxin,
  vxout,
  vxsortercfg,
  algname = "ResortVx" 
)

Definition at line 8 of file ResortVerticesConfig.py.

8 def ResortVerticesCfg(flags,vxin,vxout,vxsortercfg,algname="ResortVx"):
10  vxsorter = cfg.popToolsAndMerge(vxsortercfg)
11  resortvxalg = CompFactory.InDet.InDetPriVxResorter(
12  algname,
13  VerticesIn=vxin,
14  VerticesOut=vxout,
15  VertexCollectionSortingTool=vxsorter,
16  )
17  cfg.addEventAlgo(resortvxalg)
18  return cfg
19 
20 # Executable function, for testing
ResortVerticesConfig.main
def main()
Definition: ResortVerticesConfig.py:21
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
python.TrkVertexToolsConfig.JetRestrictedSumPt2VertexCollectionSortingToolCfg
def JetRestrictedSumPt2VertexCollectionSortingToolCfg(flags, name="JetRestrictedSumPt2VertexCollectionSortingTool", **kwargs)
Definition: TrkVertexToolsConfig.py:38
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
ResortVerticesConfig.ResortVerticesCfg
def ResortVerticesCfg(flags, vxin, vxout, vxsortercfg, algname="ResortVx")
Definition: ResortVerticesConfig.py:8
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69