# Calculating new terms from a given root file

**URL:** <https://root-forum.cern.ch/t/calculating-new-terms-from-a-given-root-file/32104>\
**Category:** Newbie\
**Created:** [December 26, 2018, 4:51am UTC](https://root-forum.cern.ch/t/calculating-new-terms-from-a-given-root-file/32104 "2018-12-26T04:51:58Z")\
**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 26, 2018, 4:51am UTC](https://root-forum.cern.ch/t/calculating-new-terms-from-a-given-root-file/32104/1 "2018-12-26T04:51:58Z")

</div>

I have a file which contains the data regarding event, multiplicity, no. of particle taking part, px,py,pz. From this given data I need to calculate… pt, and phi . How do i do that?

---

<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 26, 2018, 10:48am UTC](https://root-forum.cern.ch/t/calculating-new-terms-from-a-given-root-file/32104/2 "2018-12-26T10:48:20Z")

</div>

> [@Best way for introducing myself to ROOT (very noob)](https://root-forum.cern.ch/t/best-way-for-introducing-myself-to-root-very-noob/31164/2):
>
> Try with the “[ROOT Primer](https://root.cern.ch/root-user-guides-and-manuals)”.
