Hi Daniel, You can do something like: tree->Draw("x:(y+rndm)") or tree->Draw("x:(y+3.5*rndm)") where rndm is a built-in keyword to generate a random number in [0,1]. We are currently working on extensions of TTree::Draw allowing to call general functions or user defined functions. Rene Brun On Thu, 4 Jul 2002, Daniel De Marco wrote: > Hi rooters, > > I have a TTree with some variables (say x and y) and I want to plot x > versus (y+random number). > Something like this: > TRandom dummy > tree->Draw("x:(y+dummy.Uniform())") > I tried this one and also others using TF1 but I cannot achieve the intended > result. > > Anyone can help me? > > Thanks in advance. > > Bye, > Daniel. > > --ddm >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:58 MET