i am sure this is trivial but i am trying to retrieve a histogram from a file and plot it. the problem is that is disappears after the macro ends - probably because it goes out of scope. could you explain to me what i am doing wrong?
TCanvas *c1 = new TCanvas(“c1”,“hists with different scales”,600,400);
TH1F diff_sig = (TH1F)sig.Get(“massd”);