[g2p_ana] insert epics to rootfile

Chao Gu cg2ja at virginia.edu
Tue Jun 26 00:28:40 EDT 2012


Hi Everyone,

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.

Best,
Chao

On 06/26/2012 12:10 AM, Pengjia wrote:
> Hi Everyone,
> I wrote a simple python script to insert epics variable from epics 
> file to rootfile, you can find it in:
> /w/halla-1/g2p/epics/epics2root.py
> 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.
> 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.
> I added a backup code inside it, it will take some time if file is 
> big. You can comment it.
> Please let me know if you find any bugs.
> Thanks!
> Pengjia
>
>
>
> _______________________________________________
> g2p_ana mailing list
> g2p_ana at jlab.org
> https://mailman.jlab.org/mailman/listinfo/g2p_ana

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/g2p_ana/attachments/20120626/339b5dc1/attachment.html 


More information about the g2p_ana mailing list