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>