# Do the cuts for my TMVA training affect the weights I chose?

**URL:** <https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383>\
**Category:** TMVA\
**Created:** [June 21, 2023, 2:47pm UTC](https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383 "2023-06-21T14:47:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alo/32/33312_2.png) [@Alo](https://root-forum.cern.ch/u/Alo)\
**Post date:** [June 21, 2023, 2:47pm UTC](https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383/1 "2023-06-21T14:47:45Z")

</div>

Hi everyone,

I’m using TMVA Root on several samples (Signal vs Backgrounds). In inputs, I specified a weight for every background for the training to make my sample statistics fit with the reality. But, I also applied some cuts for the training in the PrepareTrainingAndTestTree method. Then these cuts affect the statistic of my samples. My question is : Does TMVA take into account the cuts and modify the existing weights to keep the same kind of statistic before the cuts ?

Thanks !

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 22, 2023, 7:13am UTC](https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383/2 "2023-06-22T07:13:57Z")

</div>

I guess @moneta can help you.

---

<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:** [June 22, 2023, 10:36am UTC](https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383/3 "2023-06-22T10:36:32Z")

</div>

Hi,

I don’t think the cuts will affect the weights. The weights are needed to rescale the backgrounds to take into account the correct proportions of them, which depends on their relative production rates. If, afterwards you apply some selection cuts, this should not affect these weights.

Lorenzo
