# Vector entries in TMVAClassification and Application

**URL:** <https://root-forum.cern.ch/t/vector-entries-in-tmvaclassification-and-application/30124>\
**Category:** TMVA\
**Created:** [August 5, 2018, 6:57pm UTC](https://root-forum.cern.ch/t/vector-entries-in-tmvaclassification-and-application/30124 "2018-08-05T18:57:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [August 7, 2018, 6:56am UTC](https://root-forum.cern.ch/t/vector-entries-in-tmvaclassification-and-application/30124/2 "2018-08-07T06:56:20Z")

</div>

> [@KarenDmn](#):
>
> Float\_t B\_J\_px2;

It looks like this is the problem. If the branch in the file is really a vector, it is not possible to use the address of a single float in `SetBranchAddress()`. You need to use an equivalent vector type in that case. Using a vector in a branch is discussed also in this other [post](https://root-forum.cern.ch/t/vector-in-branch/12796/5), if you’d like to have a look.

---

_[View the full topic](https://root-forum.cern.ch/t/vector-entries-in-tmvaclassification-and-application/30124)._
