<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px"><div><span></span></div><div></div><div id="yui_3_16_0_ym19_1_1472786820633_11417"> </div><div class="signature" id="yui_3_16_0_ym19_1_1472786820633_11419"><div id="yui_3_16_0_ym19_1_1472786820633_11418"><font color="#00007f" face="bookman old style, new york, times, serif"></font> </div><div tabindex="0" style="outline: none 0px; display: table; width: 769px; box-sizing: border-box; padding-top: 12px; padding-left: 0px; background-color: inherit;" id="yui_3_16_0_ym19_1_1472786820633_11459"><div style="display: table-cell; width: auto; word-wrap: break-word; word-break: break-word;" id="yui_3_16_0_ym19_1_1472786820633_11460"><div id="yui_3_16_0_ym19_1_1472786820633_11461"><div id="yui_3_16_0_ym19_1_1472786820633_11462"><div id="yui_3_16_0_ym19_1_1472786820633_11463"><div id="yui_3_16_0_ym19_1_1472786820633_11464">Hi David,</div><div id="yui_3_16_0_ym19_1_1472786820633_11465">Thank you for the information.</div><div id="yui_3_16_0_ym19_1_1472786820633_11466"><br clear="none" id="yui_3_16_0_ym19_1_1472786820633_11467"></div><div id="yui_3_16_0_ym19_1_1472786820633_11468"><span id="yui_3_16_0_ym19_1_1472786820633_11469">Actually, I did the same thing as yours. </span><span id="yui_3_16_0_ym19_1_1472786820633_11470">However, the error message occurred when I click on the file in ROOT file browser. When I click on my output root file on the left tab, the error ' </span>failed to read the file type data' pop-up in the terminal window. Did I use the right actor for positron range measurement, TrackLength actor?</div><div id="yui_3_16_0_ym19_1_1472786820633_11471"><br clear="none" id="yui_3_16_0_ym19_1_1472786820633_11472"></div><div id="yui_3_16_0_ym19_1_1472786820633_11473">Please help, thank you.</div><div id="yui_3_16_0_ym19_1_1472786820633_11474"></div><div id="yui_3_16_0_ym19_1_1472786820633_11475"> </div><div id="yui_3_16_0_ym19_1_1472786820633_11476"><div id="yui_3_16_0_ym19_1_1472786820633_11477"><font color="#00007f" face="bookman old style, new york, times, serif" id="yui_3_16_0_ym19_1_1472786820633_11478"></font>Rukiah</div><div id="yui_3_16_0_ym19_1_1472786820633_11479">PhD Candidate</div><div id="yui_3_16_0_ym19_1_1472786820633_11480">The University of Sydney</div><div id="yui_3_16_0_ym19_1_1472786820633_11481">Australia </div><div dir="ltr" id="yui_3_16_0_ym19_1_1472786820633_11482"><br id="yui_3_16_0_ym19_1_1472786820633_11483"></div></div></div></div></div></div></div><div style="color:rgb(0, 0, 0);font-family:bookman old style, new york, times, serif;font-size:13px;font-style:normal;background-color:transparent;" id="yui_3_16_0_ym19_1_1472786820633_11484"><br></div><div style="margin:5px 0px;padding:0px;border:1px solid rgb(204, 204, 204);min-height:0px;line-height:0;font-size:0px;" class="hr"></div></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, September 2, 2016 1:33 PM, Rukiah A Latiff <rukiah@ukm.edu.my> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv2887606772"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:16px;"><div><span>Hi David,</span></div><div><span>Thank you for the information.</span></div><div><span><br clear="none"></span></div><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4074"><span id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4092">Actually, I did the same thing as yours. </span><span id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4086">However, the error message occurred when I click on the file in ROOT file browser. When I click on my output root file on the left tab, the error ' </span>failed to read the file type data' pop-up in the terminal window. Did I use the right actor for positron range measurement, TrackLength actor?</div><div><br clear="none"></div><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4075">Please help, thank you.</div><div></div><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4076"> </div><div class="yiv2887606772signature" id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4078"><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4077"><font color="#00007f" face="bookman old style, new york, times, serif"></font>Rukiah</div><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4079">PhD Candidate</div><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4080">The University of Sydney</div><div>Australia </div><div id="yiv2887606772yui_3_16_0_ym19_1_1472786820633_4081" style="color:rgb(0, 0, 0);font-family:bookman old style, new york, times, serif;font-size:13px;font-style:normal;background-color:transparent;"><br clear="none"></div><div class="yiv2887606772hr" style="margin:5px 0px;padding:0px;border:1px solid rgb(204, 204, 204);min-height:0px;line-height:0;font-size:0px;"></div></div> <div class="yiv2887606772qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv2887606772yqt1769031609" id="yiv2887606772yqt24567"><div class="yiv2887606772yahoo_quoted" style="display:block;"> <div style="font-family:times new roman, new york, times, serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> On Thursday, September 1, 2016 5:42 PM, David Boersma <david.boersma@physics.uu.se> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv2887606772y_msg_container">Hi Rukiah,<br clear="none"><br clear="none">Welcome to GATE!<br clear="none"><br clear="none">Which program did you use to "open" the MyOutputFile.root file?<br clear="none"><br clear="none">For me the usual way to explore the contents of a new root file is to <br clear="none">start "root" from the command line and then at the first root prompt I <br clear="none">type: "new TBrowser;" (followed by enter/return). A ROOT file browser <br clear="none">should open up, in which you should be able to navigate (in the left <br clear="none">tab) to your root file. Click on it see its contents. A root file can <br clear="none">contain all kinds of objects, but usually you are interested in "trees" <br clear="none">or "ntuples" (tabulated data), and "histograms" (1D/2D/3D distributions).<br clear="none"><br clear="none">ROOT is a huge humongous program/framework, put together over decades by <br clear="none">a pack of crazy hacking particle physicists affiliated with CERN. See <br clear="none">the ROOT web page (root.cern.ch) for documentation, in particular the <br clear="none">User Guide. It can be intimidating, especially if you are not a <br clear="none">programmer. But don't be afraid, you only need to learn a very small <br clear="none">part of ROOT in order to be able to do most of the things that you'll <br clear="none">need when working with GATE output. There are many tutorials on the web <br clear="none">to teach you the basics of ROOT trees and histograms.<br clear="none"><br clear="none">Good luck!<br clear="none">David<br clear="none"><br clear="none"><div class="yiv2887606772yqt8110684001" id="yiv2887606772yqtfd98118"><br clear="none">Den 01/09/2016 kl. 02:35, skrev nini latiff:<br clear="none">> Hi everyone,<br clear="none">><br clear="none">> I am Rukiah. I am new with this GATE. Currently I working to measure<br clear="none">> positron range. I already put my tracklength actor so that I can obtain<br clear="none">> positron range output. When I run the macrofile below, visualization is<br clear="none">> good. However, I can not open the MyOutputFile.root as the message says<br clear="none">> 'failed to read the file type data'. Please help regarding this matter<br clear="none">> as I have no background in programming. Thank you.<br clear="none">><br clear="none">><br clear="none">> #=====================================================<br clear="none">> # VISUALISATION<br clear="none">> #=====================================================<br clear="none">><br clear="none">><br clear="none">> #/vis/disable<br clear="none">><br clear="none">> /vis/open                           OGLS<br clear="none">> /vis/viewer/set/viewpointThetaPhi   60 60<br clear="none">> /vis/viewer/zoom                    1.0<br clear="none">> /vis/drawVolume<br clear="none">> /vis/scene/add/trajectories<br clear="none">><br clear="none">><br clear="none">> /control/execute                  Verbose.mac<br clear="none">><br clear="none">><br clear="none">> #=====================================================<br clear="none">> # GEOMETRY<br clear="none">> #=====================================================<br clear="none">><br clear="none">><br clear="none">> /gate/geometry/setMaterialDatabase    GateMaterials.db<br clear="none">><br clear="none">><br clear="none">> #<br clear="none">> #     W O R L D<br clear="none">> #<br clear="none">> /gate/world/geometry/setXLength       40. cm<br clear="none">> /gate/world/geometry/setYLength       40. cm<br clear="none">> /gate/world/geometry/setZLength       40. cm<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">> #                                                                 #<br clear="none">> #     D E F I N I T I O N   A N D   D E S C R I T I O N           #<br clear="none">> #             O F   Y O U R   P H A N T O M                       #<br clear="none">> #                                                                 #<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">><br clear="none">><br clear="none">> /gate/world/daughters/name phantom<br clear="none">> /gate/world/daughters/insert cylinder<br clear="none">> /gate/phantom/setMaterial Water<br clear="none">> /gate/phantom/vis/forceWireframe<br clear="none">> /gate/phantom/vis/setColor red<br clear="none">> /gate/phantom/geometry/setRmax   5 cm<br clear="none">> /gate/phantom/geometry/setHeight 10 cm<br clear="none">> /gate/phantom/attachPhantomSD<br clear="none">><br clear="none">> #=====================================================<br clear="none">> # PHYSICS<br clear="none">> #=====================================================<br clear="none">> #/gate/physics/addProcess PhotoElectric<br clear="none">> #/gate/physics/processes/PhotoElectric/setModel StandardModells<br clear="none">><br clear="none">> #/gate/physics/addProcess Compton<br clear="none">> #/gate/physics/processes/Compton/setModel StandardModel<br clear="none">><br clear="none">> #/gate/physics/addProcess RayleighScattering<br clear="none">> #/gate/physics/processes/RayleighScattering/setModel PenelopeModel<br clear="none">><br clear="none">> #/gate/physics/addProcess ElectronIonisation<br clear="none">> #/gate/physics/processes/ElectronIonisation/setModel StandardModel e-<br clear="none">> #/gate/physics/processes/ElectronIonisation/setModel StandardModel e+<br clear="none">><br clear="none">> #/gate/physics/addProcess Bremsstrahlung<br clear="none">> #/gate/physics/processes/Bremsstrahlung/setModel StandardModel e-<br clear="none">> #/gate/physics/processes/Bremsstrahlung/setModel StandardModel e+<br clear="none">><br clear="none">> /gate/physics/addProcess PositronAnnihilation<br clear="none">><br clear="none">> #/gate/physics/addProcess MultipleScattering e+<br clear="none">> #/gate/physics/addProcess MultipleScattering e-<br clear="none">><br clear="none">> /gate/physics/processList Enabled<br clear="none">> /gate/physics/processList Initialized<br clear="none">><br clear="none">> /gate/run/initialize<br clear="none">> #=====================================================<br clear="none">> # CUTS<br clear="none">> #=====================================================<br clear="none">><br clear="none">> #/gate/physics/Gamma/SetCutInRegion      crystal 1.0 cm<br clear="none">> #/gate/physics/Electron/SetCutInRegion   crystal 1.0 cm<br clear="none">> #/gate/physics/Positron/SetCutInRegion   crystal 1.0 cm<br clear="none">><br clear="none">><br clear="none">> #/gate/physics/Gamma/SetCutInRegion      phantom 0.1 mm<br clear="none">> #/gate/physics/Electron/SetCutInRegion   phantom 0.1 mm<br clear="none">> /gate/physics/Positron/SetCutInRegion   phantom 10 cm<br clear="none">><br clear="none">> /gate/physics/SetMaxStepSizeInRegion    phantom 1 cm<br clear="none">><br clear="none">> #TrackLengthActor<br clear="none">><br clear="none">> /gate/actor/addActor  TrackLengthActor  MyActor<br clear="none">> /gate/actor/MyActor/save  MyOutputFile.root<br clear="none">> /gate/actor/MyActor/setLmin 0 mm<br clear="none">> /gate/actor/MyActor/setLmax 10 cm<br clear="none">> /gate/actor/MyActor/setNumberOfBins 200<br clear="none">><br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">> #                                                                 #<br clear="none">> #                   D E F I N I T I O N   O F                     #<br clear="none">> #            Y O U R   V E R B O S I T Y   L E V E L              #<br clear="none">> #                                                                 #<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">><br clear="none">> /control/execute                    Verbose.mac<br clear="none">><br clear="none">> #=====================================================<br clear="none">> # INITIALISATION<br clear="none">> #=====================================================<br clear="none">><br clear="none">> /gate/run/initialize<br clear="none">><br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">> #                                                                 #<br clear="none">> #                   D E F I N I T I O N   O F                     #<br clear="none">> #                Y O U R   O U T P U T   F I L E                  #<br clear="none">> #                                                                 #<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">><br clear="none">><br clear="none">> #  R A N D O M<br clear="none">><br clear="none">> # JamesRandom Ranlux64 MersenneTwister<br clear="none">> /gate/random/setEngineName JamesRandom<br clear="none">> #/gate/random/setEngineSeed default<br clear="none">> #/gate/random/setEngineSeed auto<br clear="none">> #/gate/random/setEngineSeed 123456789<br clear="none">> /gate/random/setEngineSeed default<br clear="none">> #/gate/random/resetEngineFrom fileName<br clear="none">> /gate/random/verbose 1<br clear="none">><br clear="none">><br clear="none">> #       S E T U P  - R O O T  F I L E<br clear="none">> /gate/output/root/enable<br clear="none">> /gate/output/root/setFileName MySimu<br clear="none">> /gate/output/root/setRootSinglesAdderFlag 1<br clear="none">> /gate/output/root/setRootSinglesReadoutFlag 1<br clear="none">> /gate/output/root/setRootHitFlag 1<br clear="none">> /gate/output/root/setRootSinglesFlag 1<br clear="none">> /gate/output/root/setRootCoincidencesFlag 1<br clear="none">><br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">> #                                                                 #<br clear="none">> #         P O S I T R O N   E M I S S I O N   S O U R C E         #<br clear="none">> #                                                                 #<br clear="none">> #                Ga-68              #<br clear="none">> #                                                                 #<br clear="none">> #  NB :  In this example, each isotope source is generated        #<br clear="none">> #  in a sphere placed at the center of the FOV.           #<br clear="none">> #                The sphere radius is set at 0.5 cm.              #<br clear="none">> #                                                                 #<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">><br clear="none">> #<br clear="none">> # For Ga68<br clear="none">> #<br clear="none">><br clear="none">> /gate/source/addSource sourceGa68<br clear="none">> /gate/source/sourceGa68/setActivity 10. becquerel<br clear="none">> /gate/source/sourceGa68/gps/particle e+<br clear="none">> /gate/source/sourceGa68/setForcedUnstableFlag true<br clear="none">> /gate/source/sourceGa68/gps/energytype Ga68<br clear="none">> /gate/source/sourceGa68/setForcedHalfLife 6586 s<br clear="none">> /gate/source/sourceGa68/gps/type Volume<br clear="none">> /gate/source/sourceGa68/gps/shape Sphere<br clear="none">> /gate/source/sourceGa68/gps/radius 0.01 mm<br clear="none">> /gate/source/sourceGa68/gps/centre 0. 0. 0. cm<br clear="none">> /gate/source/sourceGa68/vis/setColor red<br clear="none">> /gate/source/sourceGa68/gps/confine NULL<br clear="none">> /gate/source/sourceGa68/gps/angtype iso<br clear="none">><br clear="none">><br clear="none">><br clear="none">> /gate/source/list<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">> #                                                                 #<br clear="none">> #               S T A R T   A C Q U I S I T I O N                 #<br clear="none">> #                 T I M E   P A R A M E T E R S                   #<br clear="none">> #                                                                 #<br clear="none">> #-------------------oooooOOOOO00000OOOOOooooo---------------------#<br clear="none">><br clear="none">> #<br clear="none">> # EXPERIMENT<br clear="none">> #<br clear="none">> /gate/application/setTimeSlice     120.  s<br clear="none">> /gate/application/setTimeStart     0.   s<br clear="none">> /gate/application/setTimeStop      240.  s<br clear="none">><br clear="none">> #<br clear="none">> # LET'S RUN THE SIMULATION!<br clear="none">> #<br clear="none">> /gate/application/startDAQ<br clear="none">> #/gate/output/allowNoOutput<br clear="none">><br clear="none">><br clear="none">><br clear="none">> Rukiah<br clear="none">> PhD Candidate<br clear="none">> The University of Sydney<br clear="none">> Australia</div><br clear="none">><br clear="none">> */_<br clear="none">> _/*<br clear="none">><br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Gate-users mailing list<br clear="none">> <a rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br clear="none">> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br clear="none">><br clear="none">_______________________________________________<br clear="none">Gate-users mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>