# Storing pythia file in tree root

**URL:** <https://root-forum.cern.ch/t/storing-pythia-file-in-tree-root/36050>\
**Category:** ROOT\
**Created:** [September 17, 2019, 8:31am UTC](https://root-forum.cern.ch/t/storing-pythia-file-in-tree-root/36050 "2019-09-17T08:31:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 17, 2019, 8:37am UTC](https://root-forum.cern.ch/t/storing-pythia-file-in-tree-root/36050/2 "2019-09-17T08:37:31Z")

</div>

This question was already asked in this forum. See:

> [@Storing Pythia8 Events In A TTree](https://root-forum.cern.ch/t/storing-pythia8-events-in-a-ttree/13549):
>
> Hi, I’m using Pythia8 to generate some events and then I would like to use ROOT to analyze them. For this reason, I’m trying to get the Pythia8 plugin inside ROOT working. I looked at the pythia8.C tutorial, and I can not generate events without any problems. However I would also like to store them inside a TTree for future use. What is the recommended way to do this? I’ve looked at the pythiaExample.C tutorial, which does this for Pythia6. I thought that the core lines were: // Make a tree…

---

_[View the full topic](https://root-forum.cern.ch/t/storing-pythia-file-in-tree-root/36050)._
