<!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>
        Today I committed a change to hdgeant to allow it to
    automatically run mcsmear just before exiting. As a reminder, the
    typical sequence up to now has been to run the hdgeant program and
    then do the final stage hit smearing with a separate program
    (mcsmear) afterward. The changes automate this sequence withing
    hdgeant by having it run mcsmear automatically.<br>
    <br>
        By default, hdgeant behaves the same as before. If you want to
    activate the new feature set the POSTSMEAR value in your control.in
    file to 1. There are also variables for passing additional arguments
    to mcsmear and to automatically delete the unsmeared file after the
    smeared file is created. These are documented in the example
    control.in file that exists with the HDGeant source in the
    repository. Note that mcsmear is ran using a system(cmd) call so the
    first mcsmear in your PATH is used.<br>
    <br>
        This change was only implemented for hdgeant and not hdgeant++
    or any of the other programs in the HDGeant source directory. If
    folks find it useful, it will be easy to copy the necessary changes
    to hdgeant++ as well.<br>
    <br>
        Please let me know if you have any issues with this.<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>r6656 - trunk/sim-recon/src/programs/Simulation/HDGeant</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Fri, 20 Aug 2010 11:52:44 -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:richard.t.jones@uconn.edu">richard.t.jones@uconn.edu</a>, <a class="moz-txt-link-abbreviated" href="mailto:davidl@jlab.org">davidl@jlab.org</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>Author: davidl
Date: 2010-08-20 11:51:33 -0400 (Fri, 20 Aug 2010)
New Revision: 6656

Added:
   trunk/sim-recon/src/programs/Simulation/HDGeant/copytocplusplus.cc
Modified:
   trunk/sim-recon/src/programs/Simulation/HDGeant/control.in
   trunk/sim-recon/src/programs/Simulation/HDGeant/hdgeant.cc
   trunk/sim-recon/src/programs/Simulation/HDGeant/uginit.F
Log:
Add the ability of hdgeant to automatically run mcsmear when it is done and optionally delete the unsmeared file. The new feature is controlled by the POSTSMEAR, DELETEUNSMEARED, and MCSMEAROPTS ffread cards. Descriptions of these have been added to the example control.in file .

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