<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, Paul <br>
<br>
The current production version of gsim is good enough, right?<br>
<br>
The "set st_type" and "set photon_trig_type" are not even set in my
gsim_cook.tcl (refer to the eg3_sim package).<br>
Should we set them for eg3?<br>
<br>
eg3 has the calib_user.RunIndexEG3Sim as correct runindex, should we
use "set st_type 2" to make the new ST works?<br>
<br>
I think we need to check our simulation settings together during our
meeting to make sure everything is correct.<br>
<br>
Zhiwen<br>
<br>
On 4/8/2010 10:16 AM, Paul Mattione wrote:<br>
<br>
Hopefully this answers your question about the tcl file. &nbsp;
<blockquote cite="mid:873DDD6B-662C-481C-B20C-D471CD531217@jlab.org"
 type="cite">
  <div><br>
  </div>
  <div>&nbsp;- Paul</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  <div><br>
  <div>Begin forwarded message:</div>
  <br class="Apple-interchange-newline">
  <div>
  <div><font color="#000000" face="Helvetica" size="3"><b>From: </b></font><font
 face="Helvetica" size="3">Paul Mattione &lt;<a moz-do-not-send="true"
 href="mailto:pmatt@jlab.org">pmatt@jlab.org</a>&gt;</font></div>
  <div><font color="#000000" face="Helvetica" size="3"><b>Date: </b></font><font
 face="Helvetica" size="3">August 17, 2009 12:52:17 PM EDT</font></div>
  <div><font color="#000000" face="Helvetica" size="3"><b>To: </b></font><font
 face="Helvetica" size="3"><a moz-do-not-send="true"
 href="mailto:clas_offline@jlab.org">clas_offline@jlab.org</a></font></div>
  <div><font color="#000000" face="Helvetica" size="3"><b>Subject: </b></font><font
 face="Helvetica" size="3"><b>mc recon problems fixed, gsim updated</b></font></div>
  <div><br>
  </div>
  </div>
  <div>Thanks to all of the help I received (especially from Franz
Klein and Eugene Pasyuk), my monte carlo reconstruction is now working!
&nbsp;For photon runs after g11, you must do the following:<br>
  <br>
- check out and compile the new version of gsim<br>
- in your tcl file for user_ana, include "set st_type 1" and "set
photon_trig_type 1"<br>
  <br>
The gsim package needs to be recompiled because the geometry code for
the long photon target (40cm) and new ST (STTYPE 1) wasn't correct, in
particular for other target positions than -10cm, because some position
information was hard-coded in gsim (updated gsim/geom_tg.F,
gsim/geom_phtg8.F). In addition, there were missing offsets for the hit
banks of the start counter, causing the STN TDC value to be wrong for
tracks with vertex &lt;-20cm (gsim/sets_stnew.F).<br>
  <br>
Also, the C++ code for new ST reconstruction (set st_type 2 in user_ana
tcl file) doesn't work for monte carlo data unless you copy all
database geometry values for your experiment into run #1, along with
tweaking st2tof as necessary to line things up.<br>
  <br>
Thanks again everybody for all of the help!<br>
  <br>
- Paul<br>
  <br>
  </div>
  </div>
  <br>
  </div>
</blockquote>
<br>
</body>
</html>