ATLAS Offline Software
Functions
python.make_treevec Namespace Reference

Functions

def make_treevec (repcondargs)
 

Function Documentation

◆ make_treevec()

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

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