# How to store and plot an array embedded into a vector

**URL:** <https://root-forum.cern.ch/t/how-to-store-and-plot-an-array-embedded-into-a-vector/18905>\
**Category:** ROOT\
**Created:** [March 2, 2015, 1:40pm UTC](https://root-forum.cern.ch/t/how-to-store-and-plot-an-array-embedded-into-a-vector/18905 "2015-03-02T13:40:48Z")\
**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:** [March 2, 2015, 2:31pm UTC](https://root-forum.cern.ch/t/how-to-store-and-plot-an-array-embedded-into-a-vector/18905/2 "2015-03-02T14:31:24Z")

</div>

Have a look at the [${ROOTSYS}/tutorials/tree/hvector.C](https://root.cern.ch/root/html534/tutorials/tree/hvector.C.html) (simple vectors) and [$ROOTSYS/tutorials/tree/tree2.C](https://root.cern.ch/root/html534/tutorials/tree/tree2.C.html) (fixed and variable length arrays, see also [ROOT User’s Guide -\> Trees -\> Example 2: A Tree with a C Structure](https://root.cern.ch/root/html534/guides/users-guide/Trees.html#example-2-a-tree-with-a-c-structure)) and [${ROOTSYS}/tutorials/tree/tree3.C](https://root.cern.ch/root/html534/tutorials/tree/tree3.C.html) (variable length arrays) tutorials.

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-store-and-plot-an-array-embedded-into-a-vector/18905)._
