ATLAS Offline Software
Loading...
Searching...
No Matches
make_treevec.py
Go to the documentation of this file.
1# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
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