# Writing a TTree with a complex structure (e.g. Delphes TTrees) using RDataFrames

**URL:** <https://root-forum.cern.ch/t/writing-a-ttree-with-a-complex-structure-e-g-delphes-ttrees-using-rdataframes/39426>\
**Category:** ROOT\
**Tags:** tree, rdataframe\
**Created:** [May 15, 2020, 10:55am UTC](https://root-forum.cern.ch/t/writing-a-ttree-with-a-complex-structure-e-g-delphes-ttrees-using-rdataframes/39426 "2020-05-15T10:55:58Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jndrf](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@jndrf](https://root-forum.cern.ch/u/jndrf)\
**Post date:** [May 25, 2020, 11:58am UTC](https://root-forum.cern.ch/t/writing-a-ttree-with-a-complex-structure-e-g-delphes-ttrees-using-rdataframes/39426/7 "2020-05-25T11:58:33Z")

</div>

Hi Enrico,

thank you for the reply. I am using the last method from your list for now, this works.  
On a quick glance, the contents of the file look sensible (at least the cut is applied correctly), but I haven’t made a thorough check.

I don’t have a self compiled version of ROOT at hand right now, but I think I can get around to try the PR this week.

Cheers,

Jonas

---

_[View the full topic](https://root-forum.cern.ch/t/writing-a-ttree-with-a-complex-structure-e-g-delphes-ttrees-using-rdataframes/39426)._
