I was able to merge root files together with TChain using the Merge() function, but I could not access the merged tree. I can access the merged tree with TBrowser, but if I try to use a different TTree to access the new root file, I get a nullpointer.
The commands I used is shown below.
Here’s the output after the Merge() function when using “nominal”.
*** Break *** segmentation violation
Generating stack trace…
0x0000000119863c6c in TChain::Merge(TFile*, int, char const*) (in libTree.so) + 668
0x0000000116f50049 in
0x00000001084093ad in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (in libCling.so) + 317
0x0000000108408839 in cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) (in l
0x0000000108408204 in cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, cling::Value*, cling::Transaction**) (in libCling.so) + 100
0x000000010844387f in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) (in libCling.so) + 415
0x000000010831d56a in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (in libCling.so) + 3690
0x0000000107ebc293 in TRint::ProcessLineNr(char const*, char const*, int*) (in libRint.so) + 211
0x0000000107ebcddf in TRint::HandleTermInput() (in libRint.so) + 671
0x000000010806f028 in TUnixSystem::CheckDescriptors() (in libCore.so) + 328
0x000000010806be4d in TMacOSXSystem::DispatchOneEvent(bool) (in libCore.so) + 429
0x0000000107fba2da in TSystem::InnerLoop() (in libCore.so) + 26
0x0000000107fba12b in TSystem::Run() (in libCore.so) + 203
0x0000000107f5eaf4 in TApplication::Run(bool) (in libCore.so) + 36
0x0000000107ebc14c in TRint::Run(bool) (in libRint.so) + 1372
0x0000000107eafe8f in main (in root.exe) + 79
0x00007fff974ba5c9 in start (in libdyld.dylib) + 1
Even with that file it should have worked (without ever mentioning the cycle ;1) and you really did not want to use the first cycle (;1) which is the older copy of the TTree meta-data.