ATLAS Offline Software
Loading...
Searching...
No Matches
python.make_treevec Namespace Reference

Functions

 make_treevec (repcondargs)

Function Documentation

◆ make_treevec()

python.make_treevec.make_treevec ( repcondargs)
find the tree vector from a list of RepeatedCondition configuration 
AlgTools using the indices assigned to each AlgTool

Definition at line 3 of file make_treevec.py.

3def 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