Since the cut is looking for a string, whereas 'a' is a float, you can do something like root [0] char tmp[10] root [1] float a = .9 root [2] sprintf(tmp,"W<%f ",a) (int)11 root [3] TCut c1 = tmp root [4] c1->Print() OBJ: TCut CUT W<0.900000 Good luck. Tim Smith _____________________________________________________________________ Timothy Paul Smith Research Scientist MIT Bates Lab tim_smith@mit.edu 21 Manning Rd. tel: (617) 253-9207 Middleton, MA 01949 fax: (617) 253-9599 On Thu, 28 Sep 2000, Maurizio Ungaro wrote: > Hi all, > if I have a variable defined into a macro like: > > float a = .9 > > It's not possible to define a cut like > > TCut c1 = "W<a" , > > but I want something similar ! > > Maurizio >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET