String as a TCut selection criteria

Hi All

I am using root 6.26.04 and I have a question. I am trying to Scan a TTree variable which is of type map<string, vector >. But I am not able to print the variables by a condition Tree->Scan("vector","string=="somestring""). It gives me the error

error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
error: expected ')'
note: to match this '('

Can someone please point out what am I doing wrong here?

Hi,

a wild guess: maybe this will work

Tree->Scan("vector","string==\"somestring\"")
1 Like

Oh it did work. Thank You very much. Now, it shows the correct entries without any error.