Issues between MakeClass and my trees

Hi, I am using ROOT 6.02/10. I have two problems when I try creating a class with MakeClass from this ROOT file,

When I call MakeClass I get the following,

But even with those error messages the class is created. Unfortunately (as expected) it won’t compile when I do

To be able to compile it I have done two things:

  1. Remove the offending lines, which means I cannot use those variables.
  2. Add this line,
using namespace std;

The TestClass.h after those two naive patches is attached,

TestClass.h (81.3 KB)

Any help fixing these two issues would be very much appreciated.


Same problem as here: Reading a tree containing vector<TLorentzVector>

Thank you!