# Data types of branches from input trees all changed to floats in output

**URL:** <https://root-forum.cern.ch/t/data-types-of-branches-from-input-trees-all-changed-to-floats-in-output/47242>\
**Category:** TMVA\
**Created:** [October 14, 2021, 7:17pm UTC](https://root-forum.cern.ch/t/data-types-of-branches-from-input-trees-all-changed-to-floats-in-output/47242 "2021-10-14T19:17:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grmercadd](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@grmercadd](https://root-forum.cern.ch/u/grmercadd)\
**Post date:** [October 14, 2021, 7:17pm UTC](https://root-forum.cern.ch/t/data-types-of-branches-from-input-trees-all-changed-to-floats-in-output/47242/1 "2021-10-14T19:17:14Z")

</div>

Hi all,

I have TMVA output .root files, that i produced using the BDT classifier. All of the data types in the branches from the original input trees have been changed to floats in the output files. Is there a way to retain the original data types in the output?

---

<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 15, 2021, 7:13am UTC](https://root-forum.cern.ch/t/data-types-of-branches-from-input-trees-all-changed-to-floats-in-output/47242/2 "2021-10-15T07:13:14Z")

</div>

Hi,  
TMVA uses only float as data type, so I don’t think this is possible. But maybe you can rebuild yourself a new TTree with the original input types plus the output

Lorenzo
