Dnadamage1 Geant4 example - unable to analyse output.root file

Good day. I am trying to compile, run and analyse resuts, obtained by Geant4 example dnadamage1.
root version - ROOT 6.24/06
Geant4 version - geant4-10-07-patch-02
OS - Ubuntu 20.04 LS

This example is successfully compiled and run, it outputs file output.root ( output.root — Яндекс.Диск )
Calculation is finished successfully.

But then i am trying to analyse output.root file, errors are occured:
Here is the log - root_out.txt — Яндекс.Диск

$ root
  | Welcome to ROOT 6.24/06                         |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Sep 02 2021, 14:20:23                 |
  | From tags/v6-24-06@v6-24-06                                      |
  | With                                                             |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
root [0] .X analysis.C
hadd Target file: output.root
Error in <TFile::TFile>: file root-6.24.06/output_*.root does not exist
Error in <TFileMerger::AddFile>: cannot open file output_*.root
hadd exiting due to error in output_*.root
#0  0x00007efc384a4dba in __GI___wait4 (pid=12789, stat_loc=stat_loc
entry=0x7ffe60d0e848, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x00007efc384a4d7b in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffe60d0e848, options=options
entry=0) at waitpid.c:38
#2  0x00007efc384140e7 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:172
#3  0x00007efc38ad20ee in TUnixSystem::StackTrace() () from /root-6.24.06/lib/libCore.so.6.24
#4  0x00007efc340b85a0 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /root-6.24.06/lib/libCling.so
#5  0x00007efc340abce2 in cling_runtime_internal_throwIfInvalidPointer () from /root-6.24.06/lib/libCling.so
#6  0x00007efc31fff538 in ?? ()
#7  0x00007efc32001390 in ?? ()
#8  0x0000000000000000 in ?? ()
Error in <TRint::HandleTermInput()>: cling::InvalidDerefException caught: Trying to dereference null pointer or trying to call routine taking non-null arguments
root [1]

Is “analysis.C” your own code or part of the example? The error it’s showing should be pretty obvious:

Do you have a subdirectory “root-6.24.06” in your work area? If so, does it contain a bunch of “output_XXXX.root” files? If not, where are they?

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