Opened 23 months ago
Last modified 21 months ago
#1570 new Bug
Erros while reading a delphes output file in root
Reported by: | echalbau | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
Dear all,
I am having the following issue with Delphes and ROOT:
After a doing a Madgraph event generation and running delphes I am not able to read the create file.
Once I open the file with ROOT in a CentOS 7 cluster I get the following warnings:
root [0]
Attaching file tag_1_events_delphes_card_ATLAS.root as _file0…
Warning in TClass::TClass: no dictionary for class LHEFEvent is available
Warning in TClass::TClass: no dictionary for class Event is available
Warning in TClass::TClass: no dictionary for class GenParticle is available
Warning in TClass::TClass: no dictionary for class SortableObject is available
Warning in TClass::TClass: no dictionary for class Track is available
Warning in TClass::TClass: no dictionary for class Tower is available
Warning in TClass::TClass: no dictionary for class Jet is available
Warning in TClass::TClass: no dictionary for class MissingET is available
Warning in TClass::TClass: no dictionary for class Electron is available
Warning in TClass::TClass: no dictionary for class Photon is available
Warning in TClass::TClass: no dictionary for class Muon is available
Warning in TClass::TClass: no dictionary for class ScalarHT is available
root [1]
afterwards I open the data and all histograms makes no sense. However, if a open the same file in a ubuntu computer I get no errors/warnings at any level.
After asking in the Root forum (link here: https://root-forum.cern.ch/t/fresh-installation-of-root-5-does-not-read-delphes-output-files-classes/53337), we realized that even manually loading the libraries inside root there is no successful read of the classes inside the file getting this result:
Warning in <TStreamerInfo::BuildCheck>:
The StreamerInfo of class Track read from file /lstore/titan/atlas/emogollon/MG5_aMC_v3_1_1/bin/mediator_production_14tev_no_decay/dm_simp_mass0gev_spin_1_minus_dileptonic/Events/run_01_decayed_1/tag_1_events_delphes_card_ATLAS.root
has the same version (=3) as the active class but a different checksum.
You should update the version to ClassDef(Track,4).
Do not try to write objects with the current class definition,
the files will not be readable.
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float C;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Mass;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float EtaOuter;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float PhiOuter;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float T;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float X;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Y;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Z;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float TOuter;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float XOuter;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float YOuter;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ZOuter;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Xd;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Yd;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Zd;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float L;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float D0;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float DZ;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float Nclusters;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float dNdx;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorP;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorPT;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorPhi;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorCtgTheta;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorT;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorD0;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorDZ;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorC;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorD0Phi;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorD0C;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorD0DZ;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorD0CtgTheta;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorPhiC;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorPhiDZ;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorPhiCtgTheta;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorCDZ;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorCCtgTheta;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
float ErrorDZCtgTheta;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
TRef Particle;
Warning in <TStreamerInfo::CompareContent>: The following data member of
the in-memory layout version 3 of class 'Track' is missing from
the on-file layout version 3:
int VertexIndex;
I basically recompiled Delphes libraries and still get this problem, which makes no sense after outputting the classes inside the root file, apparently there's no mistake (even the ubuntu PC reads everything ok). Therefore, as it was suggested in the link above, there might be a problem with Delphes libraries itself.
Is there any way to solve this problem? my version of Delphes is 3.4.1, in a CentOS 7 linux system and compiled with GCC 7.5
Thanks in advance.
Change History (2)
comment:1 by , 23 months ago
comment:2 by , 23 months ago
Yes, I understand that but I tried to link root with Delphes version that I used in Madgraph and still does not work.
I think MadGraph uses a newer version of Delphes (3.5.0) than the version of Delphes that you use to read the files (3.4.1).
I would recommend using the same version of Delphes to create the ROOT files and read them.