# root to Castor

**URL:** <https://castor-project.discourse.group/t/root-to-castor/91>\
**Category:** General Discussions\
**Created:** [May 20, 2019, 11:45pm UTC](https://castor-project.discourse.group/t/root-to-castor/91 "2019-05-20T23:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahdjoub\_Hamdi](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Mahdjoub\_Hamdi](https://castor-project.discourse.group/u/Mahdjoub_Hamdi)\
**Post date:** [May 20, 2019, 11:45pm UTC](https://castor-project.discourse.group/t/root-to-castor/91/1 "2019-05-20T23:45:50Z")

</div>

Hello,

I’m trying to reconstruct an image fro a GATE modeled PET system using CASTOR, I read in the users guide that there is a utility named castor-GATEroot2Castor.exe which converts from the ROOT output to Castor format. I’ve installer castor on my Ubuntu machine however I’m unable to get it or use the root2Castor utility.

Does anyone knows how to get it or use it?

Thank you,  
Mahdjoub

---

<div class="post-metadata">

**Author:** ![Maxime\_Toussaint](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Maxime\_Toussaint](https://castor-project.discourse.group/u/Maxime_Toussaint)\
**Post date:** [May 21, 2019, 12:37am UTC](https://castor-project.discourse.group/t/root-to-castor/91/2 "2019-05-21T00:37:30Z")

</div>

`Greetings,`

`If you compiled CASToR from source, is it possible that you forgot to set CASToR_BUILD_GATE_UTILITIES as ON in the cmake parameters? Compiling with that flag activated should give you an executable called castor-GATERootToCastor. Also, is it possible that cmake didn't found you root configuration?`

`To use ```castor-GATERootToCastor`, open a terminal and “launch” the executable. If you don’t give any arguments, it will tell you what it needs.`

`Bests,`  
`Maxime Toussaint`

---

<div class="post-metadata">

**Author:** ![Mahdjoub\_Hamdi](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Mahdjoub\_Hamdi](https://castor-project.discourse.group/u/Mahdjoub_Hamdi)\
**Post date:** [May 21, 2019, 3:19pm UTC](https://castor-project.discourse.group/t/root-to-castor/91/3 "2019-05-21T15:19:01Z")

</div>

Hi Maxim,

Thank you for you’re quick response. I’ve reinstall as you recommended and it works.  
Thanks,  
Mahdjoub
