# 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:** 10

<div class="post-metadata">

**Author:** ![KillianUB](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/46a35a/32.png) [@KillianUB](https://root-forum.cern.ch/u/KillianUB)\
**Post date:** [May 7, 2024, 5:37pm UTC](https://root-forum.cern.ch/t/how-to-get-the-data-for-only-one-branch/59240/10 "2024-05-07T17:37:50Z")

</div>

Ok, i decided first to disable all my Branchs exepeted one, Psd\_All\_Shift wish is an histogram of my gammas/neutrons detected in fonction of Psd. So now that I only have the Branch I want, i could have scan it :

![image](https://root-forum.cern.ch/uploads/default/original/3X/6/5/65e05be5055f171e73c3ce36fb6dd4dc76f2b3f4.png)

![image](https://root-forum.cern.ch/uploads/default/original/3X/4/b/4b43ef7cae6108c3905243c1d3c04e4fb1cb68b4.png)

ANT THAT !! IS EXACLTY WHAT IM LOOKING FOR !!!  
The left column is my event number, the middle one is the number of my detector, the rigth one is the bin number on the event if it detcted, obviously 0 if not !  
On this pic, you can see that for the event number 2289, a gamma with an energy of 2018 x gain has been detected by the detctor number 27.

Now i need to exatract those data.  
Update, I know now that my data are ROOT::VecOps::RVec\<UShort\_t\>  
I’ve seen already [ROOT: ROOT::VecOps::RVec\< T \> Class Template Reference](https://root.cern/doc/master/classROOT_1_1VecOps_1_1RVec.html#example) but i would like some help becaus there is a lot of possibility and i’m a bit lost.

---

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