benchmark/code/dataset/preprocess.py
def traverse_tree(root, extra_info=True):
    """This function calls the recursive traverse function to make the trees
    starting from the root.

    Parameters
    ----------
    root: should be a fj.PseudoJet
    """
    tree = list()
    content = list()
    charge = list()
    abs_charge = list()
    muon = list()
    # We start from the root=jet 4-vector
    traverse_tree_rec(
        root,
        parent_id=-1,
        is_left=False,
        tree=tree,
        content=content,
        charge=charge,
        abs_charge=abs_charge,
        muon=muon,
        extra_info=extra_info
    )
    return tree, content, charge, abs_charge, muon
This function calls the recursive traverse function to make the trees
    starting from the root.

    Parameters
    ----------
    root: should be a fj.PseudoJet
    
This function calls the recursive traverse function to make the trees
starting from the root.

Parameters


This function calls the recursive traverse function to make the trees starting from the root . Parameters
def traverse_tree(root, extra_info=True):
    tree = list()
    content = list()
    charge = list()
    abs_charge = list()
    muon = list()
    traverse_tree_rec(
        root,
        parent_id=-1,
        is_left=False,
        tree=tree,
        content=content,
        charge=charge,
        abs_charge=abs_charge,
        muon=muon,
        extra_info=extra_info
    )
    return tree, content, charge, abs_charge, muon
def traverse_tree ( root , extra_info = True ) : tree = list ( ) content = list ( ) charge = list ( ) abs_charge = list ( ) muon = list ( ) traverse_tree_rec ( root , parent_id = - 1 , is_left = False , tree = tree , content = content , charge = charge , abs_charge = abs_charge , muon = muon , extra_info = extra_info ) return tree , content , charge , abs_charge , muon
This function calls the recursive traverse function to make the trees
starting from the root.
This function calls the recursive traverse function to make the trees starting from the root .
"""This function calls the recursive traverse function to make the trees
    starting from the root.

    Parameters
    ----------
    root: should be a fj.PseudoJet
    """ # We start from the root=jet 4-vector
root
extra_info