If you execute the line below, your will see that no branch in your tree is an array (and your current code assumes that they are for almost all of them):
AnaTree->Print();
You should really start with a ROOT generated “analysis skeleton”.
If you execute the line below, your will see that no branch in your tree is an array (and your current code assumes that they are for almost all of them):
AnaTree->Print();
You should really start with a ROOT generated “analysis skeleton”.