<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Richard,<br>
    <br>
    I added hitRICH.c and modified savehits.F to HDGeant last year to
    provide basic RICH readout support. This time, in addition to the
    newly created DIRC geometry, I also updated the RICH and HDDM
    libraries to grab more information from the HDGeant output files.<br>
    <br>
    Best,<br>
    Yi<br>
    <div class="moz-cite-prefix">On 10/8/2013 5:42 PM, Richard Jones
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABfxa3RRSSWsmJRQ+gmbMVpE712MTU=QjiXRxcLSbhgUa7Uyjg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Yi and all,
        <div><br>
        </div>
        <div>This is great news, thanks for checking it in. &nbsp;I will have
          a look at it after I have completed the current g4
          development. &nbsp;Did you create a new hitXXXX.c to collect hits
          information, and add new clauses to gustep.F and saveHits to
          support it in hdgeant?</div>
        <div><br>
        </div>
        <div>I appreciate your keeping this big revision out of the main
          hdds trunk until I am done with the hdgeant4 release. &nbsp;After
          that, we will work together to start the process of merging in
          the updates and working out the problems with overlaps. &nbsp;I
          would prefer not to have to stop g4 development right now and
          spend a couple of weeks removing overlaps from the new DIRC
          geometry. &nbsp;</div>
        <div><br>
        </div>
        <div>-Richard J.</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Oct 8, 2013 at 4:43 PM, Yi
          Qiang &lt;<a moz-do-not-send="true"
            href="mailto:yqiang@jlab.org">yqiang@jlab.org</a>&gt; wrote:<br>
          <blockquote class="gmail_quote">
            <div text="#000000" bgcolor="#FFFFFF"> Hi all,<br>
              <br>
              I added the DIRC detector into the HDGeant HDDS geometry.
              For more details, refer to the following elog entry: <br>
              <a moz-do-not-send="true"
                href="https://halldweb1.jlab.org/elog-halld/PID_Upgrade/10">https://halldweb1.jlab.org/elog-halld/PID_Upgrade/10</a><br>
              <br>
              The RICH library has also been updated with a new
              RichTruthHit factory to extract all useful information of
              particles entering the DIRC. Accordingly, the JANA plugin
              mc_tree has been updated too to utilize this new factory.<br>
              <br>
              Let me know if you have any questions using the new codes,
              and attached is an example of accumulated hits generated
              by 4GeV pions (1000 events).<br>
              <br>
              Cheers,<br>
              Yi
              <div><br>
                <br>
                -------- Original Message --------
                <table border="0" cellpadding="0" cellspacing="0">
                  <tbody>
                    <tr>
                      <th valign="BASELINE" align="RIGHT"
                        nowrap="nowrap">Subject: </th>
                      <td>[Halld-elog][PID-Upgrade] HDGeant (GEANT3)
                        Simulation of DIRC</td>
                    </tr>
                    <tr>
                      <th valign="BASELINE" align="RIGHT"
                        nowrap="nowrap">Date: </th>
                      <td>Tue, 08 Oct 2013 16:04:33 -0400</td>
                    </tr>
                    <tr>
                      <th valign="BASELINE" align="RIGHT"
                        nowrap="nowrap">From: </th>
                      <td>Yi Qiang <a moz-do-not-send="true"
                          href="mailto:yqiang@jlab.org">&lt;yqiang@jlab.org&gt;</a></td>
                    </tr>
                    <tr>
                      <th valign="BASELINE" align="RIGHT"
                        nowrap="nowrap">To: </th>
                      <td>Yi Qiang <a moz-do-not-send="true"
                          href="mailto:yqiang@jlab.org">&lt;yqiang@jlab.org&gt;</a>,
                        Baptiste Guegan <a moz-do-not-send="true"
                          href="mailto:guegan@mit.edu">&lt;guegan@mit.edu&gt;</a>,
                        Mark Dalton <a moz-do-not-send="true"
                          href="mailto:dalton@jlab.org">&lt;dalton@jlab.org&gt;</a></td>
                    </tr>
                  </tbody>
                </table>
                <br>
                <br>
                <table cellpadding="0" cellspacing="0">
                  <tbody>
                    <tr>
                      <td>
                        <table width="100%" cellpadding="0"
                          cellspacing="0">
                          <tbody>
                            <tr>
                              <td> An old ELOG entry has been updated:</td>
                            </tr>
                            <tr>
                              <td> <input name="Author" value="Yi
                                  Qiang" type="hidden"> <input
                                  name="Project" value="DIRC"
                                  type="hidden"> <input name="Category"
                                  value="Simulation" type="hidden"> <input
                                  name="Subject" value="HDGeant (GEANT3)
                                  Simulation of DIRC" type="hidden"> <input
                                  name="browsing" value="1"
                                  type="hidden"> Logbook:&nbsp;<b>PID_Upgrade</b>&nbsp;&nbsp;Message
                                ID:&nbsp;<a moz-do-not-send="true"
                                  href="https://halldweb1.jlab.org/elog-halld/PID_Upgrade/10"><b>10</b></a>&nbsp;&nbsp;&nbsp;&nbsp;Entry

                                time:&nbsp;<b>10/08/2013 13:00</b> </td>
                            </tr>
                            <tr>
                              <td>
                                <table width="100%" cellpadding="0"
                                  cellspacing="0">
                                  <tbody>
                                    <tr>
                                      <td nowrap="nowrap">Author:</td>
                                      <td> Yi Qiang&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td nowrap="nowrap">Project:</td>
                                      <td> DIRC&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td nowrap="nowrap">Category:</td>
                                      <td> Simulation&nbsp;</td>
                                    </tr>
                                    <tr>
                                      <td nowrap="nowrap">Subject:</td>
                                      <td> HDGeant (GEANT3) Simulation
                                        of DIRC&nbsp;</td>
                                    </tr>
                                  </tbody>
                                </table>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <h2>hdds-1.5d</h2>
                        <p>Three files in existing hdds-1.5 has been
                          added/modified to include a DIRC detector in
                          HDGeant:</p>
                        <ol>
                          <li>DIRC_HDDS.xml</li>
                          <li>main_HDDS.xml</li>
                          <li>Material_HDDS.xml</li>
                        </ol>
                        <p>At this momentum, since the detector is still
                          preliminary, the files are not included in the
                          standard Hall-D hdds release. Instead, one can
                          check out these three files from:</p>
                        <p><a moz-do-not-send="true"
                            href="https://halldsvn.jlab.org/repos/trunk/home/yqiang/HDDS/hdds-1.5d/">https://halldsvn.jlab.org/repos/trunk/home/yqiang/HDDS/hdds-1.5d/</a></p>
                        <p>Two sensitive volumes used to save hits are</p>
                        <ol>
                          <li><strong>RAWN</strong>: DIRC window, used
                            to save tracks entering DIRC sensitive area,
                            produces <code><strong>RichTruthHit</strong></code></li>
                          <li><strong>RDCD</strong>: DIRC photo-cathode,
                            used to save photoelectrons collected by the
                            readout, produce <strong><code>RichHit</code></strong></li>
                        </ol>
                        <p>The geometry of the detector follows the
                          attached drawing. An aluminum box with 1mm
                          wall thickness is used to contain the
                          detector, and the thickness is derived from
                          the effective radiation length brought by the
                          BaBar DIRC package ~ 17%(total) - 14%(quartz
                          bar) = 3%(box).</p>
                        <h2>Visualization in HDGeant++</h2>
                        <h2>RICH Factories in sim-recon</h2>
                        <p>Since rev9775, the standard Hall-D
                          reconstruction package (<strong>sim-recon</strong>)
                          includes the necessary RICH library to process
                          hits in RICH window (<strong>RAWN</strong>)
                          through <code>DMCTrackHit</code> factory and
                          photo-cathode (<strong>RDCD</strong>) through
                          <code>DRichHit</code> factory.</p>
                        <p>In order to extract all information of
                          particles entering RICH window, a new factory,
                          <code><strong>DRichTruthHit</strong></code>,
                          has been added and checked in rev11686. The
                          factory can be used to save all information
                          such as: <code>x, y, z, px, py, pz, t, E,
                            track, primary </code><code>and ptype</code>:</p>
                        <p>RICH library: <a moz-do-not-send="true"
href="https://halldsvn.jlab.org/repos/trunk/sim-recon/src/libraries/RICH/">https://halldsvn.jlab.org/repos/trunk/sim-recon/src/libraries/RICH/</a></p>
                        <p>HDDM library: <a moz-do-not-send="true"
href="https://halldsvn.jlab.org/repos/trunk/sim-recon/src/libraries/HDDM/">https://halldsvn.jlab.org/repos/trunk/sim-recon/src/libraries/HDDM/</a></p>
                        <h2>JANA Plug-in</h2>
                        <p><strong>mc_tree</strong>: <a
                            moz-do-not-send="true"
href="https://halldsvn.jlab.org/repos/trunk/sim-recon/src/programs/Analysis/plugins/mc_tree/">https://halldsvn.jlab.org/repos/trunk/sim-recon/src/programs/Analysis/plugins/mc_tree/</a></p>
                        <p>mc_tree has been updated to use the newly
                          created <code><strong>DRichTruthHit</strong></code>
                          factory in rev11687.</p>
                      </td>
                    </tr>
                  </tbody>
                </table>
                <center><a moz-do-not-send="true"
                    href="https://midas.psi.ch/elog/">ELOG V2.9.0-2411</a></center>
                <br>
              </div>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Halld-pid-upgrade mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Halld-pid-upgrade@jlab.org">Halld-pid-upgrade@jlab.org</a><br>
            <a moz-do-not-send="true"
              href="https://mailman.jlab.org/mailman/listinfo/halld-pid-upgrade">https://mailman.jlab.org/mailman/listinfo/halld-pid-upgrade</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>