<div dir="ltr"><div><div><div>Dear Nuray,<br><br>I just tried your macro using LSO instead of Scinti-detector-C10H11 and it worked. <br></div>I see the scintillation photons. <br></div><br></div>vesna<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote">On Tue, Dec 2, 2014 at 12:33 PM, Nuray Yavuzkanat <span dir="ltr"><<a href="mailto:ny535@york.ac.uk" target="_blank">ny535@york.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:palatino,georgia,verdana,arial,sans-serif;font-size:medium;line-height:24px;text-align:justify">Dear Gate users,</span><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:palatino,georgia,verdana,arial,sans-serif;font-size:medium;line-height:24px;text-align:justify">I am simulating an OpticalSystem in Gate6.2 for obtaining number of detected photon on scintillator volume. I changed many parameters such as; scintillation material which has already defined in Materials.xml file, source etc. but nothing change in Root output file. I can't see any photon produced by plastic scintillator, no detection of photon. Also I simulated OpticalSystem examples and still I can't see any photon detected. Can anyone help me in advance ? Thank you .</div><div style="font-family:palatino,georgia,verdana,arial,sans-serif;font-size:medium;line-height:24px;text-align:justify">Below is my macro.<br></div></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:palatino,georgia,verdana,arial,sans-serif;font-size:medium;line-height:24px;text-align:justify">Best Regards</span><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:palatino,georgia,verdana,arial,sans-serif;font-size:medium;line-height:24px;text-align:justify">Nuray</span></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># VISUALISATION</div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/open OGLSQt</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/viewer/set/viewpointThetaPhi <span style="white-space:pre-wrap"> </span>30 60</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/viewer/zoom <span style="white-space:pre-wrap"> </span>4</div><div style="font-family:arial,sans-serif;font-size:13px">#/vis/viewer/set/style surface</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/drawVolume</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/scene/add/trajectories</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/scene/add/hits</div><div style="font-family:arial,sans-serif;font-size:13px">/tracking/storeTrajectory 1</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/scene/endOfEventAction accumulate 100</div><div style="font-family:arial,sans-serif;font-size:13px">/vis/viewer/update</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/geometry/setMaterialDatabase<span style="white-space:pre-wrap"> </span>GateMaterials.db</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#=========================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># W O R L D</div><div style="font-family:arial,sans-serif;font-size:13px">#=========================================================</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/world/geometry/setXLength 10 cm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/world/geometry/setYLength 10 cm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/world/geometry/setZLength 10 cm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/world/setMaterial<span style="white-space:pre-wrap"> </span>Air</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#=========================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># G E O M E T R Y</div><div style="font-family:arial,sans-serif;font-size:13px">#=========================================================</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># === optical system ===</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/world/daughters/name OpticalSystem</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/world/daughters/insert box</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/geometry/setXLength 10. mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/geometry/setYLength 7.0 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/geometry/setZLength 7.0 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/placement/setTranslation 0 0 0 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/setMaterial Air</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/vis/setColor white</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/vis/forceWireframe</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/vis/setVisible 1</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># === crystal ===</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/daughters/name scintillator</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/daughters/insert box</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/geometry/setXLength 3 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/geometry/setYLength 7 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/geometry/setZLength 7 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/placement/setTranslation -1.5 0 0 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/setMaterial Scinti-detector-C10H11</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/vis/setColor gray</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/vis/forceSolid</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/attachCrystalSD</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># === electronic board ===</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/daughters/name Electronics</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/OpticalSystem/daughters/insert box</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/geometry/setXLength 2 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/geometry/setYLength 7 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/geometry/setZLength 7 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/setMaterial Air </div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/placement/setTranslation -4 0 0 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/vis/setColor blue</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/Electronics/vis/forceSolid</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/systems/OpticalSystem/crystal/attach scintillator</div><div style="font-family:arial,sans-serif;font-size:13px"># ===surface=====</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/surfaces/name <span style="white-space:pre-wrap"> </span>Detection1</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/surfaces/insert <span style="white-space:pre-wrap"> </span>Electronics</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/scintillator/surfaces/Detection1/setSurface <span style="white-space:pre-wrap"> </span>perfect_apd </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#/gate/Electronics/surfaces/name <span style="white-space:pre-wrap"> </span>Detection2</div><div style="font-family:arial,sans-serif;font-size:13px">#/gate/Electronics/surfaces/insert <span style="white-space:pre-wrap"> </span> scintillator</div><div style="font-family:arial,sans-serif;font-size:13px">#/gate/Electronics/surfaces/Detection2/setSurface <span style="white-space:pre-wrap"> </span>perfect_apd </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#=========================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># P H Y S I C S</div><div style="font-family:arial,sans-serif;font-size:13px">#=========================================================</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>PhotoElectric</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processes/PhotoElectric/setModel <span style="white-space:pre-wrap"> </span>PenelopeModel</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>Compton</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processes/Compton/setModel <span style="white-space:pre-wrap"> </span>PenelopeModel</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>RayleighScattering</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processes/RayleighScattering/setModel <span style="white-space:pre-wrap"> </span>PenelopeModel</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>ElectronIonisation</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processes/ElectronIonisation/setModel <span style="white-space:pre-wrap"> </span>StandardModel e-</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processes/ElectronIonisation/setModel <span style="white-space:pre-wrap"> </span>StandardModel e+</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>OpticalAbsorption</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess<span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span>PositronAnnihilation</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>Scintillation</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>OpticalBoundary</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>OpticalRayleigh</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/addProcess <span style="white-space:pre-wrap"> </span>RadioactiveDecay</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processList<span style="white-space:pre-wrap"> </span>Enabled</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/physics/processList <span style="white-space:pre-wrap"> </span>Initialized</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"># I N I T I A L I Z E </div><div style="font-family:arial,sans-serif;font-size:13px">/gate/run/initialize</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># DIGITIZER</div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/digitizer/Singles/insert opticaladder</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/digitizer/Singles/insert readout</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/digitizer/Singles/readout/setDepth 1</div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># SOURCE</div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/addSource<span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </span>PETsource</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/particle <span style="white-space:pre-wrap"> </span>e+</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/energytype <span style="white-space:pre-wrap"> </span>Fluor18</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/setActivity 100 becquerel</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/angtype iso</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/type<span style="white-space:pre-wrap"> </span>Volume</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/shape <span style="white-space:pre-wrap"> </span>Cylinder</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/radius <span style="white-space:pre-wrap"> </span>0.3 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/halfz <span style="white-space:pre-wrap"> </span>7 mm</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/setForcedHalfLife <span style="white-space:pre-wrap"> </span>6586 s </div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/direction <span style="white-space:pre-wrap"> </span>-10. 0. 0.</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/centre <span style="white-space:pre-wrap"> </span>4. 0. 0. mm </div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/gps/angtype iso</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/PETsource/visualize<span style="white-space:pre-wrap"> </span>2000 red 10 </div><div style="font-family:arial,sans-serif;font-size:13px">/gate/source/list</div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># D A T A O U T P U T </div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/enable</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setFileName OutputTest</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setRootHitFlag 1</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setRootSinglesFlag 1</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setRootOpticalFlag 1</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setRootRecordFlag<span style="white-space:pre-wrap"> </span> 0</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setSaveRndmFlag 0</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/root/setRootNtupleFlag 1</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/analysis/disable</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/output/fastanalysis/enable</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px"># M E A S U R E M E N T S E T T I N G S </div><div style="font-family:arial,sans-serif;font-size:13px">#=====================================================</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">/gate/application/setTimeSlice 4 s</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/application/setTimeStart 0 s</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/application/setTimeStop 4 s</div><div style="font-family:arial,sans-serif;font-size:13px">#/gate/output/allowNoOutput</div><div style="font-family:arial,sans-serif;font-size:13px">/gate/application/startDAQ</div></div>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br></div></div>