Errors using GATE utilities on vGATE 9.0

Dear CASToR users,

I am new to CASToR and compiling code so forgive me if I am missing something trivial.

I would like to reconstruct an image from a .root file generated in GATE. I have followed section 3.4.1 of the CASToR documentation to install CASToR v3.2.1 on vGATE 9.0, which came with root 6.14.

I set environment variables as follows

export CASTOR_CONFIG=/home/gate/CASToR/castor_v3.2.1/castor_v3.2/config
export CASTOR_MPI=1
export CASTOR_OMP=1
export CASTOR_ROOT=1
export CASTOR_SIMD=1
export CASTOR_VERBOSE=1
export CASTOR_DEBUG=1

I then compiled the code using make (>> “All executables are in bin”)

and added CASToR to the environment using

export PATH=$PATH:/home/gate/CASToR/castor_v3.2.1/castor_v3.2/bin

When I try to generate a geometry file using castor-GATEMacToGeom, I get the following error:

***** sOutputManager::CheckConfigDir() → No path for CASTOR_CONFIG variable provided !
***** castor-GATEMacToGeom :: A problem occurred while checking for the config directory path !
***** Exit function called. Abort with code 1.

Alternatively, when I manually create a geom file inside config/scanner and try to use castor-GATERootToCastor, I get the error:

***** castor-GATERootToCastor :: CASToR must be compiled with ROOT to read input root files (check installation instructions)
***** Exit function called. Abort with code 1.

What am I missing?

Thank you!

Hello
Because you use Castor version 3.2, you should export the normalization flag.

export CASTOR_NORM=1
Best Regards
Hadi

Hi Hadi,

Thank you for your reply!

I realised that the config directory error was due to a typo in the path.

I cleaned everything and tried again with export CASTOR_NORM=1 but it still wasn’t compiling with root.

I followed the instructions in section 3.4.2 (creating a makefile from the gui) and got the following output after I ran cmake and then make:
[ 9%] Built target castor-datafileShuffler
[ 18%] Built target castor-GATERootToCastor
[ 27%] Built target castor-recon
[ 36%] Built target castor-includeNormIntoDatafilePET
[ 45%] Built target castor-datafileConversionEx -o MyScanner
[ 54%] Built target castor-datafileExplorer
[ 63%] Built target castor-imageDynamicTools
[ 72%] Built target castor-PetScannerLutEx
[ 82%] Built target castor-scannerLUTExplorer
[ 91%] Built target castor-GATEMacToGeom
[100%] Built target castor-norm

However, when I try to use the GATE tools I get the errors:
castor-GATEMacToGeom: command not found
castor-GATERootToCastor: command not found

I found an old thread where you ran into a similar issue, and hope you were able to resolve it.

Thank you!

I have identified the error in specifying the location of the executables. The GATE commands now work for me!

1 Like