# Macro to Add Array to TTree branch crashes

**URL:** <https://root-forum.cern.ch/t/macro-to-add-array-to-ttree-branch-crashes/26047>\
**Category:** ROOT\
**Created:** [August 28, 2017, 2:58pm UTC](https://root-forum.cern.ch/t/macro-to-add-array-to-ttree-branch-crashes/26047 "2017-08-28T14:58:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [August 28, 2017, 2:59pm UTC](https://root-forum.cern.ch/t/macro-to-add-array-to-ttree-branch-crashes/26047/2 "2017-08-28T14:59:59Z")

</div>

Just FYI:

> [@Getting the same histograms after cuts](https://root-forum.cern.ch/t/getting-the-same-histograms-after-cuts/24719/2):
>
> Remark on the way to post code snippets: When you post pieces of code on the forum enclose it with ``` . That makes your post much more readable (I systematically edit your posts that way) . So do: ``` // this is a C++ piece of code. ``` And it will display as: // this is a C++ piece of code.

---

_[View the full topic](https://root-forum.cern.ch/t/macro-to-add-array-to-ttree-branch-crashes/26047)._
