# TMVA factory weight

**URL:** <https://root-forum.cern.ch/t/tmva-factory-weight/21897>\
**Category:** TMVA\
**Created:** [September 20, 2016, 8:17am UTC](https://root-forum.cern.ch/t/tmva-factory-weight/21897 "2016-09-20T08:17:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 20, 2016, 8:17am UTC](https://root-forum.cern.ch/t/tmva-factory-weight/21897/1 "2016-09-20T08:17:25Z")

</div>

Dear experts,

- in TMVAClassification.C: [root.cern.ch/doc/v606/TMVAClass … tml#l00059](https://root.cern.ch/doc/v606/TMVAClassification_8C_source.html#l00059)  
line 223 for the methods AddSignalTree(trees, weight) I wonder what “weight” refers to?  
Is it for event normalisation vs cross section? If yes at line 267, for the method SetBackgroundWeightExpression(weight), what is this new weight?
- So are these weight different? if yes they refers to what? if not, should we apply the weight only in one of these methods?  
Regards

---

<div class="post-metadata">

**Author:** ![sergei](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@sergei](https://root-forum.cern.ch/u/sergei)\
**Post date:** [September 26, 2016, 10:39am UTC](https://root-forum.cern.ch/t/tmva-factory-weight/21897/2 "2016-09-26T10:39:13Z")

</div>

Cross-posted and discussed here:

[sourceforge.net/p/tmva/mailman/ … /35379520/](https://sourceforge.net/p/tmva/mailman/message/35379520/)

Sergei

---

<div class="post-metadata">

**Author:** ![calbet](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@calbet](https://root-forum.cern.ch/u/calbet)\
**Post date:** [September 28, 2016, 2:52pm UTC](https://root-forum.cern.ch/t/tmva-factory-weight/21897/3 "2016-09-28T14:52:36Z")

</div>

Dear Sergei,

ok, thank you for your answer.

Regards
