Hello,
since I installed ROOT v6.10.00 in my mac running under macOS High Sierra, I cannot use my old macros any more and I do not understand why. Even the easiest commands don’t always work, like for instance if I just try to create a histogram from a ntuple in a Tree by:
root [0]
Attaching file data_Xiplussel_V2.root as _file0...
(TFile *) 0x7fb7705ccde0
root [1] event->Draw("sqrt(pi1px**2+pi1py**2+pi1pz**2)>>pi1mom(50,0,0.7)");
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [2] TH1F *pi1mom = new TH1F(*pi1mom);
this results in:
[/Applications/root_v6.10.00/lib/libCling.so] cling_runtime_internal_throwIfInvalidPointer >(no debug info)
[] (no debug info)
[/Applications/root_v6.10.00/lib/libCling.so] >cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction const&) (no >debug info)
[/Applications/root_v6.10.00/lib/libCling.so] >cling::Interpreter::executeTransaction(cling::Transaction&) (no debug info)
[/Applications/root_v6.10.00/lib/libCling.so] >cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, >cling::IncrementalParser::EParseResult, >llvm::PointerLikeTypeTraitscling::Transaction*, >llvm::PointerIntPairInfo<cling::Transaction*, 2u, >llvm::PointerLikeTypeTraitscling::Transaction* > >&, bool) (no debug info)
[/Applications/root_v6.10.00/lib/libCling.so] >cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no >debug info)
[/Applications/root_v6.10.00/lib/libCling.so] >cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, >std::__1::char_traits, std::__1::allocator > const&, >cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug >info)
[/Applications/root_v6.10.00/lib/libCling.so] >cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits, >std::__1::allocator > const&, cling::Value*, cling::Transaction**, bool) (no debug >info)
[/Applications/root_v6.10.00/lib/libCling.so] cling::MetaProcessor::process(char const*, >cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Applications/root_v6.10.00/lib/libCling.so] >HandleInterpreterException(cling::MetaProcessor*, char const*, >cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Applications/root_v6.10.00/lib/libCling.so] TCling::ProcessLine(char const*, >TInterpreter::EErrorCode*) (no debug info)
[/Applications/root_v6.10.00/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, >int*) (no debug info)
[/Applications/root_v6.10.00/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/Applications/root_v6.10.00/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug >info)
[/Applications/root_v6.10.00/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) >(no debug info)
[/Applications/root_v6.10.00/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Applications/root_v6.10.00/lib/libCore.so] TSystem::Run() (no debug info)
[/Applications/root_v6.10.00/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Applications/root_v6.10.00/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Applications/root_v6.10.00/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
libc++abi.dylib: terminating with uncaught exception of type cling::InvalidDerefException: >Trying to dereference null pointer or trying to call routine taking non-null arguments
Can anyone tell my why?
thanks!
C