# Queries about TMVA Application

**URL:** <https://root-forum.cern.ch/t/queries-about-tmva-application/40000>\
**Category:** TMVA\
**Created:** [June 20, 2020, 12:36pm UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000 "2020-06-20T12:36:25Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [October 25, 2021, 9:32am UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/21 "2021-10-25T09:32:14Z")

</div>

Hi,  
Sorry , I am not sure which picture are you referring to. The tutorial TMVAClassificationApplication produces a root file , TMVApp.root, which contains the histogram showing the classifier output distribution, depending on which classifier you have chosen.  
You can get an output distribution using the TMVAGui which can run on the output file from the TMVAClassification.C tutorial. The output of the GUI will contain the output from signal and background events on the test and/or training data.

Lorenzo

---

<div class="post-metadata">

**Author:** ![faze75373046](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@faze75373046](https://root-forum.cern.ch/u/faze75373046)\
**Post date:** [October 25, 2021, 3:59pm UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/22 "2021-10-25T15:59:00Z")

</div>

first thank you a lot. i mean that in TMVApp.root (after root TMVAClassificationApplication.C) i could only get pictures like this

 ![1](https://root-forum.cern.ch/uploads/default/original/3X/c/9/c96b7a30f6b7d47e5c4425073c952fb287344eab.png),not picture with blue Signal and red Background.  
I can get pictures with blue Signal and red Background in TMVA.root after root TMVAClassification.C.  
hope your reply 😀

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [October 26, 2021, 7:43am UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/23 "2021-10-26T07:43:42Z")

</div>

Hi,  
You can run TMVAClassificationApplication on signal events and then on background events so you can get histograms for both categories, and then you can plot one over each other with different colours (e.g. blue and red)

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![faze75373046](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@faze75373046](https://root-forum.cern.ch/u/faze75373046)\
**Post date:** [October 27, 2021, 2:18am UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/24 "2021-10-27T02:18:09Z")

</div>

thank you very much! 🙂 I get what’s your mean. i try to do that.

Regards,  
Zhaoling Zhang

---

<div class="post-metadata">

**Author:** ![faze75373046](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@faze75373046](https://root-forum.cern.ch/u/faze75373046)\
**Post date:** [November 5, 2021, 4:16pm UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/25 "2021-11-05T16:16:27Z")

</div>

Hi,  
sorry,i run TMVAClassification.C with putting my signal and background events,then get weights.  
After that,i run TMVAClassificationApplication.C with putting my real data and weights,but only get picture with one line (e.g. not blue and red). i donot understand the picture with one line ,even reading TMVAusersguide. thank you !  
Regards,  
Zhaoling Zhang

---

<div class="post-metadata">

**Author:** ![faze75373046](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@faze75373046](https://root-forum.cern.ch/u/faze75373046)\
**Post date:** [November 7, 2021, 6:57am UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/26 "2021-11-07T06:57:49Z")

</div>

hi,  
Sorry,now i understand the picture after running TMVAClassificationApplication.  
Last question,i want get picture like this ,so i need put more than one signal ?

 ![87fdbc13fe73297d52d563423c7c4b8](https://root-forum.cern.ch/uploads/default/original/3X/5/5/55e570a85b17157013f73af5c2023f7863ebdc62.png)

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [November 9, 2021, 5:21pm UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000/27 "2021-11-09T17:21:42Z")

</div>

Yes, in this case you have the output for the separate background components, normalized to the same luminosity (e.g. 2.05 fb-1)

Lorenzo

[Previous page](https://root-forum.cern.ch/t/queries-about-tmva-application/40000.md?page=1)
