Can't access variable in TChain

Hi there

I am having trouble accessing a TChain. I can define branches and add files just fine. The program can also tell me how many entries the TChain contains. I can even do a chain->Show(entry). However, when I try to actually access the contents of the variables I see nothing.

The chain is “CollectionTree” and can be found in two root files here:


I have enclosed the minimal program that reproduces the problem.

What am I missing here?
chaintest.cpp (1.48 KB)

Many problems in your code. Look at the differences in most lines.

chaintest.cpp (1.82 KB)

Cool, thanks. :slight_smile: