# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarunsharma](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tarunsharma/32/20664_2.png) [@tarunsharma](https://root-forum.cern.ch/u/tarunsharma)\
**Post date:** [September 17, 2019, 8:31am UTC](https://root-forum.cern.ch/t/storing-pythia-file-in-tree-root/36050/1 "2019-09-17T08:31:43Z")

</div>

i am not getting how to store pythia events in tree  
please help me

---

<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…

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 1, 2019, 8:37am UTC](https://root-forum.cern.ch/t/storing-pythia-file-in-tree-root/36050/3 "2019-10-01T08:37:34Z")

</div>

Closed on October 1, 2019, 8:37am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
