Re: [BLAST_ANAWARE] word of warning on using 'abs' in root programs

From: Chris Crawford (chris2@lns.mit.edu)
Date: Wed Sep 29 2004 - 15:53:24 EDT


hi aaron,
  one more confusion, root TFormula's use abs, as a float function (so
you have to use abs in your Draw("","") statements.
--chris

Aaron Joseph Maschinot wrote:

>hopefully (probably), everyone else is smarter than me. but i just
>realized that i had been using 'abs' functions in my root macros when
>using floats. the 'abs' function, however, takes and returns an integer
>output. thus, it was converting my arguments to integers, and, in the
>cases where i used it with cuts, giving weird results.
>
>the answer is to use 'fabs' with floats.
>
>aaron
>
>



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:31 EST