<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="">
Dear Suhwan,
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/OpenGATE/GateContrib/tree/master/imaging/LUTDavisModel" class="">https://github.com/OpenGATE/GateContrib/tree/master/imaging/LUTDavisModel</a></div>
<div class=""><br class="">
</div>
<div class=""></div>
<div class="">Here you find an example of an optical simulation.</div>
<div class=""><br class="">
</div>
<div class="">To define a surface (5.5 <a href="https://opengate.readthedocs.io/en/latest/generating_and_tracking_optical_photons.html#id10" class="">https://opengate.readthedocs.io/en/latest/generating_and_tracking_optical_photons.html#id10</a>) you need to </div>
<div class="">set the surface definition (from your Surfaces.xml file) between Volume 1 and 2.</div>
<div class=""><br class="">
</div>
<span class="">/gate/**Volume2**/surfaces/name   Surface-From-Volume1-To-Volume2<br class="">
/gate/**Volume2**/surfaces/insert **Volume1**<br class="">
<br class="">
</span>If you want a crystal with multiple surface treatments just add a geometry to one side of the crystal and define the surface between the two volumes. Another volume on the other side of the crystal etc. The LUT Davis provides rough and polished surfaces
 based on measured data. 
<div class=""><span class="">With what do you want to wrap the crystal? The LUT Davis model provides also surfaces that include the surface finish+a reflector (Teflon or ESR).</span>
<div class=""><br class="">
</div>
<div class="">I suggest you only model single detectors and not a full ring since optical simulation can take quite some time/memory.</div>
<div class="">If you are using <span style="orphans: 2; white-space: pre-wrap; widows: 2;" class="">GATEv9.0 + Geant4.10.06.p02 (Scintillation Process does NOT work) a</span>lso check this: <a href="http://lists.opengatecollaboration.org/pipermail/gate-users/2020-October/011977.html" class="" style="caret-color: rgb(0, 104, 218);">http://lists.opengatecollaboration.org/pipermail/gate-users/2020-October/011977.html</a></div>
<div class=""><br class="">
</div>
<div class="">Hope this helps!</div>
<div class="">Best wishes,</div>
<div class="">Mariele</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class=""><span class=""><br class="">
<blockquote type="cite" class="">On 17 Mar 2021, at 12:00, <a href="mailto:gate-users-request@lists.opengatecollaboration.org" class="">
gate-users-request@lists.opengatecollaboration.org</a> wrote:<br class="">
<br class="">
Send Gate-users mailing list submissions to<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span><a href="mailto:gate-users@lists.opengatecollaboration.org" class="">gate-users@lists.opengatecollaboration.org</a><br class="">
<br class="">
To subscribe or unsubscribe via the World Wide Web, visit<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br class="">
or, via email, send a message with subject or body 'help' to<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>gate-users-request@lists.opengatecollaboration.org<br class="">
<br class="">
You can reach the person managing the list at<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>gate-users-owner@lists.opengatecollaboration.org<br class="">
<br class="">
When replying, please edit your Subject line so it is more specific<br class="">
than "Re: Contents of Gate-users digest..."<br class="">
<br class="">
<br class="">
Today's Topics:<br class="">
<br class="">
  1.  Gate optical simulation (surface treatment, macro code.<br class="">
     etc.) (김수환)<br class="">
<br class="">
<br class="">
----------------------------------------------------------------------<br class="">
<br class="">
Message: 1<br class="">
Date: Wed, 17 Mar 2021 16:30:02 +0900<br class="">
From: 김수환 <ksh2454178@naver.com><br class="">
To: <gate-users@lists.opengatecollaboration.org><br class="">
Subject: [Gate-users]  Gate optical simulation (surface treatment,<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>macro code. etc.)<br class="">
Message-ID: <257c8bc378b8499cb8c4bdca98f3b22@cweb017.nm.nfra.io><br class="">
Content-Type: text/plain; charset="utf-8"<br class="">
<br class="">
Dear GATE users,<br class="">
<br class="">
I am going to do a GATE optical simulation .<br class="">
I am using the UNIFIED model for surface treatment.<br class="">
But, I'm confused because it's my first time simulating GATE optical. <br class="">
<br class="">
So, Let me ask you a few things.<br class="">
First, I want to attach the senosor behind the 'epoxy_co' I set. What number should 'setDepth N' be set to?<br class="">
</blockquote>
<blockquote type="cite" class="">Second, I want to roughen(0~2.5mm) half of the LYSO(LYSO length is 5mm) crystal and polish(2.5~5mm) the other half. How should I set it up? <br class="">
Third, I want to wrap the reflector and absorber on the outside of the crystal.<br class="">
Fourth, I am not sure if I set the setMaterial of 'modoule' & 'modoulec' correctly. <br class="">
<br class="">
The geometry of the GATE opticla macro file that I designed is as follows.<br class="">
<br class="">
Please tell me if there is something wrong. <br class="">
<br class="">
<br class="">
-------------------------------------------------------------------------------<br class="">
-------------------------------------------------------------------------------<br class="">
#     W O R L D<br class="">
/gate/world/geometry/setXLength 40. cm<br class="">
/gate/world/geometry/setYLength 40. cm<br class="">
/gate/world/geometry/setZLength 40. cm<br class="">
/gate/world/setMaterial Air<br class="">
/gate/world/vis/setVisible 0<br class="">
<br class="">
/gate/world/daughters/name OpticalSystem<br class="">
/gate/world/daughters/insert cylinder<br class="">
/gate/OpticalSystem/geometry/setRmax 60.0 mm<br class="">
/gate/OpticalSystem/geometry/setRmin 20  mm<br class="">
/gate/OpticalSystem/geometry/setHeight 10  mm<br class="">
/gate/OpticalSystem/placement/setTranslation 0 0 0.0 mm<br class="">
/gate/OpticalSystem/setMaterial Air<br class="">
#/gate/OpticalSystem/vis/forceWireframe<br class="">
#/gate/OpticalSystem/vis/setColor white<br class="">
/gate/OpticalSystem/vis/setVisible 0<br class="">
<br class="">
/gate/OpticalSystem/daughters/name modoule<br class="">
/gate/OpticalSystem/daughters/insert box<br class="">
/gate/modoule/geometry/setXLength 11.0 mm<br class="">
/gate/modoule/geometry/setYLength 2.2 mm<br class="">
/gate/modoule/geometry/setZLength 2.2 mm<br class="">
/gate/modoule/placement/setTranslation 25.5 0. 0. mm<br class="">
/gate/modoule/setMaterial Air<br class="">
/gate/modoule/vis/setColor yellow<br class="">
/gate/modoule/vis/forceWireframe<br class="">
<br class="">
/gate/modoule/daughters/name modoulec<br class="">
/gate/modoule/daughters/insert box<br class="">
/gate/modoulec/geometry/setXLength 10.46 mm<br class="">
/gate/modoulec/geometry/setYLength 2.2 mm<br class="">
/gate/modoulec/geometry/setZLength 2.2 mm<br class="">
/gate/modoulec/placement/setTranslation -0.27 0. 0. mm<br class="">
/gate/modoulec/setMaterial Air<br class="">
/gate/modoulec/vis/setColor red<br class="">
/gate/modoulec/vis/forceWireframe<br class="">
<br class="">
/gate/modoulec/daughters/name crystal<br class="">
/gate/modoulec/daughters/insert box<br class="">
/gate/crystal/geometry/setXLength 5. mm<br class="">
/gate/crystal/geometry/setYLength 2.0 mm<br class="">
/gate/crystal/geometry/setZLength 2.0 mm<br class="">
/gate/crystal/placement/setTranslation -2.73 0. 0. mm<br class="">
/gate/crystal/setMaterial LYSO<br class="">
/gate/crystal/vis/setColor green<br class="">
/gate/crystal/vis/forceWireframe<br class="">
<br class="">
/gate/modoulec/daughters/name crystal2<br class="">
/gate/modoulec/daughters/insert box<br class="">
/gate/crystal2/geometry/setXLength 5. mm<br class="">
/gate/crystal2/geometry/setYLength 2.0 mm<br class="">
/gate/crystal2/geometry/setZLength 2.0 mm<br class="">
/gate/crystal2/placement/setTranslation 2.27 0. 0. mm<br class="">
/gate/crystal2/setMaterial BGO<br class="">
/gate/crystal2/vis/setColor white<br class="">
/gate/crystal2/vis/forceWireframe<br class="">
<br class="">
/gate/modoule/daughters/name grease<br class="">
/gate/modoule/daughters/insert box<br class="">
/gate/grease/geometry/setXLength 0.01 mm<br class="">
/gate/grease/geometry/setYLength 2. mm<br class="">
/gate/grease/geometry/setZLength 2. mm<br class="">
/gate/grease/setMaterial Meltmount<br class="">
/gate/grease/placement/setTranslation 4.505 0 0. mm<br class="">
/gate/grease/vis/setColor white<br class="">
/gate/grease/vis/forceWireframe<br class="">
<br class="">
/gate/modoule/daughters/name epoxy_co<br class="">
/gate/modoule/daughters/insert box<br class="">
/gate/swindow/geometry/setXLength 0.3 mm<br class="">
/gate/swindow/geometry/setYLength 2. mm<br class="">
/gate/swindow/geometry/setZLength 2. mm<br class="">
/gate/swindow/setMaterial Epoxy<br class="">
/gate/swindow/placement/setTranslation 4.66 0 0. mm<br class="">
/gate/swindow/vis/setColor yellow<br class="">
/gate/swindow/vis/forceWireframe<br class="">
<br class="">
/gate/modoule/repeaters/insert ring<br class="">
/gate/modoule/ring/setRepeatNumber 2<br class="">
-------------------------------------------------------------------------------<br class="">
-------------------------------------------------------------------------------<br class="">
<br class="">
<br class="">
Thanks a lot for your help.<br class="">
Best regards,<br class="">
<br class="">
Suhwan Kim<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
-------------- next part --------------<br class="">
An HTML attachment was scrubbed...<br class="">
URL: <<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210317/fabab26b/attachment-0001.html" class="">http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210317/fabab26b/attachment-0001.html</a>><br class="">
<br class="">
------------------------------<br class="">
<br class="">
Subject: Digest Footer<br class="">
<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="">
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br class="">
<br class="">
------------------------------<br class="">
<br class="">
End of Gate-users Digest, Vol 178, Issue 36<br class="">
*******************************************<br class="">
</blockquote>
<br class="">
</span></div>
</div>
</div>
</div>
</div>
</body>
</html>