Tested with root_6.28_04 (precompiled binaries for Ubuntu 20.04) root-6.22.08 (compiled from source at nra161: /LynxOS/mbsusr/mbsdaq/analysis/root/root-6.22.08) I. Use with GNU make 1) set path in makefile according to your operating system 2) type in terminal: make all make htmldoc make install 3) add the install folder to LD_LIBRARY_PATH II. Use with cmake 1) mkdir build 2) cd build 3) cmake .. 4) make install III. Test of compiled libraries 1) cd macros 2) modify libraries paths in rootlogon.C if needed 3) rootlogon.C will automatically load compiled libraries libTELoss.so and libAculData.so, then root -l testOfAculData.cxx root -l testOfTELoss.cxx