# Changing the values in the branch

**URL:** <https://root-forum.cern.ch/t/changing-the-values-in-the-branch/52683>\
**Category:** ROOT\
**Tags:** tree, python, root\
**Created:** [December 7, 2022, 1:35pm UTC](https://root-forum.cern.ch/t/changing-the-values-in-the-branch/52683 "2022-12-07T13:35:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 7, 2022, 5:41pm UTC](https://root-forum.cern.ch/t/changing-the-values-in-the-branch/52683/2 "2022-12-07T17:41:34Z")

</div>

This cannot be done.

- You could apply your “fixes” when you actually analyze the data (e.g., define some alias “corrected\_branch = original\_branch - corerection\_value” and then use the “corrected\_branch” in the analysis).
- You could “copy” your tree to another file, modifying its entries on the fly.
- You could create a “friend tree” with new branches.
- You could add new branches to the existing tree.

---

_[View the full topic](https://root-forum.cern.ch/t/changing-the-values-in-the-branch/52683)._
