<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div style="font-size:10pt; font-family:Gulim, sans-serif;"><p>Dear Carlotta Trigila,</p><p> </p><p>I had the same experience before.</p><p> </p><p>Until the <b>GATEv7.2</b>, the<b> surface definition</b> can be place <b>BEFORE </b>the <b>initialization command</b>.</p><p> </p><p>However, since the <b>GATEv8.0</b>, the <b>surface definition</b> MUST be placed <b>AFTER </b>the <b>initialization command</b>.</p><p> </p><p>Hopefully, someone can answer the question on why this significant change was arose since the GATEv8.0.</p><p> </p><p>Best regards,</p><p> </p><p>Han Gyu Kang</p><p> </p>--------Han Gyu Kang, Ph.D, Researcher<br><br>National Institute of Radiological Sciences (NIRS)<br>National Institutes for Quantum and Radiological Science and Technology (QST)<br>  4-9-1 Anagawa, Inage-ku, Chiba 263-8555, JAPAN<p> </p><p style="font-size:10pt;font-family:sans-serif;padding:0 0 0 10pt"><span>-----Original Message-----</span><br><b>From:</b> "JAN Sebastien"<sebastien.jan@cea.fr> <br><b>To:</b> "Carlotta Trigila"<ctrigila@ucdavis.edu>; "Mathieu Dupont"<mdupont@cppm.in2p3.fr>; "lovehangulp@naver.com"<lovehangulp@naver.com>; "gate-users@lists.opengatecollaboration.org"<gate-users@lists.opengatecollaboration.org>; <br><b>Cc:</b> <br><b>Sent:</b> 2020-12-17 (목) 01:09:48 (GMT+09:00)<br><b>Subject:</b> RE: [Gate-users] Surfaces definition in GATE v9.0<br> </p>

<xmeta http-equiv="Content-Type" content="text/html; charset=utf-8">
<xmeta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><![endif]--><!--[if gte mso 9]><![endif]--><!--[if gte mso 9]><![endif]-->
<!--  -->

<div>
<p><span lang="EN-US" style="font-size:11.0pt;font-family:Calibri,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Carlotta,</span></p>
<p><span lang="EN-US" style="font-size:11.0pt;font-family:Calibri,sans-serif;color:#1F497D;mso-fareast-language:EN-US">It was and it is not clear for me but the “trouble” is probably associated to the G4 modifications between the 10.4 and
 10.5 versions (when we moved on G4 10.5 for the Gate8.2 release)…This was not really studied at that time.</span></p>
<p><span lang="EN-US" style="font-size:11.0pt;font-family:Calibri,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers</span></p>
<p><span lang="EN-US" style="font-size:11.0pt;font-family:Calibri,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Seb</span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:11.0pt;font-family:Calibri,sans-serif">De :</span></b><span style="font-size:11.0pt;font-family:Calibri,sans-serif"> Gate-users <gate-users-bounces@lists.opengatecollaboration.org>
<b>De la part de</b> Carlotta Trigila<br>
<b>Envoyé :</b> mercredi 16 décembre 2020 16:32<br>
<b>À :</b> Mathieu Dupont <mdupont@cppm.in2p3.fr>; </span><span style="font-size:11.0pt;font-family:Malgun Gothic,sans-serif">강한규</span><span style="font-size:11.0pt;font-family:Calibri,sans-serif"> <lovehangulp@naver.com>; gate-users@lists.opengatecollaboration.org<br>
<b>Objet :</b> [Gate-users] Surfaces definition in GATE v9.0</span></p>
</div>
</div>
<p> </p>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">Dear GATE Users, </span></p>
</div>
<div>
<p> </p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">I am specifically addressing this e-mail to anyone using optical simulations and surface definition with GATE v9.0. </span></p>
</div>
<div>
<p> </p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">I noticed that in the last versions of GATE the definition of the surfaces for optical simulations has to be performed AFTER the "/gate/run/initialize" command. </span></p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">E.g. from <i><span style="background:white">optical.mac</span></i><span style="background:white"> benchmark example</span></span></p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">"
</span></p>
<p style="background:#1F1F24"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/run/initialize</span></p>
<p> </p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black"># Definition of surfaces</span></p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/detector/surfaces/name
<span>                            </span>Detection1<span> </span></span></p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/detector/surfaces/insert
<span>                          </span>Electronics</span></p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/detector/surfaces/Detection1/setSurface<span>           
</span>perfect_apd<span>   </span></span></p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/Electronics/surfaces/name<span>                         
</span>Detection2<span> </span></span></p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/Electronics/surfaces/insert<span>                       
</span>detector<span> </span></span></p>
<p style="background:#1F1F24;color:rgba(255, 255, 255, 0.85)"><span style="font-size:9.0pt;font-family:Menlo,serif;color:black">/gate/Electronics/surfaces/Detection2/setSurface
<span>        </span>perfect_apd<span> </span></span></p>
<p><span style="font-family:Calibri,sans-serif;color:black">"</span></p>
</div>
<div>
<p> </p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">If we move these commands BEFORE the initialization, the simulation crashes with a message like </span></p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:white">"[G4-cerr] ***** Illegal application state <</span><span style="font-size:9.0pt;font-family:Menlo,serif;color:white;background:#1F1F24">/gate/detector/surfaces/insert</span><span><span style="font-size:9.0pt;font-family:Menlo,serif;color:white"> </span></span><span style="font-size:9.0pt;font-family:Menlo,serif;color:white;background:#1F1F24">Electronics</span><span style="font-family:Calibri,sans-serif;color:white">>
 *****</span><span style="font-family:Calibri,sans-serif;color:black">".</span></p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">However, I am sure that with GATE v8.0 (and older) we were able to define them BEFORE the initialization. I am not sure of what happens with the v8.2.</span></p>
</div>
<div>
<p> </p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">Did someone ever notice it before? Did you have an idea of what could have changed? </span></p>
</div>
<div>
<p> </p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">Many thanks for your help, </span></p>
</div>
<div>
<p> </p>
</div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">Carlotta Trigila </span></p>
</div>
<div>
<p> </p>
</div>
<div>
<div>
<div>
<div>
<p><span style="font-family:Calibri,sans-serif;color:black">-- </span></p>
<p><span style="font-family:Calibri,sans-serif;color:black">Carlotta Trigila, PhD 
</span></p>
<p> </p>
<p><span style="font-family:Calibri,sans-serif;color:black">Department of Biomedical Engineering – GBSF 2505</span></p>
<p><span style="font-family:Calibri,sans-serif;color:black">University of California, Davis</span></p>
<p><span style="font-family:Calibri,sans-serif;color:black">451 East Health Sciences Drive</span></p>
<p><span style="font-family:Calibri,sans-serif;color:black">Davis, CA 95616 </span></p>
<p><span style="font-family:Calibri,sans-serif;color:black"><a href="http://ccjliu@ucdavis.edu" target="_blank" rel="noreferrer noopener">ctrigila@ucdavis.edu
</a></span></p>
<p><span style="font-family:Calibri,sans-serif;color:black"> </span></p>
</div>
</div>
</div>
</div>
<div>
<p> </p>
</div>
<div align="center" style="text-align:center">
<hr align="center" size="3" width="98%">
</div>
<div>
<p><b><span style="font-size:11.0pt;font-family:Calibri,sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:Calibri,sans-serif;color:black"> Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" rel="noreferrer noopener" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>>
 on behalf of Mathieu Dupont <<a href="mailto:mdupont@cppm.in2p3.fr" rel="noreferrer noopener" target="_blank">mdupont@cppm.in2p3.fr</a>><br>
<b>Sent:</b> Thursday, October 22, 2020 2:17 AM<br>
<b>To:</b> </span><span style="font-size:11.0pt;font-family:Malgun Gothic,sans-serif;color:black">강한규</span><span style="font-size:11.0pt;font-family:Calibri,sans-serif;color:black"> <<a href="mailto:lovehangulp@naver.com" rel="noreferrer noopener" target="_blank">lovehangulp@naver.com</a>><br>
<b>Cc:</b> GATE-users <<a href="mailto:Gate-users@lists.opengatecollaboration.org" rel="noreferrer noopener" target="_blank">Gate-users@lists.opengatecollaboration.org</a>><br>
<b>Subject:</b> Re: [Gate-users] GATEv9.0 Scintillation Process is NOT working.(Solved)</span>
</p>
<div>
<p> </p>
</div>
</div>
<div>
<div>
<p><span style="font-size:11.0pt">Thx for your report,<br>
<br>
The aim of my fix is to make scintillation working for the combination<br>
 "GATEv9.0  (with my patch) + Geant4.10.06.p02 "<br>
<br>
Can you test it, if you have time  ? <br>
<br>
<br>
<br>
On Thu, 22 Oct 2020 16:52:32 +0900<br>
</span><span style="font-size:11.0pt;font-family:Malgun Gothic,sans-serif">강한규</span><span style="font-size:11.0pt"> <<a href="mailto:lovehangulp@naver.com" rel="noreferrer noopener" target="_blank">lovehangulp@naver.com</a>> wrote:<br>
<br>
> Dear Mathieu Dupont and GATE users,<br>
>  <br>
> After downgrading the Geant4 version from Geant4.10.06.p02 to<br>
> Geant4.9.05.p01, the scintillation process works in GATEv9.0<br>
> (Attached file). (Before)GATEv9.0 + Geant4.10.06.p02 -> Scintillation<br>
> Process does NOT work. (After) GATEv9.0 + Geant4.9.05.p01 -><br>
> Scintillation Process does work. <br>
> You can find issue and fix on the following links of the GATE git hub.<br>
> Issue: <a href="https://github.com/OpenGATE/Gate/issues/346" rel="noreferrer noopener" target="_blank">https://github.com/OpenGATE/Gate/issues/346</a>
<br>
> Fix: <a href="https://github.com/OpenGATE/Gate/pull/368" rel="noreferrer noopener" target="_blank">https://github.com/OpenGATE/Gate/pull/368</a>
<br>
>  <br>
> Thanks Mathieu Dupont for your good advice.<br>
>  <br>
> Best regards,<br>
>  <br>
> Han Gyu Kang<br>
>  <br>
>  <br>
> --------Han Gyu Kang, Ph.D, Researcher<br>
> <br>
> National Institute of Radiological Sciences (NIRS)<br>
> National Institutes for Quantum and Radiological Science and<br>
> Technology (QST) 4-9-1 Anagawa, Inage-ku, Chiba 263-8555, JAPAN<br>
>  <br>
> -----Original Message-----<br>
> From: "</span><span style="font-size:11.0pt;font-family:Malgun Gothic,sans-serif">강한규</span><span style="font-size:11.0pt">"<<a href="mailto:lovehangulp@naver.com" rel="noreferrer noopener" target="_blank">lovehangulp@naver.com</a>><br>
> To: "GATE-users"<<a href="mailto:Gate-users@lists.opengatecollaboration.org" rel="noreferrer noopener" target="_blank">Gate-users@lists.opengatecollaboration.org</a>>;<br>
> Cc:<br>
> Sent: 2020-06-08 (</span><span style="font-size:11.0pt;font-family:Malgun Gothic,sans-serif">월</span><span style="font-size:11.0pt">) 20:20:02 (GMT+09:00)<br>
> Subject: [Gate-users] GATEv9.0 Scintillation Process is NOT working.<br>
>  <br>
> Dear GATE users,<br>
>  <br>
> Is there anyone who checked the scintillation process in GATEv9.0?<br>
>  <br>
> I installed GATEv9.0 on my Ubuntu Linux PC.<br>
> Of course, the "GATE_USE_OPTICAL" option was turned ON during the<br>
> installation. After GATE installation, I checked that everything<br>
> works fine except the scintillation process. <br>
> The optical.mac in the benchImaging folder is working well as it uses<br>
> "opticalphoton" as a source. I checked that Cerenkov process is also<br>
> working well. <br>
> However, "Scintillation Process" is NOT working in GATEv9.0 optical<br>
> simulation. If there is anyone who succeeded in scintillation process<br>
> in GATEv9.0, please let me know. <br>
> Best regards,<br>
>  <br>
> Han Gyu Kang<br>
>  <br>
> --------Han Gyu Kang, Ph.D, Researcher<br>
> <br>
> National Institute of Radiological Sciences (NIRS)<br>
> National Institutes for Quantum and Radiological Science and<br>
> Technology (QST) 4-9-1 Anagawa, Inage-ku, Chiba 263-8555, JAPAN<br>
> <br>
> <br>
> <br>
<br>
<br>
<br>
-- <br>
Démobilisé contre la réforme des retraites et la LPPR<br>
-- <br>
Mathieu Dupont - Ingénieur de Recherche<br>
CENTRE DE PHYSIQUE DES PARTICULES DE MARSEILLE<br>
UMR 7346 - Aix-Marseille Université - CNRS/IN2P3<br>
163 avenue de Luminy, Case 902, F -13288 Marseille CEDEX 09<br>
Tél.: +33 (0) 4 91 82 72 19<br>
Site : cppm.in2p3.fr - Email : <a href="mailto:mdupont@cppm.in2p3.fr" rel="noreferrer noopener" target="_blank">mdupont@cppm.in2p3.fr</a><br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" rel="noreferrer noopener" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer noopener" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></span></p>
</div>
</div>
</div>




</xmeta></xmeta></div></body></html><table style='display:none'><tr><td><img src="https://mail.naver.com/readReceipt/notify/?img=frRC1zkrWrmYaXIn%2B6%2B5a63oFot9KopCF634px3CpAb%2FKoi4axEwK4Udaxp0pEIo%2BrkSKAuw74lR74l4b4u516YQar%2BC%2BzER%2BBF0bNFgWz0q%2BHK5WXI0W4%2BC%2BzkoWrwnM6iTb4Jd16e574eZpm%3D%3D.gif" border="0"/></td></tr></table>