# Restoring the original root file

**URL:** <https://root-forum.cern.ch/t/restoring-the-original-root-file/32101>\
**Category:** Newbie\
**Tags:** tree\
**Created:** [December 25, 2018, 7:15am UTC](https://root-forum.cern.ch/t/restoring-the-original-root-file/32101 "2018-12-25T07:15:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurav](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@Saurav](https://root-forum.cern.ch/u/Saurav)\
**Post date:** [December 25, 2018, 7:15am UTC](https://root-forum.cern.ch/t/restoring-the-original-root-file/32101/1 "2018-12-25T07:15:42Z")

</div>

I was given a root file, from which I had to calculate Pt and phi. So I went to write a file , where i recreated the original root file so that i can include Pt and phi. Later after compiling it i see that my data from original file are lost and i am getting some new data. Therefore now i want to get the original root file back again . How do i get the original file back?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 25, 2018, 9:03am UTC](https://root-forum.cern.ch/t/restoring-the-original-root-file/32101/2 "2018-12-25T09:03:35Z")

</div>

If you “recreated” it then you destroyed its old contents completely.  
You need to get a new copy of your original file from the same person who gave it to you previously.
