# Sum weights in TTree

**URL:** <https://root-forum.cern.ch/t/sum-weights-in-ttree/35014>\
**Category:** ROOT\
**Tags:** tree\
**Created:** [July 5, 2019, 4:04pm UTC](https://root-forum.cern.ch/t/sum-weights-in-ttree/35014 "2019-07-05T16:04:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [July 5, 2019, 4:49pm UTC](https://root-forum.cern.ch/t/sum-weights-in-ttree/35014/4 "2019-07-05T16:49:58Z")

</div>

See [this thread](https://root-forum.cern.ch/t/speeding-up-the-pyroot-loop-over-ttree-with-rdataframe/34634/9), the event loop is much faster with RDF, but for small datasets you’ll spend most of the time setting up RDF.

---

_[View the full topic](https://root-forum.cern.ch/t/sum-weights-in-ttree/35014)._
