# Branch of Type Float16\_t

**URL:** <https://root-forum.cern.ch/t/branch-of-type-float16-t/34809>\
**Category:** ROOT\
**Created:** [June 25, 2019, 1:11pm UTC](https://root-forum.cern.ch/t/branch-of-type-float16-t/34809 "2019-06-25T13:11:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhoroub](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mhoroub](https://root-forum.cern.ch/u/mhoroub)\
**Post date:** [June 25, 2019, 1:11pm UTC](https://root-forum.cern.ch/t/branch-of-type-float16-t/34809/1 "2019-06-25T13:11:40Z")

</div>

Hi,  
I downloaded root from the master branch and currently I am testing branch with Float16\_t type,

I can see that vector\<Float16\_t\>; is not supported, only simple types are.  
Something else,  
is is possible to read branches with type Float16\_t using variable with normal float type ?  
Float\_t b;  
t-\>SetBranchAddress(“b”, &b);  
t-\>GetEntry (0);  
std::cout\<\<b\<\<std::endl;

I made a test in cling and it looks fine, but I am not sure it makes sense !

Cheers

---

<div class="post-metadata">

**Author:** ![Pnine](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@Pnine](https://root-forum.cern.ch/u/Pnine)\
**Post date:** [June 25, 2019, 1:43pm UTC](https://root-forum.cern.ch/t/branch-of-type-float16-t/34809/2 "2019-06-25T13:43:55Z")

</div>

Hi,

perhaps this tutorial can help you: [https://root.cern/doc/master/float16\_8C.html](https://root.cern/doc/master/float16_8C.html)  
It deals with writing and reading Float16\_t. In addition this doc of TTree is helpful: [https://root.cern.ch/doc/master/classTTree.html#addcolumnoffundamentaltypes](https://root.cern.ch/doc/master/classTTree.html#addcolumnoffundamentaltypes)

Cheers,  
P

---

<div class="post-metadata">

**Author:** ![mhoroub](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mhoroub](https://root-forum.cern.ch/u/mhoroub)\
**Post date:** [June 26, 2019, 11:02am UTC](https://root-forum.cern.ch/t/branch-of-type-float16-t/34809/3 "2019-06-26T11:02:59Z")

</div>

Thanks a lot Philippe,  
The tutorial is great, it help me a lot to understand how Float16\_t and Double32\_t work.  
I can see that Float16\_t Array[n] works fine but not vectors, in our root files we have vector not array I think it is very hard to change the format. Is there a possibility to support vector\<Float16\_t\> ?

Cheers  
Muhammad

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 10, 2019, 11:03am UTC](https://root-forum.cern.ch/t/branch-of-type-float16-t/34809/4 "2019-07-10T11:03:04Z")

</div>

Closed on July 10, 2019, 11:03am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 4, 2025, 10:29am UTC](https://root-forum.cern.ch/t/branch-of-type-float16-t/34809/5 "2025-07-04T10:29:52Z")

</div>

Opened on July 4, 2025, 10:29am UTC


