<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Everyone,<br>
    <br>
    Actually I already have a program to insert epics variables to
    rootfile, which do not have any special requirement. I do not
    remember if I mentioned it in the last weekly meeting. Just feel
    free to use it by your convenience.<br>
    <br>
    Best,<br>
    Chao<br>
    <br>
    On 06/26/2012 12:10 AM, Pengjia wrote:
    <blockquote
cite="mid:CA+O7JZUYoRZ92Lbg-SzoBDvvffCo-_LkJYqLvmOm6uSXDqvKNA@mail.gmail.com"
      type="cite">Hi Everyone,<br>
      I wrote a simple python script to insert epics variable from epics
      file to rootfile, you can find it in:<br>
      /w/halla-1/g2p/epics/epics2root.py<br>
      To use it, you need to make sure your root is compiled with python
      module(pyroot), also you need epicst2v.py file which I wrote for
      searching epics value in special time, you can find it in the same
      directory as mentioned above.<br>
      You just need to edit the run number list ,epics name list,
      rootfile and epicsfile folder path, start of run time file path in
      the script and then run it. I use 2 different methods to insert
      it, one is delete the existed epics variable in "T" tree and fill
      the new value in it, you can use the rootfile as it is used
      before; another one is create a new tree named "epics", you need
      to use Addfriend to integrate them. The speed are similar for
      these two methods, about 32k events per second.<br>
      I added a backup code inside it, it will take some time if file is
      big. You can comment it.<br>
      Please let me know if you find any bugs. <br>
      Thanks!<br clear="all">
      <div>Pengjia</div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
g2p_ana mailing list
<a class="moz-txt-link-abbreviated" href="mailto:g2p_ana@jlab.org">g2p_ana@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/g2p_ana">https://mailman.jlab.org/mailman/listinfo/g2p_ana</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>