I make two TChains into friends and then try to access the branches in a loop as normal (code is below), but GetEntry() crashes (seg fault below also). Note that the two trees have exactly the same number of entries. Any hints would be much appreciated!
I am still seeing this crash. What is wrong with vectors of vectors? Everyone is having this problem. I event tried:
#ifdef __MAKECINT__
#pragma link C++ class vector<float>+;
#pragma link C++ class vector<int>+;
#pragma link C++ class vector<vector<double> >+;
#pragma link C++ class vector<vector<double,allocator<double> > >;
#endif
[quote]*** Break *** segmentation violation
(no debugging symbols found)
Using host libthread_db library “/lib64/tls/libthread_db.so.1”.
Attaching to program: /proc/22636/exe, process 22636
(no debugging symbols found)…done.
[Thread debugging using libthread_db enabled]
[New Thread 4148336864 (LWP 22636)]
0xffffe410 in __kernel_vsyscall () #1 0x007770f3 in __waitpid_nocancel () from /lib/tls/libc.so.6 #2 0x007207b9 in do_system () from /lib/tls/libc.so.6 #3 0x0082898d in system () from /lib/tls/libpthread.so.0 #4 0xf7b92adf in TUnixSystem::Exec () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #5 0xf7b984ed in TUnixSystem::StackTrace () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #6 0xf7b951aa in TUnixSystem::DispatchSignals () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #7 0xf7b95238 in SigHandler () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #8 0xf7b94485 in sighandler () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #9 #10 0xf584bef0 in ROOT::TCollectionProxyInfo::Type<std::vector<float, std::allocator > >::clear () from /u1/fizisist/JetTowerBuilder/codigo/./SimpleJetAnalysis_C.so #11 0xf6ba59fb in TGenCollectionProxy::Clear () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRIO.so #12 0xf6badd92 in TGenCollectionStreamer::Streamer () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRIO.so #13 0xf6b868b9 in TCollectionStreamer::Streamer () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRIO.so #14 0xf6b87315 in TCollectionClassStreamer::operator() () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRIO.so #15 0xf7b71cbb in TClass::Streamer () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #16 0xf6b81aa5 in TBufferFile::ReadFastArray () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRIO.so #17 0xf6bf8ba5 in TStreamerInfo::ReadBuffer<char**> () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRIO.so #18 0xf5b8ccc9 in TBranchElement::ReadLeaves () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libTree.so #19 0xf5b85817 in TBranch::GetEntry () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libTree.so #20 0xf5b8aa5b in TBranchElement::GetEntry () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libTree.so #21 0xf5bc839d in TTree::GetEntry () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libTree.so #22 0xf5b9d7c7 in TChain::GetEntry () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libTree.so #23 0xf5846435 in SimpleJetAnalysis () from /u1/fizisist/JetTowerBuilder/codigo/./SimpleJetAnalysis_C.so #24 0xf58476d7 in G__fileFaO7CP__0_1345 () from /u1/fizisist/JetTowerBuilder/codigo/./SimpleJetAnalysis_C.so #25 0xf749b95b in Cint::G__ExceptionWrapper () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #26 0xf75510bd in G__call_cppfunc () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #27 0xf75373a5 in G__interpret_func () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #28 0xf75264ea in G__getfunction () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #29 0xf750be7c in G__getitem () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #30 0xf750e99f in G__getexpr () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #31 0xf757ddc7 in G__exec_statement () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #32 0xf74f9d7c in G__exec_tempfile_core () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #33 0xf74fb0b7 in G__exec_tempfile_fp () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #34 0xf7587494 in G__process_cmd () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCint.so #35 0xf7b65ff3 in TCint::ProcessLine () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #36 0xf7ad39fa in TApplication::ProcessLine () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #37 0xf74451a8 in TRint::HandleTermInput () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRint.so #38 0xf7443840 in TTermInputHandler::Notify () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRint.so #39 0xf7445a56 in TTermInputHandler::ReadNotify () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRint.so #40 0xf7b9146a in TUnixSystem::CheckDescriptors () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #41 0xf7b95688 in TUnixSystem::DispatchOneEvent () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #42 0xf7b2917c in TSystem::InnerLoop () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #43 0xf7b28f42 in TSystem::Run () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #44 0xf7ad3ae6 in TApplication::Run () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libCore.so #45 0xf7443fb2 in TRint::Run () from /afs/cern.ch/atlas/software/releases/14.2.25/sw/lcg/external/root/5.18.00d/slc4_ia32_gcc34/root/lib/libRint.so #46 0x08048d36 in main ()[/quote]