<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello All,<div class=""><br class=""></div><div class=""> I’m working on adapting castor-PetScannerLutEx to match a Gate geometry that is incompatible with castor-GATEMacToGeo. However on my first run of castor-PetScannerLutEx (no changes) I get a seg fault. </div><div class="">I found there was a bug at line 342, the oMatrix needs to be initialized with nb_resctors +1 <span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">oMatrix *****crystal_center = new oMatrix ****[nb_rsectors<b class="">+1</b>];</span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class="">After that seemed to get the program to compile alright, but I’m having some difficulty in getting sensible results out of it with my geometry. For now I’m using GATE with a cylindricalPET system with only a single ring of 28 rsectors, no layers and 16 x 16 crystal arrangement, nothing that castor-GateRootToCastor couldn’t handle. I end up with a non-sequential castor indexing, that I think is the cause of my problems. </span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class="">Are there any further tutorials on using </span>castor-PetScannerLutEx ? </div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-Peter Neilson</div></div></body></html>