Hi rooters,
I’m simply trying to read a histogram of a root file:
TFile *f = new TFile("/minerva/app/users/gianfred/cmtuser/Minerva_v21r1p1_NX/AnalysisFramework/External/GENIEXSecExtract/cmt/XSec_TEST_actual.root");
if(f->IsOpen()) printf ("File opened succesfully\n");
TH2D* u_2DxsecHist = (TH2D*)f->Get("iron_x_vs_Q2Exp_full_dis2D_xsec");
u_2DxsecHist->Draw();
but it’s not displaying the histogram and I get these errors:
File opened succesfully
Error in <TBufferFile::ReadClassBuffer>: Could not find the StreamerInfo for version 4 of the class TH1, object skipped at offset 95
Error in <TBufferFile::CheckByteCount>: object of class TH1 read too few bytes: 2 instead of 26855
I’m using:
ROOT Version 5.34/36
Platform, compiler gcc version 4.9.3 (GCC)
Any will help will be appreciated.