# Entries frrom tree.Draw greatear than tree.GetEntries

**URL:** <https://root-forum.cern.ch/t/entries-frrom-tree-draw-greatear-than-tree-getentries/48246>\
**Category:** ROOT\
**Created:** [January 3, 2022, 12:32am UTC](https://root-forum.cern.ch/t/entries-frrom-tree-draw-greatear-than-tree-getentries/48246 "2022-01-03T00:32:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alkass](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@Alkass](https://root-forum.cern.ch/u/Alkass)\
**Post date:** [January 3, 2022, 12:32am UTC](https://root-forum.cern.ch/t/entries-frrom-tree-draw-greatear-than-tree-getentries/48246/1 "2022-01-03T00:32:14Z")

</div>

Hello

While draw from a tree with some set of cuts, I notice that I get on screen the number of reported events to be greater than the tree.GetEntries(), ie

```auto
Events->GetEntries()
(long long) 31493226
Events->Draw("met", "cuts")
(long long) 60219665

```

Is this normal or maybe indicative of something wrong with my tree in the first place? Several branches are a 1D array in case that is of any help. In other words, what is reported after Drawing/Projecting a TTree?

I have the impression that if some branches are arrays are counted X dimension on the reported number? For example, I have some branches like `met[7]` should one use in the cuts “met[0]” or “met” is also ok and won’t be doublecounted for?

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [January 3, 2022, 4:39am UTC](https://root-forum.cern.ch/t/entries-frrom-tree-draw-greatear-than-tree-getentries/48246/2 "2022-01-03T04:39:40Z")

</div>

> [@Getting data from vector\<double\> branches](https://root-forum.cern.ch/t/getting-data-from-vector-double-branches/33058/4):
>
> TTree::Print shows as “Entries” the number of vectors (one for each “Fill” call) stored in the branch, while the histogram in TBrowser contains all the entries of all the vectors in the branch.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 17, 2022, 4:40am UTC](https://root-forum.cern.ch/t/entries-frrom-tree-draw-greatear-than-tree-getentries/48246/3 "2022-01-17T04:40:28Z")

</div>

Closed on January 17, 2022, 4:40am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
