[Gate-users] How to transfer the “.root” to “.dat” !?

Marc Chamberland mchamber at connect.carleton.ca
Wed Feb 8 13:13:51 CET 2012


Hi Spencer!

You can create your own ASCII file from the Root output. You just need to use a Root macro to do it. I'm sending you an example. In that example, I'm extracting the endpoints and the timing of the coincidence events of a PET simulation and saving it into a simple ASCII .txt file. To run it, you simply type the following in a terminal window:

>root ./extractLOR.cpp

Hopefully, this gives you a good starting point.

Cheers!
Marc


__________________________


Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)




> Dear,all
> 
> 
> Excuse me, How to transfer the *“.root”* to *“.dat”*  ??
> 
> 
> Since I found that when I used the “Parameterized fanbeam collimator” in
> Gate,
> 
> the ASCII output (.dat) won’t change while the "fanbeam collimator’s
> parameter" changes
> 
> Only the Root output works!!
> 
> But i have to get the root’s original data (like ASCII output) to reconstruct
> the image!
> 
> 
> 
> Thank you !
> 
> Best Regards
> 
> 
> 
> Spencer Lu
> 
> Medical Imgaing Processing Lab (MIPL)
> 
> Department of Biomedical Engineering and Environmental Sciences,
> 
> National Tsing-Hua University, Taiwan
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users



More information about the Gate-users mailing list