tutorialTMVABntupleRunII is an example to run cut optimization for B+ analysis in PbPb collisions at 5.02 TeV
- Set output directory in
doTMVA.sh
L8 with a path you have right to write.
OUTPUTDIR="/data/wangj/TutorialsSamples/tmvaBntupleRunII/outputs/"
- Run the macros
source doTMVA.sh
without any modification.
The default setting is cut optimization with BDT and CutsSA methods in pT range 7~10 and 10~15 GeV/c.
-
TMVAClassification.C
does machine learning to classify signal and background. - More details see the slides of previous tutorial tutorialTMVA.
macros/BDT.C
builds a tree with branch of BDT (or other MVA) value for each candidate.
doTMVA.sh
L149-L225.
-
readxml.cc
is for BDT method (which can be easily developed to be applicable for other methods). It produces BDT distribution, Efficiency vs. BDT cut value, S/sqrt(S+B) vs. BDT cut value, etc.
-
readxml_Cuts.cc
is for rectangular cuts. It produces S/sqrt(S+B) vs. Signal efficiency, etc.
- Printout for BDT and CutsSA, which are also saved by the macros.