ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
Hello,
I am trying to extract a histogram from a file. My code is like this
TH1F *nom_hist=0;
hist_files_ = TFile::Open(“nominal_ZJets.root”, “read”);
hist_files_->GetObject(“m4l_ggF_2mu2e_13TeV”,nom_hist);
Or this
TFile hist_files_=new TFile(“nominal_ZJets.root”,“read”);
nom_hist = (TH1F)hist_files_->Get(“m4l_ggF_2mu2e_13TeV”);
it seems not working. Could somebody help me to figure out what is going wrong? I am also attaching the root file and the code
getH.cpp (433 Bytes)
nominal_ZJets.root (3.8 KB)
.
thank you,
panagiotis