Error with TMVAClassificationApplication.C

Hi,

I am trying to do the TMVA tutorial (specifically using a BDT) using a root file of mine. TMVAClassification.C is working well with both the example file, tmva_class_example.root, and mine, outputTrees.root (for convenience, I named the branches so that they would match the ones in the example file). However, TMVAClassificationApplication.C only works properly with the example root file. When I run it with my file, it reads the leaves for all of the events as the same value (and it is a weird value that I am not sure where it is getting it from), and therefore the result from the BDT is the same for all of the events, which is not what we expect. Here I attach the screenshots of the output I get from the TMVAClassificationApplication.C with both files, as well as the code and the files.

Does anyone know what the error might be? The code seems to be fine as it is working properly with the example root file, and my root file, when opened by itself, also looks fine (the leaves for different events have different values). Any help would be really appreciated.

Thank you very much,
Santiago Ampudia



tmva_class_example.root (201.9 KB)
outputTrees.root (222.0 KB)
TMVAClassification.C (27.5 KB)
TMVAClassificationApplication.C (22.3 KB)

I think @moneta can help you.