Cut on TTree variable that is a string?

Hi,

I have a tree that contains some character strings:

[code]root [52] tree.Print()


*Tree :tree : tree *
*Entries : 26 : Total = 7490 bytes File Size = 1933 *

  •    :          : Tree compression factor =   1.00                       *
    

*Br 0 :id : id/C *
*Entries : 26 : Total Size= 1333 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *

*Br 1 :tid : tid/C *
*Entries : 26 : Total Size= 945 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *


[/code]

I would like to cut on one of the variables by finding a substring, something like this:

However, this particular line does not work (outcome of cut seems to be always true…). I have tried a few other combinations, with no success.

Is there a way to do this?

Thank you

You can do things like:

tree.Scan("id:tid", "strstr(id,\"rallonge\")", "colsize=30")
Rene