Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
rootslimtree Namespace Reference

Command line to copy trees with subset of branches from source ROOT files to new trees on a destination ROOT file. More...

Functions

 execute ()
 get_argparse ()

Variables

str COMMAND_HELP = "Copy trees with a subset of branches from source ROOT files"
str EPILOG

Detailed Description

Command line to copy trees with subset of branches from source ROOT files to new trees on a destination ROOT file.

Function Documentation

◆ execute()

rootslimtree.execute ( )

Definition at line 45 of file rootslimtree.py.

◆ get_argparse()

rootslimtree.get_argparse ( )

Definition at line 33 of file rootslimtree.py.

Variable Documentation

◆ COMMAND_HELP

str rootslimtree.COMMAND_HELP = "Copy trees with a subset of branches from source ROOT files"

Definition at line 14 of file rootslimtree.py.

◆ EPILOG

str rootslimtree.EPILOG
Initial value:
1= """Examples:
2- rootslimtree source.root:tree dest.root
3 Copy the tree 'tree' from 'source.root' to 'dest.root'.
4
5- rootslimtree --recreate source.root:tree dest.root
6 Recreate the destination file 'dest.root' and copy the tree 'tree' from 'source.root' to 'dest.root'.
7
8- rootslimtree -c 1 source.root:tree dest.root
9 Change the compression factor of the destination file 'dest.root' and copy the tree 'tree' from 'source.root' to 'dest.root'. For more information about compression settings of ROOT file, please look at the reference guide available on the ROOT site.
10
11- rootslimtree -e "muon_*" source.root:tree dest.root
12 Copy the tree 'tree' from 'source.root' to 'dest.root' and remove branches matching "muon_*"
13
14- rootslimtree -e "*" -i "muon_*" source.root:tree dest.root
15 Copy the tree 'tree' from 'source.root' to 'dest.root' and only write branches matching "muon_*"
16"""

Definition at line 16 of file rootslimtree.py.