Many thanks for the suggestion
Unfortunately adding this made the code crash (the hints for the crash below).
I also tried to add the following at the beginning of the code, but it didn’t help: #include <TF1.h> #include <TMath.h> #include <TFile.h> #include <stdio.h>
Looking forward for more ideas
— crash details — #5 0x00007f41ce962560 in _nl_C_LC_MEASUREMENT () from /lib64/libc.so.6 #6 0x00007f41cf804168 in ?? () #7 0x0000000001fe0b00 in ?? () #8 0x00007f41cf6fcdee in _dl_fixup () from /lib64/ld-linux-x86-64.so.2 #9 0x00007f41cf7049ea in _dl_runtime_resolve_xsave () from /lib64/ld-linux-x86-64.so.2 #10 0x00007f41cee873f8 in std::string::_Rep::_S_empty_rep_storage () from /lib64/libstdc++.so.6 #11 0x00000000030a3ec8 in ?? () #12 0x0000000002db00b0 in ?? () #13 0x00007fff0d5ebcf0 in ?? () #14 0x00007f41cec3dcd9 in std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) () from /lib64/libstdc++.so.6 #15 0x00007f41cf0da4fe in char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator const&, std::forward_iterator_tag) () from /usr/lib64/root/libCore.so.6.22 #16 0x0000000002be5bc8 in ?? () #17 0x0000000001f94600 in ?? () #18 0xf6f4b02152133200 in ?? () #19 0x000000000222d8a0 in ?? () #20 0x0000000002cfc188 in ?? () #21 0x00007fff0d5ebd20 in ?? () #22 0x00007f41cf8020ba in ?? () #23 0x0000000000000020 in ?? () #24 0x0000000001f8d690 in ?? () #25 0x0000000002ed8040 in ?? () #26 0x00007f41c923fedc in void std::vector<TCling::MutexStateAndRecurseCount, std::allocatorTCling::MutexStateAndRecurseCount >::_M_emplace_back_aux<>() () from /usr/lib64/root/libCling.so
#27 0x00007f41c920ba90 in TCling::RewindInterpreterMutex() () from /usr/lib64/root/libCling.so #28 0x00007f41c9286627 in cling::MultiplexInterpreterCallbacks::EnteringUserCode() () from /usr/lib64/root/libCling.so #29 0x00007f41c92e3ecb in cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const () from /usr/lib64/root/libCling.so #30 0x00007f41c928798c in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /usr/lib64/root/libCling.so #31 0x00007f41c928873e in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/lib64/root/libCling.so #32 0x00007f41c9288d32 in cling::Interpreter::echo(std::string const&, cling::Value*) () from /usr/lib64/root/libCling.so #33 0x00007f41c932a7e9 in cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value*) () from /usr/lib64/root/libCling.so #34 0x00007f41c93371c2 in cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /usr/lib64/root/libCling.so #35 0x00007f41c933758e in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /usr/lib64/root/libCling.so #36 0x00007f41c9324841 in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /usr/lib64/root/libCling.so #37 0x00007f41c91fe2ea in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/lib64/root/libCling.so