#include "TTree.h" void opentree() { TFile *fr = new TFile("~/zpracovani/NeuRad/NeuRad_root_data/pedestals_10okt_withGenerator_woPMT_scan_0000_tree.root"); TTree *tr = (TTree*)fr->Get("theTree"); }