{ TFile* file0 = new TFile("output/trees_100um_4e15_600V.root"); gSystem->Load("/cvmfs/clicdp.cern.ch/software/allpix-squared/2.3.2/x86_64-centos7-clang12-opt/lib/libAllpixObjects.so"); gROOT->LoadMacro("RadDamVarTree.C++"); auto file = new TFile("outputRadDamVarTree.root", "RECREATE"); auto tree = RadDamVarTree(file0, "detector1"); tree->Write(); }