<div dir="ltr"><div>Dear Leo,<br><br>I went through your code. I think I found a fix. <br><br>If you look at: <a href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V6.2:Generating_and_tracking_optical_photons#Detection_of_optical_photons">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V6.2:Generating_and_tracking_optical_photons#Detection_of_optical_photons</a><br>
<br></div>You'll see that "The hits generated by the detection of the optical photons are generated
in the volume from which the optical photons reached the surface. This
volume should therefore be a sensitive detector."
<div><br></div><div>What you define as myLSOcrystal in your geometry should therefore be a sensitive detector (connected to your digitizer, i.e CrystalSD). Just replace:<br></div><div><br>/gate/myLSOcrystal/attachPhantomSD by /gate/myLSOcrystal/attachCrystalSD<br>
<br></div><div>I tested the new code and it worked.<br><br></div><div>Let me know if this helps.<br><br></div><div>vesna <br></div></div>