Build
In a machine with ROOT setup do:
make
to get test
Run
./test 100000 1
will:
- Create two files
file_1.root
andfile_2.root
. - Load them, add a branch with
RDataFrame
- Save them.
- Load them again.
- Merge them and save the merged file.
./test 100000 2
will:
- Create two files
file_1.root
andfile_2.root
. - Load them in a chain.
- Clone the chain.
- Add a branch.
- Loop over the chain adding entries to clone.
- Save.
Both methods will be timed. Results in my machine:
23:47:04 campoverde@lxslc708 ./test 100000 1
Time: 5.30999994 sec
23:47:57 campoverde@lxslc708 ./test 100000 2
Time: 0.28999999 sec