Info in <TFileMerger::MergeRecursive>: could not read object for key

Dear Experts,
I am using the hadd macro to merge some output files in a bash shell

hadd -f nominal/output_5.root nominal/output_5_mc16*.root
The merging fails with the following error:

R__unzip: error -3 in inflate (zlib)

Info in TFileMerger::MergeRecursive: could not read object for key {h_CutFlowUnw, h_CutFlowUnw}; skipping file nominal/output_5_mc16d.root

Error R__unzip_header: error in header. Values: 919c

Info in TFileMerger::MergeRecursive: could not read object for key {h_CutFlowWei, h_CutFlowWei}; skipping file nominal/output_5_mc16d.root

Any idea on what could be causing this issue?
Technical details about the root version and setting follow
_ROOT Version:6.18.04
_Platform:lxplus
_Compiler:-x86_64-centos7-gcc8-opt

Kind Regards,
Valentina

The most likely cause is that the file have been corrupted. Can you check if your can read them in the ‘normal’ (what ever that means for you :slight_smile: ) way?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.