# MVA distribution for separate background instead of total

**URL:** <https://root-forum.cern.ch/t/mva-distribution-for-separate-background-instead-of-total/46401>\
**Category:** TMVA\
**Created:** [August 23, 2021, 7:59am UTC](https://root-forum.cern.ch/t/mva-distribution-for-separate-background-instead-of-total/46401 "2021-08-23T07:59:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huiling110](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@huiling110](https://root-forum.cern.ch/u/huiling110)\
**Post date:** [August 23, 2021, 7:59am UTC](https://root-forum.cern.ch/t/mva-distribution-for-separate-background-instead-of-total/46401/1 "2021-08-23T07:59:47Z")

</div>

Dear expert,

When using TMVA training for multiple backgrounds( for example TT and QCD), I find the MVA score distribution for total backgrounds(TT+QCD) in the output root file. But what if I want to have a look at the MVA distribution of TT and QCD? how can I get their distribution ?

Thanks for taking time to read my quetions!

By the way I am using ROOT 6.22.00

Best,  
Huiling

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [August 24, 2021, 7:45am UTC](https://root-forum.cern.ch/t/mva-distribution-for-separate-background-instead-of-total/46401/2 "2021-08-24T07:45:21Z")

</div>

Hi @huiling110 ,  
we need @moneta 's help, let’s ping him.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![huiling110](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/35a633/32.png) [@huiling110](https://root-forum.cern.ch/u/huiling110)\
**Post date:** [August 26, 2021, 2:54am UTC](https://root-forum.cern.ch/t/mva-distribution-for-separate-background-instead-of-total/46401/3 "2021-08-26T02:54:02Z")

</div>

Thank you, @eguiraud !

I think I kind of know how to solve this problem, which is using TMVAClassificationApplication.C to run over various background to get independent distribution.

But I found something a bit wield in the TMVAClassificationApplication.C code. The interpreter tells me that I could only use Float\_t for reader-\>AddVariable() parameter, actually the variable branch that I saved is Double\_t and I prefer the more accurate Double\_t. Why not use Double\_t for the type of reader-\>AddVariable() input?

Still, I am using ROOT 6.22.00

Many thanks!

Cheers,  
Huiling
