# How to search for a value in ntuple and get the index?

**URL:** <https://root-forum.cern.ch/t/how-to-search-for-a-value-in-ntuple-and-get-the-index/32095>\
**Category:** ROOT\
**Created:** [December 24, 2018, 6:48pm UTC](https://root-forum.cern.ch/t/how-to-search-for-a-value-in-ntuple-and-get-the-index/32095 "2018-12-24T18:48:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 25, 2018, 9:35am UTC](https://root-forum.cern.ch/t/how-to-search-for-a-value-in-ntuple-and-get-the-index/32095/5 "2018-12-25T09:35:20Z")

</div>

See “Saving the result of Draw to a [TEventList](https://root.cern.ch/doc/master/classTEventList.html), a [TEntryList](https://root.cern.ch/doc/master/classTEntryList.html) or a [TEntryListArray](https://root.cern.ch/doc/master/classTEntryListArray.html)” and then " Using a [TEventList](https://root.cern.ch/doc/master/classTEventList.html), [TEntryList](https://root.cern.ch/doc/master/classTEntryList.html) or [TEntryListArray](https://root.cern.ch/doc/master/classTEntryListArray.html) as Input" in the [TTree::Draw](https://root.cern.ch/doc/master/classTTree.html#a73450649dc6e54b5b94516c468523e45) method description.

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-search-for-a-value-in-ntuple-and-get-the-index/32095)._
