[g2p_ana] insert epics to rootfile

Pengjia pzhu at jlab.org
Tue Jun 26 00:10:35 EDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/g2p_ana/attachments/20120626/d46fc253/attachment.html 


More information about the g2p_ana mailing list