[d2n-analysis-talk] Basic ROOT Question
David Flay
flay at jlab.org
Tue Mar 2 10:12:36 EST 2010
In order to get my TDC histograms into ns units, I would multiply the
variable by 10^9:
1e+9*L.s2.lt_c[0], for instance.
This works at the command line. However, it does <not> work if I do this
in a macro:
rootvar.Form("((1e+9)*L.s2.lt_c[%d]):L.s2.la_c[%d]",i,i);
Has anyone come across this?? It seems like a very simple thing, yet a
ROOT search produces nothing (I have found that virtually any search at
the ROOT website is pointless -- it's better to go with Google... but
nothing there either). I don't recall ever having trouble multiplying
variables by numbers before... any help is appreciated!
Dave
-------------------------------------------------
David Flay
Physics Department
Temple University
Philadelphia, PA 19122
office: Barton Hall, BA319
phone: (215) 204-1331
e-mail: flay at jlab.org
flay at temple.edu
website: http://www.jlab.org/~flay
http://quarks.temple.edu
-------------------------------------------------
More information about the d2n-analysis-talk
mailing list