<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hmm, everything looks fine.</div>
<div class=""><br class="">
</div>
<div class="">
<div apple-content-edited="true" class="">If you’re willing to share, send me a macro I can run to reproduce the crash. I can’t promise I’ll have time to look that deeply into it, but I’m always curious when a command that should work causes a crash (and the
official Gate developers can always use some help to debug!).</div>
<div apple-content-edited="true" class=""><br class="">
</div>
<div apple-content-edited="true" class="">Marc<br class="">
<br class="">
<br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Jun 3, 2015, at 14:52, Devin VanElburg <<a href="mailto:vanelbud@tbh.net" class="">vanelbud@tbh.net</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta name="Author" content="Novell GroupWise WebAccess" class="">
<div style="font-family: Tahoma, sans-serif; font-size: 13px; " class="">Here is what I get with the describe command:<br class="">
<br class="">
Idle> /gate/systems/cylindricalPET/describe <br class="">
<br class="">
GATE object: 'systems/cylindricalPET'<br class="">
Components: <br class="">
<br class="">
GATE object: 'systems/cylindricalPET/base'<br class="">
Attached to volume: cylindricalPET<br class="">
Nb of children: 1<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/rsector'<br class="">
Attached to volume: headblock<br class="">
Nb of children: 1<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/module'<br class="">
Attached to volume: crystalboard<br class="">
Nb of children: 1<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/submodule'<br class="">
Attached to volume: ---<br class="">
Nb of children: 1<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/crystal'<br class="">
Attached to volume: crystal<br class="">
Nb of children: 4<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/layer0'<br class="">
Attached to volume: lyso<br class="">
Nb of children: 0<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/layer1'<br class="">
Attached to volume: ---<br class="">
Nb of children: 0<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/layer2'<br class="">
Attached to volume: ---<br class="">
Nb of children: 0<br class="">
<br class="">
GATE object: 'systems/cylindricalPET/layer3'<br class="">
Attached to volume: ---<br class="">
Nb of children: 0<br class="">
geometrical design type: 1<br class="">
ring diameter: 8.014 cm <br class="">
rsector axial pitch: 0 fm <br class="">
rsector azimuthal pitch: 180 degree<br class="">
rsector tangential size: 5.766 cm <br class="">
rsector axial size: 5.766 cm <br class="">
module axial size: 5.766 cm <br class="">
module tangential size: 5.766 cm <br class="">
module axial pitch: 0 fm <br class="">
module tangential pitch: 0 fm <br class="">
submodule axial size: 5.766 cm <br class="">
submodule tangential size: 5.766 cm <br class="">
submodule axial pitch: 0 fm <br class="">
submodule tangential pitch: 0 fm <br class="">
crystal radial size: 1.3 cm <br class="">
crystal axial size: 2.32 mm <br class="">
crystal tangential size: 2.32 mm <br class="">
crystal axial pitch: 2.4 mm <br class="">
crystal tangential pitch: 2.4 mm <br class="">
layer0 radial size: 1.3 cm <br class="">
in layer0 interaction length: 6.5 mm <br class="">
Axial nb of rsectors: 1<br class="">
Azimuthal nb of rsectors: 2<br class="">
Axial nb of modules: 1<br class="">
Tangential nb of modules: 1<br class="">
Axial nb of submodules: 1<br class="">
Tangential nb of submodules: 1<br class="">
Axial nb of crystals: 24<br class="">
Tangential nb of crystals: 24<br class="">
Radial nb of layers: 1<br class="">
Idle> <br class="">
<br class="">
<br class="">
Regards,<br class="">
Devin Van Elburg<br class="">
<br class="">
------------------------<br class="">
Physics w/ c/ Biomedical Physics<br class="">
Lakehead University<br class="">
<br class="">
<br class="">
>>> Marc Chamberland <<a href="mailto:MarcChamberland@cmail.carleton.ca" class="">MarcChamberland@cmail.carleton.ca</a>> 06/03/15 11:46 AM >>><br class="">
I had a quick look at the source code and can’t see anything obvious. However, it was recently re-written, so there might still be bugs in it. From my limited experience and knowledge, I’d stick with the cylindrical PET system for now. Also, can you post what
you get when you do:<br class="">
<br class="">
/gate/systems/cylindricalPET/describe<br class="">
<br class="">
after you’ve defined your entire system? No idea if it’ll be of any help, but when I run into bugs like this, I throw everything at the wall and see what sticks, so to speak.
<br class="">
<br class="">
Marc<br class="">
<br class="">
<br class="">
<br class="">
> On Jun 3, 2015, at 11:14, Devin VanElburg <<a href="mailto:vanelbud@tbh.net" class="">vanelbud@tbh.net</a>> wrote:<br class="">
> <br class="">
> Thanks for your input Marc!<br class="">
> <br class="">
> I'm not particularly comfortable with C++, so I don't want to be poking around at the code. There must be something I'm missing. I'll keep plugging away, and hopefully I find out what's causing my issue.<br class="">
> <br class="">
> Devin Van Elburg<br class="">
> <br class="">
> ------------------------<br class="">
> Physics w/ c/ Biomedical Physics<br class="">
> Lakehead University<br class="">
> <br class="">
> <br class="">
> >>> Marc Chamberland 06/03/15 10:16 AM >>><br class="">
> Thanks, Devin. That’s much more clear.<br class="">
> <br class="">
> I’ve never used anything but the default policy. However at first sight, it looks like you’re doing everything right. Maybe someone with more experience can chime in, but it’s also possible this is a bug. If you’re comfortable with C++, I’d suggest you take
a quick look at the area of the code where the error message is produced and see if anything jumps at you.<br class="">
> <br class="">
> Marc<br class="">
> <br class="">
> <br class="">
>> On Jun 3, 2015, at 10:04, Devin VanElburg <<a href="mailto:vanelbud@tbh.net" class="">vanelbud@tbh.net</a>> wrote:<br class="">
>> <br class="">
>> Hello Marc, <br class="">
>> <br class="">
>> I'll try and explain a little better what I'm trying to do. I have defined my system as a PETscanner and attached the daughter volumes as follows:<br class="">
>> <br class="">
>> /gate/systems/PETscanner/level1/attach headblock<br class="">
>> /gate/systems/PETscanner/level2/attach crystalboard<br class="">
>> /gate/systems/PETscanner/level3/attach crystal<br class="">
>> /gate/systems/PETscanner/layer0/attach lyso<br class="">
>> /gate/lyso/attachCrystalSD<br class="">
>> <br class="">
>> where 'crystal' is repeated as a cubicArray (24x24) and 'headblock' is repeated twice with a ring repeater. I now have two opposing lyso crystals with the attached CrystalSD. When using the default readout policy:<br class="">
>> <br class="">
>> /gate/digitizer/Singles/readout/setPolicy TakeEnergyWinner<br class="">
>> <br class="">
>> My simulation runs fine, and the root output I receive is expected (511keV peak as I am using a Na-22 source for positron annihilation) for both Singles and Coincidences. However, when I try:<br class="">
>> <br class="">
>> /gate/digitizer/Singles/readout/setPolicy TakeEnergyCentroid<br class="">
>> <br class="">
>> I get a break with the following message:<br class="">
>> <br class="">
>> [systems/PETscanner::FindComponent]:<br class="">
>> Could not find the request system component 'crystal'!<br class="">
>> <br class="">
>> -------- EEEE ------- G4Exception-START -------- EEEE -------<br class="">
>> *** G4Exception : ProcessPulseList<br class="">
>> issued by : GateReadout::ProcessPulseList<br class="">
>> Failed to get the array component corresponding to the crystal. Abort.<br class="">
>> <br class="">
>> *** Fatal Exception *** core dump ***<br class="">
>> -------- EEEE -------- G4Exception-END --------- EEEE -------<br class="">
>> <br class="">
>> <br class="">
>> *** G4Exception: Aborting execution ***<br class="">
>> Aborted (core dumped)<br class="">
>> <br class="">
>> <br class="">
>> What I take from this is that I need to use a system that I can attach a volume to a so-called 'crystal' level. I've been playing with cylindricalPET and redefined my system as follows:<br class="">
>> <br class="">
>> /gate/systems/cylindricalPET/rsector/attach headblock<br class="">
>> /gate/systems/cylindricalPET/module/attach crystalboard<br class="">
>> /gate/systems/cylindricalPET/crystal/attach crystal<br class="">
>> /gate/systems/cylindricalPET/layer0/attach lyso<br class="">
>> /gate/lyso/attachCrystalSD<br class="">
>> <br class="">
>> that way, I have attached my 'crystal' volume to a 'crystal' level in the system hierarchy as I assume the error message suggested. Even still, I get the break segmentation violation. I also get the same error when switching to TakeEnergyCentroid for the
cylindricalPET example that GATE supplies. The wiki says to ensure the Depth is taken just above the crystal, which I did. In fact I tried running it with the depth at all levels and they all failed. I'm at a loss, I can't seem to get the TakeEnergyCentroid
policy to work despite my best efforts!<br class="">
>> <br class="">
>> By the way, ignore my comment with my previous email concerning the number of plates with a ring repeater. That was a readout depth issue and it's working now.<br class="">
>> <br class="">
>> I'd appreciate any help I can get here!<br class="">
>> <br class="">
>> Regards,<br class="">
>> Devin Van Elburg<br class="">
>> <br class="">
>> ------------------------<br class="">
>> Physics w/ c/ Biomedical Physics<br class="">
>> Lakehead University<br class="">
>> <br class="">
>> <br class="">
>> <br class="">
>> <br class="">
>> >>> Marc Chamberland 06/02/15 5:00 PM >>><br class="">
>> Hi Devin,<br class="">
>> <br class="">
>> I’m not sure I understand what you’re trying to do and what failed to work. Can you provide more details?<br class="">
>> <br class="">
>> Also, did you attach a crystalSD to your plates, as outlined here: <a href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.1:Attaching_the_sensitive_detectors#The_crystalSD" class="">
http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.1:Attaching_the_sensitive_detectors#The_crystalSD</a><br class="">
>> <br class="">
>> Cheers,<br class="">
>> Marc<br class="">
>> <br class="">
>> <br class="">
>> <br class="">
>> __________________________<br class="">
>> <br class="">
>> Marc Chamberland, PhD<br class="">
>> Department of Physics<br class="">
>> Carleton University<br class="">
>> Ottawa (ON)<br class="">
>> <br class="">
>>> On Jun 2, 2015, at 16:49, Devin VanElburg <<a href="mailto:vanelbud@tbh.net" class="">vanelbud@tbh.net</a>> wrote:<br class="">
>>> <br class="">
>>> Hello gate users,<br class="">
>>> <br class="">
>>> I am simulating a PET system with two plates. I would like to use the takeEnergyCentroid option for the digitizer's readout. However, I need to attach a volume to a 'crystal' of a system (according to the error message I keep getting). Thus a PETscanner
system cannot work since it uses level1-4 and layers for system attachment. The I tried a cylindricalPET system with a ring repeater of 2, and that also didn't work. Interestingly, cylindricalPET works for a 4+ plate ring system, but no singles or coincidences
in the output for 2-3 plates (with only the ring repeat number changed). Can anyone offer any insight as to what I should do?<br class="">
>>> <br class="">
>>> Regards,<br class="">
>>> Devin Van Elburg<br class="">
>>> <br class="">
>>> ------------------------<br class="">
>>> Physics w/ c/ Biomedical Physics<br class="">
>>> Lakehead University<br class="">
>>> _______________________________________________<br class="">
>>> Gate-users mailing list<br class="">
>>> <a href="mailto:Gate-users@lists.opengatecollaboration.org" class="">Gate-users@lists.opengatecollaboration.org</a><br class="">
>>> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" class="">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br class="">
>> <br class="">
> <br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>