# Data selection

**URL:** <https://root-forum.cern.ch/t/data-selection/60574>\
**Category:** Newbie\
**Created:** [August 23, 2024, 1:37am UTC](https://root-forum.cern.ch/t/data-selection/60574 "2024-08-23T01:37:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wajda](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/roy_wajda/32/37062_2.png) [@Roy\_Wajda](https://root-forum.cern.ch/u/Roy_Wajda)\
**Post date:** [August 23, 2024, 1:37am UTC](https://root-forum.cern.ch/t/data-selection/60574/1 "2024-08-23T01:37:30Z")

</div>

I have a root file, and i want to cut all that data in the mass file that isnt selected by TOS, so in the TOS file the value is greater than one. How do i do that

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [August 23, 2024, 6:48am UTC](https://root-forum.cern.ch/t/data-selection/60574/2 "2024-08-23T06:48:27Z")

</div>

Dear Roy,

I would suggest to have a look to the RDataFrame documentation: [ROOT: ROOT::RDataFrame Class Reference](https://root.cern/doc/master/classROOT_1_1RDataFrame.html)

Best,  
D
