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:

/afs/cern.ch/user/m/mackepr/public/EVNT.024150._00001.pool.root.1
/afs/cern.ch/user/m/mackepr/public/EVNT.024150._00002.pool.root.1

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.

Rene
chaintest.cpp (1.82 KB)

Cool, thanks. :slight_smile: