# Vector type in TMVAClassificationApplication

**URL:** <https://root-forum.cern.ch/t/vector-type-in-tmvaclassificationapplication/56413>\
**Category:** TMVA\
**Tags:** tree, root\
**Created:** [September 19, 2023, 5:33pm UTC](https://root-forum.cern.ch/t/vector-type-in-tmvaclassificationapplication/56413 "2023-09-19T17:33:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![shreya14p](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shreya14p/32/34541_2.png) [@shreya14p](https://root-forum.cern.ch/u/shreya14p)\
**Post date:** [September 19, 2023, 7:08pm UTC](https://root-forum.cern.ch/t/vector-type-in-tmvaclassificationapplication/56413/3 "2023-09-19T19:08:55Z")

</div>

Yes, I understand the error, but what do I do about it?  
In the TMVAClassificationApplication macro, the test (input file) has float values, so it doesn’t give an error. For me, my input file has vectors of floats. How do I run the following?

```auto
var0 = userVar0;
var1 = userVar1;

```

var0 and var1 are float variables, just like in the macro we have the following,

```auto
Float_t var1, var2;
Float_t var3, var4;
reader->AddVariable( "myvar1 := var1+var2", &var1 );
reader->AddVariable( "myvar2 := var1-var2", &var2 );
reader->AddVariable( "var3", &var3 );
reader->AddVariable( "var4", &var4 );

```

I can pass only floats and int type in the reader. What should I do, if my root file has vectors and reader can only take float and int.

---

_[View the full topic](https://root-forum.cern.ch/t/vector-type-in-tmvaclassificationapplication/56413)._
