Hi rooters, In root I can do below without problem. ntp->Draw("Ds1fm>>h110",cutnew,"h110") where cutnew is type TCut. Now I try to compile it and link it. And there is such error message: =================================================================== "bslife_cut.cc", line 77: error: more than one instance of overloaded function "TNtuple::Draw" matches the argument list: function "TTree::Draw(TCut, TCut, Option_t *, Int_t, Int_t)" function "TTree::Draw(const Text_t *, const Text_t *, Option_t *, Int_t, Int_t)" argument types are: (char [12], TCut, char [5]) ntp->Draw("Ds1fm>>h110",cutnew,"h110"); ==================================================================== I can change cutnew to a string and it works. Can anyone point it out to me what I did wrong or it is a bug? Thanks, Hongquan
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET