# Graphical Cut Application

**URL:** <https://root-forum.cern.ch/t/graphical-cut-application/35960>\
**Category:** Newbie\
**Created:** [September 10, 2019, 12:08pm UTC](https://root-forum.cern.ch/t/graphical-cut-application/35960 "2019-09-10T12:08:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wellatiger](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wellatiger/32/15619_2.png) [@wellatiger](https://root-forum.cern.ch/u/wellatiger)\
**Post date:** [September 10, 2019, 12:08pm UTC](https://root-forum.cern.ch/t/graphical-cut-application/35960/1 "2019-09-10T12:08:47Z")

</div>

Dear Rooters,

I have a graphical cut saved as a root file and I want to apply this cut on a set of events inside an event loop. How to do that?

Thank you very much in advance

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [September 10, 2019, 1:14pm UTC](https://root-forum.cern.ch/t/graphical-cut-application/35960/2 "2019-09-10T13:14:16Z")

</div>

First retrieve the cut in the root file using Get.  
Then you can use it in TTree::Draw as a selection.

---

<div class="post-metadata">

**Author:** ![wellatiger](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wellatiger/32/15619_2.png) [@wellatiger](https://root-forum.cern.ch/u/wellatiger)\
**Post date:** [September 10, 2019, 3:43pm UTC](https://root-forum.cern.ch/t/graphical-cut-application/35960/3 "2019-09-10T15:43:22Z")

</div>

Thank you very much for your reply. Actually I found `IsInside(x,y)` method that can be applied inside the event loop.

Kind Regards,
