I have produced the attached ntuple (containing 2 events, with several vector and map branches).
When developing my ntupling code, I tested it using a CINT macro, using
ROOT 5.24/00 (trunk@29257, Jun 30 2009, 09:23:51 on linux)
CINT/ROOT C/C++ Interpreter version 5.17.00
Accessing the information worked fine, also:
Printing out information in CINT works fine.
However if I use a standalone gmake-compiled code outside root, it does NOT work and gives a segfault.
I attach all relevant code.
root  .L Ntuple2.C
root  Ntuple2 t
root  t.Loop()
What does not work:
mv Makefile.txt Makefile
./MainAnalysis_v3 input.txt te
(programm works with input text file and then output string)
I know that sometimes there are segfault problems, if in the .h file, a vector branch is mixed inbetween normal integers. I have tried reordering, but have not succeeded so far.
I am very puzzled, especially since CINT works and gmake NOT…