Ok found where I went wrong. Since the peds changed I am using a variable from my older replays which plot the ADC without ped subtraction but applies the gain correction factor. So in order for me to make the photoelectron plots, I have to subtract the ped with this gain correction factor multiplying it. Since I have to check all the peds, and needed just these two plots for the APS I did the ped*gain_correction_factor directly in my script. Turns out I used the wrong gain coeficent, using the correct one fixes it all (see below)<br>
<br> <br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 8:38 PM, MATTHEW R POSIK &lt;<a href="mailto:tua88437@temple.edu">tua88437@temple.edu</a>&gt; wrote:<br><blockquote class="gmail_quote">
Checked up on what you had asked and here is the plot of the electron signal (red histo) and the background(blue histo). The background peak is at chan 510, which is consistent with my ped runs I did. I&#39;ll recheck my plot, maybe I subtracted the wrong ped or using the wrong gain constant.<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Tue, Feb 9, 2010 at 4:37 PM, Brad Sawatzky &lt;<a href="mailto:brads@jlab.org">brads@jlab.org</a>&gt; wrote:<br><blockquote class="gmail_quote">

On Tue, 09 Feb 2010, MATTHEW R POSIK wrote:<br>
<br>
[ . . . ]<br>
<div>&gt; For the red histo I then apply a TDC and mirror cut that apply to<br>
&gt; mirror 13.  Where as for the blue histo I apply to mirror 13(ie. ADC<br>
&gt; 13 ) a cut on the TDC and mirror associated with mirror 17.<br>
&gt;<br>
&gt; But if I replay the first 100,000 with a T8 cut<br>
&gt; (&quot;DBB.evtypebits&amp;1&lt;&lt;8)==1&lt;&lt;8&quot;) the peds I get for both sides are below<br>
&gt; (1849_beam.png and 1849_rhrs.png) for the beam line and rhrs sides.<br>
<br>
</div>The center of the pedestal for Mirror 3 from the T8 cut is consistent<br>
with the rough centroid of the blue background shown in<br>
aps_mir3_no_cor.png.  That makes sense.<br>
<div><br>
&gt; Since when I make that &quot;background&quot; cut (blue histo) on mirror 13 and<br>
&gt; have a non zero centered peak, does that mean there is some<br>
&gt; correlation between mirror 13 and 17?<br>
<br>
</div>I&#39;d double check that the pedestal you&#39;re subtracting is really the one<br>
you&#39;re showing in 1849_rhrs.png -- I&#39;ll bet it isn&#39;t.  (I should be able<br>
to see the pedestal start to rise up in the lowest bins of your mirror13<br>
ped-subracted plot in your talk, but there&#39;s nothing there.)<br>
<br>
That is, make the same kind of non-ped-subtracted plot for mirror 13 as<br>
you did for aps_mir3_no_cor.png.  If there really is a pedestal below<br>
the blue peak, we should see it.<br>
<div><div></div><div><br>
-- Brad<br>
<br>
--<br>
Brad Sawatzky, PhD &lt;<a href="mailto:brads@jlab.org">brads@jlab.org</a>&gt;  -&lt;&gt;-  Jefferson Lab / Hall C / C111<br>
  Ph: 757-269-5947 -&lt;&gt;- Pager: 757-584-5947 -&lt;&gt;- Fax: 757-269-7848<br>
The most exciting phrase to hear in science, the one that heralds new<br>
  discoveries, is not &quot;Eureka!&quot; but &quot;That&#39;s funny...&quot;   -- Isaac Asimov<br>
_______________________________________________<br>
d2n-analysis-talk mailing list<br>
<a href="mailto:d2n-analysis-talk@jlab.org">d2n-analysis-talk@jlab.org</a><br>
<a href="https://mailman.jlab.org/mailman/listinfo/d2n-analysis-talk">https://mailman.jlab.org/mailman/listinfo/d2n-analysis-talk</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div class="h5">-- <br>Matthew Posik<br>Email: <a href="mailto:posik@temple.edu">posik@temple.edu</a><br>Temple University Physics Dept.<br>
Office: BA-319<br>Office #:  215-204-1331 <br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Matthew Posik<br>Email: <a href="mailto:posik@temple.edu">posik@temple.edu</a><br>Temple University Physics Dept.<br>Office: BA-319<br>Office #:  215-204-1331 <br>
<br>