# How to get the data for only one branch

**URL:** <https://root-forum.cern.ch/t/how-to-get-the-data-for-only-one-branch/59240>\
**Category:** Newbie\
**Created:** [May 6, 2024, 2:43pm UTC](https://root-forum.cern.ch/t/how-to-get-the-data-for-only-one-branch/59240 "2024-05-06T14:43:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [May 7, 2024, 4:53pm UTC](https://root-forum.cern.ch/t/how-to-get-the-data-for-only-one-branch/59240/9 "2024-05-07T16:53:56Z")

</div>

Dear @KillianUB ,

I will repeat the same question. Are you sure the `PsdNdRShift` from your tree actually contains `UShort_t` data? Keep in mind that you cannot in general read data of type `A` into data of type `B`, and this is true for any programming language and any programming tool (unless of course you or somebody else provided some conversion machinery).

Please, study your dataset schema before going forward with any operation. You have many ways to do this, for example you can `TTree::Print` or even ask your supervisor about it.

Cheers,  
Vincenzo

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-get-the-data-for-only-one-branch/59240)._
