ml_tree_plainer program is developed for conversion of complex AnalysisTree structure into plain tree (either AnalysisTree or ROOT::TTree). It is based on at_tree_plainer by Oleksii Lubynets.
ROOT6 is needed for installation:
https://root.cern/install/build_from_source/
Follow instructions
https://github.com/HeavyIonAnalysis/AnalysisTree
Follow instructions
Clone at_tree_plainer
git clone git@github.com:julnow/ml-tree-plainer.git
Source ROOT
source /path-to-root/install/bin/thisroot.sh
Export AnalysisTree libraries
export AnalysisTree_DIR=/path-to-analysistree/install/lib/cmake/AnalysisTree
Install at_tree_plainer
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path-to-install-ml_tree_plainer /path-to-source-ml_tree_plainer
make -j install
For debugging the flag
DCMAKE_BUILD_TYPE=DEBUG
should be added
./main file_list.txt where file_list.txt should contain names of AnalysisTree files