<div dir="ltr">Hello Yi and all,<div><br></div><div>This is great news, thanks for checking it in.  I will have a look at it after I have completed the current g4 development.  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.  After that, we will work together to start the process of merging in the updates and working out the problems with overlaps.  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.  </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 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 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>Subject:
            </th>
            <td>[Halld-elog][PID-Upgrade] HDGeant (GEANT3) Simulation of
              DIRC</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap>Date: </th>
            <td>Tue, 08 Oct 2013 16:04:33 -0400</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap>From: </th>
            <td>Yi Qiang <a href="mailto:yqiang@jlab.org">&lt;yqiang@jlab.org&gt;</a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap>To: </th>
            <td>Yi Qiang <a href="mailto:yqiang@jlab.org">&lt;yqiang@jlab.org&gt;</a>, Baptiste Guegan
              <a href="mailto:guegan@mit.edu">&lt;guegan@mit.edu&gt;</a>, Mark Dalton
              <a 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: <b>PID_Upgrade</b>  Message ID: <a href="https://halldweb1.jlab.org/elog-halld/PID_Upgrade/10"><b>10</b></a>    Entry
                      time: <b>10/08/2013 13:00</b>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <table width="100%" cellpadding="0" cellspacing="0">
                        <tbody>
                          <tr>
                            <td nowrap>Author:</td>
                            <td>
                              Yi Qiang </td>
                          </tr>
                          <tr>
                            <td nowrap>Project:</td>
                            <td>
                              DIRC </td>
                          </tr>
                          <tr>
                            <td nowrap>Category:</td>
                            <td>
                              Simulation </td>
                          </tr>
                          <tr>
                            <td nowrap>Subject:</td>
                            <td>
                              HDGeant (GEANT3) Simulation of DIRC </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 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 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 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 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 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 href="mailto:Halld-pid-upgrade@jlab.org">Halld-pid-upgrade@jlab.org</a><br>
<a 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>