Hello, people
I just want to put two histograms in one, and I am struggling with this since I am new to root. The histograms have the same name but they are in different root files. I am trying the code below:
TFile *f2=new TFile("higgspythiaM.root");
TH1::AddDirectory(kFALSE);
TCanvas *c1=new TCanvas("c1","Combines Histograms",500,500,500,500);
TH1F *h_common=(TH1F*)f1->Get("hist_transversemass_HiggsLeptonic");
TH1F *h_second = (TH1F*)f2->Get("hist_transversemass_HiggsLeptonic");
h_common->Draw();
h_second->Draw("SAME");
After entering the line: h_common->Draw();
I get this message: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
What does that mean?
Thank you, have a nice day!
_ROOT Version: ROOT 6.14.04
_Platform: Ubuntu 18.04.2 LTS
_Compiler:g++