From frank@bnl.gov Tue Aug 26 18:43:50 2003
Date: Mon, 25 Aug 2003 14:51:31 -0400
From: "Frank, James  S" <frank@bnl.gov>
To: "Frank, James  S" <frank@bnl.gov>, 'Jingliang Hu ' <hujl@sitka.triumf.ca>,
     "Kettell, Steven" <kettell@bnl.gov>
Cc: ''Akira Konaka ' ' <konaka@triumf.ca>,
     '''Takeshi Komatsubara ' ' ' <koma@post.kek.jp>,
     'Shaomin Chen ' <chensm@triumf.ca>
Subject: RE: beam analysis review

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Jingliang,

Here are a few plots that illustrate the z vs e correlation
as a function of nk_tg.  The plots have logarithmic scale
in the z-axis so to make the tails more obvious.  I used your 
set of recommended cuts on km21 data, which you used to made
the likelihood distributions previously, and I added the
utc reconstruction quality plots obtained from Shaomin.

The first page
http://pubweb.bnl.gov/people/frank/z_vs_e_vs_nk_page_1.jpg
shows the correlation with
      nk_tg =1   =2
            =3   4-16

The second page
http://pubweb.bnl.gov/people/frank/z_vs_e_vs_nk_page_2.jpg
the same with    nk_tg=17-18   =19-20
                       >20        x         

There are a significant number of overflows off the plot
for nk_tg>20.

I scanned a few events with nk_tg=1 and z>0 and e<30 to
try to understand what is causing the 'misreconstructions'.
A few examples are found in:
http://pubweb.bnl.gov/people/frank/evt_6900.jpg
http://pubweb.bnl.gov/people/frank/evt_23527.jpg and
http://pubweb.bnl.gov/people/frank/evt_31157.jpg

An interesting plot that seems to show the same
problem is in
http://pubweb.bnl.gov/people/frank/few_fiber.jpg
This is a plot of the time of 'extra' fiber energy minus tk.
(The extra target fiber energy are hits that are not
on the otherwise saved arrays for kaons, pions,
opposite-side pions, or gammas).  Cuts were
itgqualt=0, ek<30, 1<eall_tgccd<50, and
    nk_tg=1     =2
         =3     =4

Recall the number of good events is
about 2.5% with nk_tg=1; 10.5% with nk_tg=2;
and ~16.5% with nk_Tg=3, so the importance
of the number of fibers in the timing peaks
shown in the last figure is most significant 
for nk_tg=1.

I don't know what to do about this problem.
In order to get swathccd to reconstruct
events like this correctly, one would
have to fiddle with the methodology of
the swathccd reconstruction, varying the
definition of 'cluster' both in space
and time algorithms.  An approach that would be
more-likely to succeed would be to install
an additional postburner.  I suspect that
correcting the event (or throwing it away)
will be much more important in pnn2 than in
pnn1. Trying to correct it for pnn1 analysis will 
likely let in more double-beam background
for pnn1.  I'd vote for including this tail
in the beam likelihood function, as is being
done currently.

Based upon these plots, I also think that
we should throw away all events with nk_Tg>20.

Comments?

There is another interesting 'feature'.
Take the scatter plot shown above with
nk_Tg from 4 to 16, and project the slice
at tgz near 0.

http://pubweb.bnl.gov/people/frank/shoulder.jpg  

Note the significant lower energy tail ~50 MeV.

Following a suggestion by Steve, look at the
next plot:

http://pubweb.bnl.gov/people/frank/shoulder2.jpg 
The red histogram shows the effect of adding in
the edge fiber energy, when edge-fiber time was
within 3 ns of tk.  There is a significant
decrease in the low-energy tail.  Probably imposing
a KIC cut, or adding in the I counter energy when
there is a hit in the I counter that touches the
kaon track both in space and time will also help.
Shall we add in this extra energy in the working
ntuple analysis?  To cut down on accidental
contributions, I would probably impose some sort
of position cut as well, which demands that
edge fiber be added only when the edge energy is
in proximity to the kaon.

Finally, as far as I could tell from the existing
forpaw routines, the correction of energy as a
function of time has never been made. (This is
needed to compensate for the energy that falls 
outside the ADC gate).  See my email to the
pass1 group on 4/10/03 for the function.

Making a correction for this makes a small
improvement in the e vs z correlation
(sigma/E 9.69% -> 9.49%).  See:

http://pubweb.bnl.gov/people/frank/and_timing.jpg

I note that the empirical correction should be made as
a function of tk, NOT b4strob.  For events that
pass the target likelihood setup cuts, tk is
always within a few ns of b4strob


Jim






>  Jingliang,
> 
> I have been looking into the tgz vs ek correlation
> as a function of nk_tg.  As seen before, there
> is a small reduction in the ek at constant tgz for 
> 1 or 2 fibers.  However, this is not the dominant
> feature.  I find that there is a significant
> low energy tail (i.e., perhaps the peak shifts
> by several % downward, but there is an almost
> flat tail extending down towards very low ek)
> for nk_tg=1.
> 
> I scanned several events of this type, and I think
> I see what's going on. It looks like there are other 
> fibers that are adjacent, or with one missing
> fiber which were not merged into the kaon track 
> by swathccd.  It's going to be difficult to correctly
> analyze these events, because changing some parameters
> in swathccd (the most likely parameter is the timing
> uncertainty function) will likely introduce as much 
> new background as signal that is saved.  We can
> discuss this at the VRVS meeting, but it seems like
> the likelihood approach is likely to be the most
> reasonable way of handling this problem....as it
> has been doing.
> 
> The other interesting thing that I noted was that
> there is virtually no 'band' of good correlation
> in z vs e when nk_tg>20, and there is little
> signal, and mostly background, for nk_tg=18 or 19.  
> Events  with nk_tg>20 should be tossed, I think.
> 
> Jim
> 
