# Effficiency: TF1 vs directly evaluating a polynomial?

**URL:** <https://root-forum.cern.ch/t/effficiency-tf1-vs-directly-evaluating-a-polynomial/58420>\
**Category:** ROOT\
**Tags:** root\
**Created:** [March 7, 2024, 6:17am UTC](https://root-forum.cern.ch/t/effficiency-tf1-vs-directly-evaluating-a-polynomial/58420 "2024-03-07T06:17:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [March 7, 2024, 3:49pm UTC](https://root-forum.cern.ch/t/effficiency-tf1-vs-directly-evaluating-a-polynomial/58420/5 "2024-03-07T15:49:36Z")

</div>

Hi,

I think the best way, if you want to go for the vectorized approach, is to use RDataFrame and not TTreeReader, as mentioned above.

Best,  
Danilo

---

_[View the full topic](https://root-forum.cern.ch/t/effficiency-tf1-vs-directly-evaluating-a-polynomial/58420)._
