# Update Entry in TTree branch

**URL:** <https://root-forum.cern.ch/t/update-entry-in-ttree-branch/37666>\
**Category:** ROOT\
**Created:** [January 22, 2020, 9:06am UTC](https://root-forum.cern.ch/t/update-entry-in-ttree-branch/37666 "2020-01-22T09:06:49Z")\
**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:** [January 22, 2020, 9:11am UTC](https://root-forum.cern.ch/t/update-entry-in-ttree-branch/37666/2 "2020-01-22T09:11:51Z")

</div>

This question was already asked on this forum, for instance here:

> [@Multiplying a Branch with a coefficient](https://root-forum.cern.ch/t/multiplying-a-branch-with-a-coefficient/2474/4):
>
> [quote]But, as I have read somewhere else in the forum, it is impossible (or “not recommended at all”) to do something like Q2 = Q2\*A [/quote]It is possible but not recommended since the step to do so are not trivial. [quote]So, I need to find another way to do this, with as few steps as possible. [/quote]Simply create a new tree, with just the branch Q2 and make this new tree a friend of the first tree (oldtree-\>AddFriend(…) ). Alternatively, Clone the old tree and add a new branch (See $ROOT…

---

_[View the full topic](https://root-forum.cern.ch/t/update-entry-in-ttree-branch/37666)._
