How to add two histogram from the file “/storage/local/home/atlas/analysis/submitDir_sig/hist-signal.root”
TFile *myfile = TFile::Open("/storage/local/home/atlas/analysis/submitDir_sig/hist-signal.root",“READ”);
TH1F *myhist_1 = (TH1F* )myfile->Get(“electron_Pt”);
TH1F *myhist_2 = (TH1F* )myfile->Get(“muon_Pt”);
myhist_1->Add("myhist_2")
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.