Hi, I am using root 3.01/06 on linux. I have a root tree with string-type variables. Some of the strings have special characters, such as '&'. How can I use these characters in a selection in, for example, the Draw or Scan commands? My problems are illustrated below. Thanks, -rob root [15] tree->Scan("tname"); ************************ * Row * tname * ************************ * 0 * L1_EM12_ * * 1 * L1_EM12_& * ************************ root [16] tree->Scan("tname","tname==\"L1_EM12_\" "); ************************ * Row * tname * ************************ * 0 * L1_EM12_ * ************************ ==> 1 selected entry root [17] tree->Scan("tname","tname==\"L1_EM12_&\" "); *ERROR 26 : Unknown name : ""L1_EM12_" root [18] tree->Scan("tname","tname==\"L1_EM12_\&\" "); *ERROR 26 : Unknown name : ""L1_EM12_" root [19] tree->Scan("tname","strstr(tname,\"L1_EM12_\")"); ************************ * Row * tname * ************************ * 0 * L1_EM12_ * * 1 * L1_EM12_& * ************************ ==> 2 selected entries root [20] tree->Scan("tname","strstr(tname,\"L1_EM12_&\")"); *ERROR 26 : Unknown name : ""L1_EM12_" root [21] tree->Scan("tname","strstr(tname,\"L1_EM12_\&\")"); *ERROR 26 : Unknown name : ""L1_EM12_"
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET