I just encountered a problem when using vectors in the TTree::Draw function …
I only found this post (root.cern.ch/phpBB2/viewtopic.ph … raw+vector) to give half the answer I am looking for …
Here we go …
Imagine we have a tree with two vectors in each entry …
which (besides the fact that it is kinda slow) complains about a segmentation violation in case you ask for too many runnumbers matched … any idea when this happens or a suggestion for a better way to do the selection …
It might be that you have too many operators and hence the stack (number of recursive function calls) is too deep. To solve this problem, compact you expression, for example:tree->Draw("locations","Sum$((runnumber >=90125 && runnumbers<=90127) || ...)>=1"); You can also use more call to Sum$ (but the more call to Sum$ the slower it will be).