<div dir="ltr">Hello, <div><br></div><div>if you envisaged to add some specific volume to Gate, here are some hints:</div><div><br></div><div>- You should create a class that derive from <a href="https://github.com/OpenGATE/Gate/blob/develop/source/geometry/src/GateVVolume.cc">GateVVolume</a></div><div>- Take for example an <a href="https://github.com/OpenGATE/Gate/blob/develop/source/geometry/src/GateBox.cc">GateBox</a> (or other) as template, copy the 4 files GateBox.cc/hh + GateBoxMessenger.cc/hh, of course change the class & file name</div><div>- Take care to the two macros: FCT_FOR_AUTO_CREATOR_VOLUME and MAKE_AUTO_CREATOR_VOLUME in the hh file, those "magic" lines will allow for your new volume to be automatically</div><div>compiled and recognised</div><div>- When adding files for the first time, run cmake before make. </div><div>- I highly highly highly recommend to start any modification from a new git branch (derived from the <a href="https://github.com/OpenGATE/Gate">develop</a> branch)</div><div><br></div><div>When you are happy with the result, feel free to propose a pull-request so that your new volume could be integrated in the next version and useful for others</div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 1, 2017 at 10:27 AM, Andrew Nixon <span dir="ltr"><<a href="mailto:Andrew.Nixon@uhb.nhs.uk" target="_blank">Andrew.Nixon@uhb.nhs.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andreas,<br>
<br>
Just to add a third option to your list: if you have a CAD model of your collimator you can import it directly into Gate as a tessellated solid via an .STL file.<br>
<br>
Thanks,<br>
<br>
Andrew.<br>
<br>
Andrew Nixon<br>
Medical Physics - Clinical Scientist<br>
<br>
<br>
Internal: 15068<br>
Email: <a href="mailto:Andrew.Nixon@uhb.nhs.uk">Andrew.Nixon@uhb.nhs.uk</a><br>
Web: <a href="http://www.uhb.nhs.uk" rel="noreferrer" target="_blank">http://www.uhb.nhs.uk</a><br>
<br>
<br>
Medical Physics - University Hospitals Birmingham NHS Foundation Trust<br>
<br>
Birmingham, B15 2TH<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
-----Original Message-----<br>
From: Gate-users [mailto:<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org">gate-users-bounces@<wbr>lists.opengatecollaboration.<wbr>org</a>] On Behalf Of Andreas Menzel<br>
Sent: 01 June 2017 08:40<br>
To: <a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
Subject: [Gate-users] How to compile a new geometry class?<br>
<br>
Dear Gate community,<br>
<br>
probably this has been asked before, but it seems I cannot use the mailing list's archive.<br>
<br>
So, can someone please tell me where to find instructions on how to compile a newly added class in Gate? I don't seem to find it in the online documentation, either.<br>
<br>
To be specific, I am supposed to do a simulation which contains a rather complex collimator. As the Gate scripting language does not seem to support what I am trying to do, I decided to use two different ways and try out which one works better: The first one is to use Geant4's boolean solids and do subtractions of geometry primitives. The second would be to load a GDML file containing the geometry which also can be done in Geant4. I only started the first one and I wrote a Gate geometry class and a messenger connected to it as well as the necessary header files.<br>
<br>
Now, is there some template makefile / CMakeLists.txt I could use to actually compile these and test them? Or do I just put the sources into the location of the other Gate sources and re-make the whole thing so that the new files are compiled?<br>
<br>
Thanks for your help!<br>
<br>
Andreas Menzel<br>
<br>
--<br>
Dr. Andreas Menzel<br>
<br>
Crystal Photonics GmbH<br>
Albert Einstein Straße 16<br>
D - 12489 Berlin<br>
Germany<br>
<br>
FAX.: <a href="tel:%2B49%20%280%29%2030%2034669299" value="+493034669299">+49 (0) 30 34669299</a><br>
<br>
<a href="mailto:am@crystal-photonics.com">am@crystal-photonics.com</a><br>
<a href="http://www.crystal-photonics.com" rel="noreferrer" target="_blank">www.crystal-photonics.com</a><br>
-------------------------<br>
Geschäftsführer: Klaus Schwenkenbecher<br>
Amtsgericht Berlin-Charlottenburg HRB 99822B<br>
Steuer-Nr.: 37/109/21041<br>
VAT-No.: DE 814612031<br>
<br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U1206<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br><a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div></div></div></div></div></div></div>
</div>