TStreamerInfo error

Hello all,

Recently, in compiling a relatively simple program, I got an error that looks like

Warning in TStreamerInfo::BuildCheck:
The StreamerInfo for version 1 of class TNamed read from file JSON_data.root
has a different checksum than the previously loaded StreamerInfo.
Reading objects of type TNamed from the file JSON_data.root
(and potentially other files) might not work correctly.
Most likely the version number of the class was not properly
updated [See ClassDef(TNamed,1)].
Warning in TStreamerInfo::BuildCheck:
The StreamerInfo of class TCollection read from file JSON_data.root
has the same version (=3) as the active class but a different checksum.
You should update the version to ClassDef(TCollection,4).
Do not try to write objects with the current class definition,
the files will not be readable.

Warning in TStreamerInfo::BuildCheck:
The StreamerInfo of class TAxis read from file JSON_data.root
has the same version (=9) as the active class but a different checksum.
You should update the version to ClassDef(TAxis,10).
Do not try to write objects with the current class definition,
the files will not be readable.

Warning in TStreamerInfo::BuildCheck:
The StreamerInfo of class TH1 read from file JSON_data.root
has the same version (=6) as the active class but a different checksum.
You should update the version to ClassDef(TH1,7).
Do not try to write objects with the current class definition,
the files will not be readable.

Does anyone have any idea what this means, and how to fix it? Thanks a lot!

Cheers!

Hi,

could we access the file, please? AFS or http would work.

Cheers, Axel.

Hi,

You should be able to find the file at:

/afs/cern.ch/user/b/bjs233/public/JSON_data.root

Thanks.

Cheers!

I do not see any problem with your file. It has been written with ROOT5.22, are you trying to read it with an older version? Did you modify the classes TH1, TAxis, etc?
Do you have a very short script reproducing your problem?

Rene

Hi,

I’m running ROOT 5.22, so that shouldn’t be the issue.

The file that I’ve been trying to run is at:

/afs/cern.ch/user/b/bjs233/public/tpFit.C

Again, thanks for the help!

Cheers!

I cannot reproduce your problem using ROOT5.22 or newer using your script.
Are you running bare ROOT ?
I see a problem in your script.
TH1D phiDenom_B_D = (TH1D)f1->Get(“dataeleeff/globalPhiDenom_B”);
returns null, this object does not exist in the file.

Rene

Gah! That was the problem. Thanks a lot! I’ll try to keep the silly mistakes to a minimum… :blush:

Cheers!