# How to convert CSV file to root file for further analysis

**URL:** <https://root-forum.cern.ch/t/how-to-convert-csv-file-to-root-file-for-further-analysis/42253>\
**Category:** Newbie\
**Created:** [November 12, 2020, 1:28am UTC](https://root-forum.cern.ch/t/how-to-convert-csv-file-to-root-file-for-further-analysis/42253 "2020-11-12T01:28:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manu\_Francis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/manu_francis/32/23957_2.png) [@Manu\_Francis](https://root-forum.cern.ch/u/Manu_Francis)\
**Post date:** [November 12, 2020, 1:28am UTC](https://root-forum.cern.ch/t/how-to-convert-csv-file-to-root-file-for-further-analysis/42253/1 "2020-11-12T01:28:01Z")

</div>

Hi,  
I am new to ROOT. I used ROOT in GATE simulation ([http://www.opengatecollaboration.org/UsersGuide](http://www.opengatecollaboration.org/UsersGuide)) for analysing the radiation counts in the detector.

Now I have some data as CSV file from another simulation software. This data contains x,y,z points of gamma radiation at the detector. I want to analyze this data using ROOT. How can I convert CSV file to root file?

Thanks in Advance !  
Manu

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [November 12, 2020, 5:43am UTC](https://root-forum.cern.ch/t/how-to-convert-csv-file-to-root-file-for-further-analysis/42253/2 "2020-11-12T05:43:07Z")

</div>

Have a look at the guides and tutorials [here](https://root.cern/get_started/).  
You can read and save in different ways (histograms, trees,…); for your case maybe you can use the “basic2.C” tutorial [here](https://root.cern/doc/master/group __tutorial__ tree.html).
