ATLAS Offline Software
make_treevec.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 def make_treevec(repcondargs):
4  """find the tree vector from a list of RepeatedCondition configuration
5  AlgTools using the indices assigned to each AlgTool"""
6 
7  treevec = [None for i in range(len(repcondargs)+1)]
8  for rc in repcondargs:
9  treevec[rc.tree_id] = rc.tree_pid
10 
11  assert treevec[0] is None
12 
13  treevec[0] = 0 # root
14  assert None not in treevec
15 
16  return treevec
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.make_treevec.make_treevec
def make_treevec(repcondargs)
Definition: make_treevec.py:3