# MakeSelector TTree gives: Invalid type vector\<vector\<int\>

**URL:** <https://root-forum.cern.ch/t/makeselector-ttree-gives-invalid-type-vector-vector-int/12780>\
**Category:** ROOT\
**Created:** [July 18, 2011, 7:27am UTC](https://root-forum.cern.ch/t/makeselector-ttree-gives-invalid-type-vector-vector-int/12780 "2011-07-18T07:27:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![SebastianSchmitt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@SebastianSchmitt](https://root-forum.cern.ch/u/SebastianSchmitt)\
**Post date:** [July 18, 2011, 7:27am UTC](https://root-forum.cern.ch/t/makeselector-ttree-gives-invalid-type-vector-vector-int/12780/1 "2011-07-18T07:27:12Z")

</div>

Dear all!

I have a TTree with a branch of type vector\<vector. If I generate a selector with MakeSelector I get the message:

```auto
Error: Invalid type 'vector<vector<int>' in declaration of '>'
```

This problem has been discussed in [url][Vectors in 5.28.00](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846/1) - it should be solved using ROOT 5.30.00.

Unfortunately I still have the problem. If I run the following on lxplus from a fresh shell:

```auto
source /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5/setup.sh
cd /afs/cern.ch/sw/lcg/app/releases/ROOT/5.30.00//x86_64-slc5-gcc43-opt/root/
source bin/thisroot.sh
cd `mktemp -d`
cp -v /afs/cern.ch/user/s/schmitts/public/ROOT_vector_vector_int/evgen.root .
root -l -b evgen.root
evgen->MakeSelector()
.L evgen.C
```

I get:

```auto
Error: Invalid type 'vector<vector<int>' in declaration of '>' evgen.h:74:
Error: Symbol vector<vector<int> > is not defined in current scope evgen.h:74:
Error: Symbol mcpart_mother_index is not defined in current scope evgen.h:74:
***Interpreter error recovered***
```

Could you please have a look?

Thanks in advance,

Sebastian

---

_[View the full topic](https://root-forum.cern.ch/t/makeselector-ttree-gives-invalid-type-vector-vector-int/12780)._
