TMVA code issues for fitting data using BDT

hello Dr @moneta ,
Here i attach all used data in a comressed folder that includes TMVcode and other rootfiles

Thanks,
Ahmed

TMVAHist.tar.gz (791.4 KB)

Hi,

Your script does not work when applying the cuts, because no events pass the cuts. The error message you are getting is clear.
Again, if you want to continue use the histograms as input data, you should be careful on what you use. I hope my example is clear enough. The bin content IS NOT the variable, but just a weight. The variable is represented by the bin center (the x values) of the histogram. It makes sense than when applying a cut on the bin content nothing is probably left.

Lorenzo

Hello Dr @moneta ,
Thank you for helping to run my code successfully with cuts.I have a question ,if i use
same analysis (tree= Delphes) instead of (histogram) then apply TMVA so that i can add new branches that not exist on Delphes tree what i do?. Is i create an other newTree
so that can be cloned the old(TTreeDelphes) ?.Could you explain me the solution of problem as example such as the previous?. To understand me completely ,please open my attached files.

Thanks,
Ahmed

SetupTMVA.C (5.6 KB)
treeAnalysis.C (9.6 KB)
treeAnalysis.h (83.0 KB)

Hi Dr @moneta ,
Could you find a solution for my issue ,please?

Thanks,
Ahmed