Re: [BLAST_ANAWARE] array question

From: Chris Crawford (chris2@lns.mit.edu)
Date: Mon Aug 11 2003 - 00:29:03 EDT


hi pete,
  traditionally, root would not let you use your own arrays in draw
statements; however i have added extra functionality, so that now you
can use any c++ commands,functions,or variables in your expressions.
 just testing it, more to come...
--chris

Peter Karpius wrote:

>Hi guys-
>
> I am trying to derive and test offsets from all the d2eep ntuples
>from runs 1348-1799 and am mainly using the PID cut idl/idr==14. What I
>don't want to do is crunch all new ntuples to test offsets. So I am
>trying to subtract them from the already crunched ntuples. Here's the
>problem, say I want to plot ttl-ttr for a proton in a left paddle with
>ttr coming from all the other right sector paddles. I read in the offsets
>and then subtract them in a loop over the paddles for ttl but for ttr the
>paddle varies. I wanted to use ntr as the array variable for ttr (and
>ntl for the ttl array index in ttr-ttl. But I can't get this to work.
>In the loop over left proton paddle have a string:
>
>TString
>L_drawstring(u+"ttl-("+offsetL0[paddle]+"+"+offsetL1[paddle]+")/2
>-ttr+("+offsetR0[+"ntr"+]+"+"+offsetR1[+"ntr"+]+")/2>>
>ttl_minus_ttr_["+paddle+"]");
>
>but it won't take ntr as the index for the electron paddle side offsets...
>
>
>it gives me:
>Syntax Error: +"ntr"+ FILE:d2proton_idl2_avg.C LINE:119
>Error: Illegal pointer operation (tovalue) FILE:d2proton_idl2_avg.C
>LINE:119
>
>
> any thoughts?
>
> Thanks,
> Pete
>
>----------------------------------------------
>Pete Karpius
>Graduate Research Assistant
>Nuclear Physics Group
>University of New Hampshire
>phone: (603)862-1220
>FAX: (603)862-2998
>email: karpiusp@einstein.unh.edu
>http://pubpages.unh.edu/~pkarpius/homepage.htm
>----------------------------------------------
>
>



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