Hi to all, I have simulated some PET data using opengate, which is stored in ROOT file and
I want to perform reconstruction with CasToR. But when I type:
$ castor-datafileConversionEx -ih input_file …
It tells me
***** castor-datafileConversionEx :: Unknown option ‘-ih’ !
However, if I just type:
$ castor-datafileConversionEx -ih
(without any file) I get
***** castor-datafileConversionEx :: argument missing for option: -ih
Why do you use castor-datafileConversionEx instead of castor-GATERootToCastor?
castor-datafileConversionEx is an example code providing guidance regarding how to generate a PET CASToR datafile from any system datafile. It does NOT perform any conversion by itself and must be adjusted to the conversion of any system dataset, dixit help.
I am currently at workshop for OpenGate 10 and
now instead of macros they use python code directly. But there is an option in new python library to dump JSON file that has all information that .mac previously had. I think that it is worth to add
to castor new converter which can use JSON instead of .mac.
P. S. However, maybe still parsing in that function should be checked, since the input file is completely unrecognized.
The data structure in root file for Gate 9.X and Gate 10 is different, thus, the standard conversion with Castor tools will not work on Gate 10 output files.
Hi, you are right. What I did is that I just took some toy examples from David Sarrut for simulating PET with Gate 10 in Python. It generated root file, but I am sure that no coincedence sorter is implemented there. Thanks for remark, I guess currently it is no chance to use simulations with Gate 10 in Castor.