Creating a tree after getting a tree from a file

Hello All!

I am getting a segmentation violation and I am not sure where it comes from. I have a tree in a file so I get it loop through it, get the values, and all is good. Now I added a little code to create a new tree, just a plain empty tree. As soon as this tree is created, if I try to GetEntry from the first tree, I get a seg fault.

Any idea why this is happening and how I can get around it?

Thanks!

Hi,

we need the code to be able to understand what’s happening.

Cheers, Axel.

Hello! Axel,

I realize that the question was sufficiently vague. As I was preparing a short script which would reproduce the problem I found the solution. I had nothing to do with root.

Thanks for the reply.