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!