Emittance calculation

Hi @faca87,
the code you shared is almost 3000 lines, that’s way too much for us to check it and debug it.

Given you have data in a ROOT file, you can read it using TTree, TTreeReader or RDataFrame (see e.g. this post) and perform any calculation you want with the values. The link points e.g. to a TTreeReader tutorial that shows how to read all values in your TTree in a loop.

I hope that helps!
Enrico

1 Like