<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    Hi Folks,<br>
    <br>
        Me again. I've just commited a set of changes to mcsmear and the
    calib directory in the repository. The changes are related to the
    BCAL threshold and smearing (see commit log below for details).<br>
    <br>
        I wanted to give a heads up here since updating to the latest
    version of either mcsmear or calib should be accompanied by an
    update of the other as well. Otherwise, the BCAL smearing will not
    work properly.<br>
    <br>
    Regards,<br>
    -David<br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
          <td>r7881 - trunk/sim-recon/src/programs/Simulation/mcsmear</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Tue, 31 May 2011 10:08:30 -0400</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:Hall-D.SVN.Repository@jlab.org">Hall-D.SVN.Repository@jlab.org</a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:davidl@jlab.org">davidl@jlab.org</a>, <a class="moz-txt-link-abbreviated" href="mailto:brash@pcs.cnu.edu">brash@pcs.cnu.edu</a>, <a class="moz-txt-link-abbreviated" href="mailto:wolin@jlab.org">wolin@jlab.org</a>,
            <a class="moz-txt-link-abbreviated" href="mailto:zisis@uregina.ca">zisis@uregina.ca</a>, <a class="moz-txt-link-abbreviated" href="mailto:mashephe@indiana.edu">mashephe@indiana.edu</a>,
            <a class="moz-txt-link-abbreviated" href="mailto:remitche@indiana.edu">remitche@indiana.edu</a>, <a class="moz-txt-link-abbreviated" href="mailto:zihlmann@jlab.org">zihlmann@jlab.org</a>, <a class="moz-txt-link-abbreviated" href="mailto:somov@jlab.org">somov@jlab.org</a>,
            <a class="moz-txt-link-abbreviated" href="mailto:staylor@jlab.org">staylor@jlab.org</a>, <a class="moz-txt-link-abbreviated" href="mailto:kmoriya@indiana.edu">kmoriya@indiana.edu</a>, <a class="moz-txt-link-abbreviated" href="mailto:pmatt@jlab.org">pmatt@jlab.org</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>Author: davidl
Date: 2011-05-31 10:08:30 -0400 (Tue, 31 May 2011)
New Revision: 7881

Modified:
   trunk/sim-recon/src/programs/Simulation/mcsmear/mcsmear.cc
   trunk/sim-recon/src/programs/Simulation/mcsmear/smear.cc
   trunk/sim-recon/src/programs/Simulation/mcsmear/smear_bcal.cc
Log:
Significant change to how the BCAL readout threshold is calculated in mcsmear.

The algorithm now develops a fully smeared, smooth distribution
of dark pulse amplitudes based on the parameters in the calibDB.
The thresholds are set independently for the inner and outer
regions based on the BCAL_AVG_DARK_DIGI_VALS_PER_EVENT calibration
value. The thresholds are both set such that an equal fraction of
the readout channels will be read out due to dark pulses only.
The fraction itself is set by the limit on event size as given
by BCAL_AVG_DARK_DIGI_VALS_PER_EVENT.

Also, all "float"s were changed to "double"s.

Code is currently not thread safe so should be run in single
threaded mode only.

</pre>
  </body>
</html>