[Castor-users] Potential issue in GATERootToCastor
tmerlin
Thibaut.Merlin at univ-brest.fr
Tue Oct 13 09:04:26 CEST 2020
Hello Moritz,
Thank you for the feedback and suggestion and sorry for the delayed
answer. There is a patch on the way so we will fix this soon.
Best,
Thibaut
On 30/09/2020 11:10, Moritz Schaar wrote:
>
> Hello everyone,
>
> I played around with castor's utility for conversion of ROOT data from
> GATE and noticed that the conversion fails, if you only have one
> crystal layer and do not explicitly attach the crystals to layer0 in GATE.
>
> This can be validated by performing the "benchPET" from the official
> GATE repository
> (https://github.com/OpenGATE/Gate/blob/develop/benchmarks/benchPET)
>
> By default, two layers are attached (see camera.mac):
>
> /gate/systems/cylindricalPET/layer0/attach LSO
>
> /gate/systems/cylindricalPET/layer1/attach BGO
>
> Commenting out both lines from above results in layer IDs equal to
> "-1" (default value?).
>
> This may be the case if you do not explicitly state that you have only
> one layer.
>
> A simple workaround for “castor-GATERootToCastor” could be testing the
> values for meaningful ranges, e.g. values layerID>= 0, or even simpler
> just checking that the castorID1 and castorID2 are < nCrystalsTot and
> otherwise at least trigger a warning.
>
> Best,
>
> Moritz
>
>
> _______________________________________________
> Castor-users mailing list
> Castor-users at lists.castor-project.org
> http://lists.castor-project.org/listinfo/castor-users
--
Thibaut MERLIN -- PhD
Docteur en Imagerie Médicale au Laboratoire de Traitement de l'Information Medicale (LaTIM - INSERM UMR 1101)
Institut Brestois de recherche en Bio-Santé (IBRBS)
12 Avenue Foch, 29200 Brest, FRANCE
Tel: 06.75.12.24.90
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.castor-project.org/pipermail/castor-users/attachments/20201013/5b52073f/attachment-0001.html>
More information about the Castor-users
mailing list