<div dir="ltr">Dear Gate users,<div><br></div><div>I am a beginner in Gate use and I have a problem (probably a beginner problem) for making a gamma spectrum simulation with Gate. I work with vGate9.0.</div><div><br></div><div>My simulation is the following : a water gamma source at 20 cm to a germanium detector. The source emits gamma photons of 152Eu. I would like to obtain a simply gamma spectrum (number of counts as a function of energy).</div><div><br></div><div>I have the possibility to check my geometry and the homogeneity emission of the source by running my macro with qt (Gate -- qt mac/filename.mac). But when I leave the qt visualization, I have this following error : </div><div><br></div><div>*** Break *** segmentation violation</div><div>============================</div><div>There was a crash.</div><div>This is the entire stack trace of all threads:</div><div>============================</div><div>Thread 6 ...</div><div>...</div><div>WARNING - Attempt to delete the physical volume store while geometry closed !</div><div>WARNING - Attempt to delete the logical volume store while geometry closed !<br></div><div>WARNING - Attempt to delete the solid store
while geometry closed !
<br></div><div>WARNING - Attempt to delete the region store
while geometry closed ! <br></div><div><br></div><div>When I run the macro without visualization, I have the same thing. It probably comes from my macro, because I succeeded to run Gate example before.</div><div><br></div><div>Maybe could you help me to see my mistakes ? Thank you in advance.</div><div>Déborah</div><div><br></div><div>Here is my macro :</div><div><br># **********************************************<br># ** GEANT4 par Gate 9.0<br># ** Test : detecteur germanium et source gamma<br># ** Par D. Degrelle<br># ** 03/07/2020<br># **********************************************<br><br># **********************************************<br># ** VERBOSITY VISUALISATION<br># **********************************************<br><br>/control/execute mac/verbose.mac<br>/control/execute mac/visu.mac<br><br># **********************************************<br># ** GEOMETRIE<br># **********************************************<br><br>/gate/geometry/setMaterialDatabase data/GateMaterials.db<br><br># ** Le monde 1x1x1 m<br>/gate/world/geometry/setXLength 0.5 m<br>/gate/world/geometry/setYLength 0.5 m<br>/gate/world/geometry/setZLength 0.5 m<br>/gate/world/setMaterial Air<br><br># ** Detecteur germanium<br>/gate/world/daughters/name detecteurGe<br>/gate/world/daughters/insert cylinder<br>/gate/detecteurGe/geometry/setRmax 1 cm<br>/gate/detecteurGe/geometry/setRmin 0 cm<br>/gate/detecteurGe/geometry/setHeight 2 cm<br>/gate/detecteurGe/setMaterial Germanium<br>/gate/detecteurGe/vis/setColor magenta<br>/gate/detecteurGe/vis/setVisible 1<br>/gate/detecteurGe/placement/setTranslation 0 0 0 m<br><br># ** Cap<br>/gate/world/daughters/name Cap<br>/gate/world/daughters/insert cylinder<br>/gate/Cap/geometry/setRmax 1.7 cm<br>/gate/Cap/geometry/setRmin 1.5 cm<br>/gate/Cap/geometry/setHeight 8 cm<br>/gate/Cap/setMaterial Aluminium<br>/gate/Cap/vis/setColor grey<br>/gate/Cap/vis/setVisible 1<br>/gate/Cap/placement/setTranslation 0 0 -2.5 cm<br><br># ** Endcap<br>/gate/world/daughters/name Endcap<br>/gate/world/daughters/insert cylinder<br>/gate/Endcap/geometry/setRmax 1.7 cm<br>/gate/Endcap/geometry/setRmin 0 cm<br>/gate/Endcap/geometry/setHeight 1 mm<br>/gate/Endcap/setMaterial Aluminium<br>/gate/Endcap/vis/setColor grey<br>/gate/Endcap/vis/setVisible 1<br>/gate/Endcap/placement/setTranslation 0 0 1.55 cm<br><br># ** BottomCap<br>/gate/world/daughters/name BottomCap<br>/gate/world/daughters/insert cylinder<br>/gate/BottomCap/geometry/setRmax 1.7 cm<br>/gate/BottomCap/geometry/setRmin 0 cm<br>/gate/BottomCap/geometry/setHeight 1 mm<br>/gate/BottomCap/setMaterial Aluminium<br>/gate/BottomCap/vis/setColor grey<br>/gate/BottomCap/vis/setVisible 1<br>/gate/BottomCap/placement/setTranslation 0 0 -6.55 cm<br><br># ** Holder<br>/gate/world/daughters/name Holder<br>/gate/world/daughters/insert cylinder<br>/gate/Holder/geometry/setRmax 1.3 cm<br>/gate/Holder/geometry/setRmin 1.1 cm<br>/gate/Holder/geometry/setHeight 4 cm<br>/gate/Holder/setMaterial Copper<br>/gate/Holder/vis/setColor yellow<br>/gate/Holder/vis/setVisible 1<br>/gate/Holder/placement/setTranslation 0 0 -1 cm<br><br># ** Echantillon<br>/gate/world/daughters/name echantillon<br>/gate/world/daughters/insert box<br>/gate/echantillon/geometry/setXLength 2 cm<br>/gate/echantillon/geometry/setYLength 2 cm<br>/gate/echantillon/geometry/setZLength 2 cm<br>/gate/echantillon/placement/setTranslation 0 0 20 cm<br>/gate/echantillon/setMaterial Water<br>/gate/echantillon/vis/setVisible 1<br>/gate/echantillon/vis/setColor blue<br><br># ***********************************************<br># ** PHYSIQUE<br># ***********************************************<br><br>/gate/physics/addPhysicsList emstandard<br>/gate/physics/Gamma/SetCutInRegion world 10 mm<br>/gate/physics/Electron/SetCutInRegion world 10 mm<br>/gate/physics/Positron/SetCutInRegion world 10 mm<br><br>/gate/physics/Gamma/SetCutInRegion echantillon 0.1 mm<br>/gate/physics/Electron/SetCutInRegion echantillon 0.1 mm<br>/gate/physics/Positron/SetCutInRegion echantillon 0.1 mm<br><br>/gate/physics/displayCuts<br><br>/gate/physics/addProcess PhotoElectric gamma<br>/gate/physics/processes/PhotoElectric/setModel StandardModel<br>/gate/physics/addProcess Compton gamma<br>/gate/physics/processes/Compton/setModel StandardModel<br>/gate/physics/addProcess GammaConversion<br>/gate/physics/processes/GammaConversion/setModel StandardModel<br><br># ***********************************************<br># ** ACTOR<br># ***********************************************<br><br>/gate/actor/addActor EnergySpectrumActor Spectre<br>/gate/actor/Spectre/save output/Spectre.txt<br>/gate/actor/Spectre/attachTo detecteurGe<br>/gate/actor/Spectre/energySpectrum/setEmin 0 eV<br>/gate/actor/Spectre/energySpectrum/setEmax 1500 keV<br>/gate/actor/Spectre/energySpectrum/setNumberOfBins 1500<br>/gate/actor/Spectre/saveEveryNSeconds 60<br><br>/gate/actor/addActor SimulationStatisticActor stat<br>/gate/actor/stat/attachTo detecteurGe<br>/gate/actor/stat/save output/gamma-stat.txt<br>/gate/actor/stat/saveEveryNSeconds 60<br><br># ***********************************************<br># ** INITIALISATION<br># ***********************************************<br><br>/gate/run/initialize<br><br># ***********************************************<br># ** SOURCE<br># ***********************************************<br><br>/gate/source/addSource 152Eu<br>/gate/source/152Eu/gps/particle gamma<br>/gate/source/152Eu/setActivity 1000000 becquerel<br>/gate/source/152Eu/gps/energytype UserSpectrum<br>/gate/source/152Eu/gps/setSpectrumFile data/152EuSpectre.txt<br>/gate/source/152Eu/setIntensity 1<br><br># emission isotrope<br>/gate/source/152Eu/gps/ang/type iso<br>/gate/source/152Eu/gps/ang/mintheta 0 deg<br>/gate/source/152Eu/gps/ang/maxtheta 180 deg<br>/gate/source/152Eu/gps/ang/minphi 0. deg<br>/gate/source/152Eu/gps/ang/maxphi 360. deg<br><br>/gate/source/152Eu/gps/pos/type Volume<br>/gate/source/152Eu/gps/pos/shape Para<br>/gate/source/152Eu/gps/pos/halfx 1 cm<br>/gate/source/152Eu/gps/pos/halfy 1 cm<br>/gate/source/152Eu/gps/pos/halfz 1 cm<br>/gate/source/152Eu/attachTo echantillon<br>/gate/source/152Eu/gps/pos/centre 0 0 0 cm<br># /gate/source/152Eu/visualize 20 red 10<br><br><br># ***********************************************<br># ** START BEAMS<br># ***********************************************<br><br># JamesRandom Ranlux64 MersenneTwister<br>/gate/random/setEngineName MersenneTwister<br>/gate/random/setEngineSeed auto<br><br>#/tracking/verbose 1<br><br>/gate/application/noGlobalOutput<br>/gate/application/setTotalNumberOfPrimaries 50<br>/gate/application/start<br><br></div><div><br></div></div>
<br>
<span><p dir="ltr" style="line-height:1.3800000000000001;margin-top:0pt;margin-bottom:10pt;text-align:justify"><span style="font-size:11pt;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap">The information in this email and any associated files is confidential to Veolia Water Technologies (SASU) and/or any affiliate thereof and may be legally privileged. For the herein purposes, “affiliate” means any legal entity, partnership, joint venture, equity, company, including in particular any and all subsidiary which, directly or indirectly, controls Veolia Water Technologies (SASU) and/or is under the control thereof and/or is under the control of the ultimate parent company thereof, and “control” means the ability to directly or indirectly, direct the affairs of a third party by means of ownership, contract or otherwise. It may also contain information that is subject to copyright or constitutes a trade secret. It is intended solely for the named recipient. Access to this email by anyone else is unauthorized.</span></p><p dir="ltr" style="line-height:1.3800000000000001;margin-top:0pt;margin-bottom:10pt;text-align:justify"><span style="font-size:11pt;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap">If you are not the intended recipient, please note that any use, disclosure, copying, distribution of this email or any action taken or omitted to be taken in reliance on its prohibited. </span></p><p dir="ltr" style="line-height:1.3800000000000001;margin-top:0pt;margin-bottom:10pt;text-align:justify"><span style="font-size:11pt;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap">Warning: Although this email and any attachment thereto are believed to be free from viruses, it is the responsibility of the recipient to ensure that they are virus free. No responsibility whatsoever is accepted by Veolia for any loss or damage arising from their receipt or opening.</span></p><div><span style="font-size:11pt;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span>