And I get an error : warning: null passed to a callee that requires a non-null argument [-Wnonnull]
I thought that maybe there is a mistake in the directory itself, but when I do : rootls myFile.root:"ChargeStudies/GenVisTau_pt; positive charge; matched" I get an output GenVisTau_pt; positive charge; matched which should mean that there is no issue with the naming.
Thanks in advance.
P.S. The histogram in the file is not empty and when I created it, I used RDataFrame and Histo1D method.
I still get exactly same error as described in the post : warning: null passed to a callee that requires a non-null argument [-Wnonnull]
More detailed error:
#0 0x00007fee06f31a5a in wait4 () from /lib64/libc.so.6
#1 0x00007fee06eaf0bb in do_system () from /lib64/libc.so.6
#2 0x00007fee075891b4 in TUnixSystem::StackTrace() () from /usr/lib64/root/libCore.so.6.24
#3 0x00007fee017cc480 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /usr/lib64/root/libCling.so
#4 0x00007fee017bfcb9 in cling_runtime_internal_throwIfInvalidPointer () from /usr/lib64/root/libCling.so
#5 0x00007fee0726e1ba in ?? ()
#6 0x0000561000000007 in ?? ()
#7 0x00007fee017bfbf0 in ?? () from /usr/lib64/root/libCling.so
#8 0x00007fee017bfbf0 in ?? () from /usr/lib64/root/libCling.so
#9 0x00007fee017bfbf0 in ?? () from /usr/lib64/root/libCling.so
#10 0x00007fee05fb7870 in ?? () from /usr/lib64/root/libRIO.so
#11 0x0000000000000065 in ?? ()
#12 0x0000000000000000 in ?? ()
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
No problem at all. Please try to avoid having spaces (and maybe semicolons, too) in the names of the histograms in the future This is always a pain in the neck.
Can you please have a look at this script and tell me if it is correct? I am trying to divide two histograms and plot the result with error bars, but as I noticed it does not matter if I put “E” option in the Draw because it anyway gives it with error bars and somehow when I add other options, like " L " it does not do anything…
Thank you for looking into this. Unfortunately, like this it still does not work, it has this error : error: cannot initialize a variable of type 'TDirectoryFile *' with an rvalue of type 'TDirectory *'
and if I change TDirectoryFile to TDirectory then the original error is there.
Solution suggested by @yus works well, for future I just will not use ; in the hist name anymore…