<div dir="ltr"><div>Hi,</div><div>Gate does not suport GEANT4_BUILD_MULTITHREADED and you should get a meaningful message when configuring Gate, see <a href="https://github.com/OpenGATE/Gate/blob/develop/CMakeLists.txt#L70">here</a>.</div><div>Fixed forced detection only works on one voxelized volume with the rest (world, detector material, etc) being made of one material only. It supports x-ray spectrum and detector response, following the example in GateContrib.</div><div>You can always do a pure Monte Carlo simulation instead if you prefer mathematical descriptions, see the <a href="https://github.com/OpenGATE/GateContrib/blob/master/imaging/CT/fixedForcedDetectionCT/mac/monteCarloCT.mac">analog simulation</a> of the fixed forced detection example.</div><div>Please report the meaningless messages if you get any...</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 11, 2020 at 12:19 PM Gábor Légrádi <<a href="mailto:gabor.legradi@3dhistech.com">gabor.legradi@3dhistech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div id="gmail-m_1297804945232378307x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<div dir="ltr">Thank you, hsl...!</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Anyway, may I ask some more general questions?</div>
<div dir="ltr"><span style="font-size:12pt"><br>
</span></div>
<div dir="ltr"><span style="font-size:12pt"> 1. I plan to use GATE for one definite purpose. I am to simulate microCT acquisitions with mathematical phantoms which means that I need to be able to simulate</span></div>
<div dir="ltr"><span style="font-size:12pt"> - X-ray source with spectrum.</span></div>
<div dir="ltr"><span style="font-size:12pt"> - Interaction </span><span style="font-size:12pt">of X-ray and matter below 130keV, i.e. photoelectric effect, Compton- and Raleigh-scatter.</span></div>
<div dir="ltr"><span style="font-size:12pt"> - Detector response.</span></div>
<div dir="ltr"><span style="font-size:12pt"> In this case what flags and settings do you recommend for GEANT4 and GATE4 build?</span></div>
<div dir="ltr"><span style="font-size:12pt"><br>
</span></div>
<div dir="ltr"><span style="font-size:12pt"> 2. Anyway, how can I find out myself such dependencies? Meanwhile I succeeded to compile GEANT4 with the following flags:</span></div>
<div dir="ltr"><span style="font-size:12pt"><span>sudo cmake -DCMAKE_INSTALL_PREFIX=/PAHT/TO/geant4/geant4-install/ -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF CMAKE_BUILD_TYPE=RelWithDebInfo GEANT4_BUILD_MULTITHREADED=ON
GEANT4_USE_RAYTRACER_X11=ON GEANT4_USE_INVENTOR=ON GEANT4_USE_XM=ON /PATH/TO/geant4/geant4/</span><br>
</span></div>
<div dir="ltr"><span style="font-size:12pt"><span><br>
</span></span></div>
<div dir="ltr"><span style="font-size:12pt"><span>However, this case my GATE compilation crashes with meaningless error message. It would be really demanding to try out one-by-one which flag is really helpful in my cas</span></span><span style="font-size:12pt">e
and which causes the crash. It is very likely, that crash is caused by some settings which are, on the other hand, absolutely useless for X-ray modelling in GATE.</span></div>
<div dir="ltr"><span style="font-size:12pt"><br>
</span></div>
<div dir="ltr">
<div>Hoping that my point is clear,</div>
<div>Gabor</div>
<div><br>
</div>
</div>
<div dir="ltr"><br>
</div>
<font face="arial" color="#002060">
<p style="font-size:10pt;font-family:Arial"><b><span style="font-size:15px;text-transform:capitalize">Gábor</span> <span style="font-size:15px;text-transform:uppercase">Légrádi</span></b><br>
<span style="font-size:15px;text-transform:capitalize">Product Development Manager</span></p>
<p style="font-size:10pt;font-family:Arial"><span style="font-size:14px"><a href="https://www.3dhistech.com/" target="_blank">3DHISTECH Ltd.</a><br>
H-1141 Budapest, Öv utca 3., HUNGARY<br>
Jabber: <a>gabor.legradi@3dhistech.com</a><br>
Phone: +36 1 467-5600<br>
Fax: +36 1 445-0920<br>
</span></p>
<p style="font-size:10pt;font-family:Arial"><span style="font-size:14px"><a href="https://twitter.com/3DHISTECH_LTD" target="_blank"><img alt="3DHISTECH Twitter" src="cid:1751babeed05b509421" width="24" height="24" border="0"></a><a href="https://www.linkedin.com/company/3dhistech-ltd-/" target="_blank"><img alt="3DHISTECH Linkedin" src="cid:1751babeed04f737b7e2" width="24" height="24" border="0"></a><a href="https://www.facebook.com/3DHISTECH/" target="_blank"><img alt="3DHISTECH Facebook" src="cid:1751babeed0de83b1853" width="24" height="24" border="0"></a><a href="https://www.instagram.com/3dhistech/" target="_blank"><img alt="3DHISTECH Instagram" src="cid:1751babeed080a5bb904" width="24" height="24" border="0"></a> <a href="https://www.youtube.com/user/3DHISTECH" target="_blank"><img alt="3DHISTECH Youtube" src="cid:1751babeed198954fe65" width="24" height="24" border="0"></a><a href="https://www.3dhistech.com/" target="_blank"><img alt="3DHISTECH Website" src="cid:1751babeed2682bd5446" width="24" height="24" border="0"></a></span></p>
</font><br>
<div>
<div dir="ltr">On Sat, Oct 10, 2020 at 11:47 AM <a href="mailto:hsl1196997465@gmail.com" target="_blank">hsl1196997465@gmail.com</a> <<a href="mailto:hsl1196997465@gmail.com" target="_blank">hsl1196997465@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>RTK is required for this function, you should install ITK with RTK ON firstly, and recompile Gate with ITK ON .</div>
<div><br>
</div>
<div>
<div style="font-size:12px;padding:2px 0px">---Original---</div>
<div style="font-size:12px;background:rgb(240,240,240) none repeat scroll 0% 0%;color:rgb(33,33,33);border-radius:4px;line-height:1.5;padding:8px">
<div><b>From:</b> "Gábor Légrádi"<<a href="mailto:gabor.legradi@3dhistech.com" target="_blank">gabor.legradi@3dhistech.com</a>></div>
<div><b>Date:</b> Sat, Oct 10, 2020 06:41 AM</div>
<div><b>To:</b> "<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a>"<<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a>>;</div>
<div><b>Subject:</b> [Gate-users] Actor type: FixedForcedDetectionActor does not exist!</div>
</div>
<br>
Dear All,<br>
<br>
I am new to GATE. Until now, I have been playing with vGATE, on Virtual Machine. Now I am testing my newly compiled GATE on my host machine. I tried to execute a macro which runs properly on vGATE. You may find it in GateContrib Github folder: <a href="https://github.com/OpenGATE/GateContrib/tree/master/imaging/CT/fixedForcedDetectionCT" target="_blank">https://github.com/OpenGATE/GateContrib/tree/master/imaging/CT/fixedForcedDetectionCT</a> .<br>
<br>
On my host Gate can not accomplish this line:<br>
/gate/actor/addActor FixedForcedDetectionActor ffda<br>
Warning message:<br>
*** WARNING *** Actor type: FixedForcedDetectionActor does not exist!<br>
<br>
And then, naturally, ffda can not be attached and Gate stops with error:<br>
/gate/actor/ffda/attachTo world<br>
[G4-cerr] command not found<br>
<br>
Any hint?<br>
<br>
I installed the whole stuff on Ubuntu 20.04. Here are my notes about the installation:<br>
<br>
<br>
**** GEANT4 ****<br>
sudo apt-get update<br>
sudo apt upgrade<br>
sudo apt install cmake<br>
<br>
Downloaded and unzipped: <a href="https://geant4.web.cern.ch/support/download" target="_blank">https://geant4.web.cern.ch/support/download</a> -> GNU or Linux tar format, compressed using gzip (33.2Mb, 34833550 bytes)<br>
<br>
[...]<br>
<br>
cmake command:<br>
cmake -DCMAKE_INSTALL_PREFIX=/home/lg/geant4.10.06.p02 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF /home/lg/work/geant4.10.06.p02<br>
<br>
make -j4<br>
make install<br>
<br>
**** ROOT ****<br>
sudo apt-get install libx11-dev libxpm-dev libxft-dev libxext-dev libssl-dev (elvileg dpkg-dev cmake g++ gcc binutils már fenn vannak)<br>
<br>
Binary loaded from here and extracted: <a href="https://root.cern/install/all_releases/" target="_blank">https://root.cern/install/all_releases/</a> -> Release 6.22/02 - 17 Aug 2020<br>
<br>
**** GATE ****<br>
sudo apt install cmake-curses-gui<br>
sudo apt-get install libxml2-dev<br>
sudo apt-get install libc6-dev libssl-dev dpkg-dev debhelper fakeroot libxml2-dev libxslt1-dev<br>
<br>
Downloaded and extracted: <a href="https://github.com/OpenGATE/Gate/archive/v9.0.zip" target="_blank">https://github.com/OpenGATE/Gate/archive/v9.0.zip</a><br>
<br>
[...]<br>
<br>
cd gate_v9.0<br>
ccmake ../Gate-9.0-dwnld<br>
<br>
Then I set these settings:<br>
BUILD_TESTING: ON<br>
CMAKE_BACKWARD_COMPATIBILITY: 2.4<br>
CMAKE_BUILD_TYPE: Release<br>
CMAKE_INSTALL_PREFIX: <br>
EXECUTABLE_OUTPUT_PATH: <br>
GATE_COMPILE_WITH_NATIVE: OFF<br>
GATE_DOWNLOAD_BENCHMARKS_DATA: ON<br>
GATE_USE_DAVIS: OFF<br>
GATE_USE_ECAT7: OFF<br>
GATE_USE_GEANT4_UIVUS: ON<br>
GATE_USE_ITK: OFF<br>
GATE_USE_LMF: OFF<br>
GATE_USE_OPTICAL: ON<br>
GATE_USE_RTK: OFF<br>
GATE_USE_SYSTEM_CLHEP: OFF<br>
GATE_USE_TORCH: OFF<br>
GATE_USE_XRAYLIB: OFF<br>
Geant4_DIR: <br>
LIBRARY_OUTPUT_PATH: <br>
ROOTCINT_EXECUTABLE: <br>
<br>
g: Generate and exit<br>
<br>
make -j4<br>
make install<br>
<br>
source /home/lg/root/bin/thisroot.sh<br>
source /home/lg/geant4.10.06.p02/bin/geant4.sh<br>
export PATH=$PATH:/home/lg/gate_v9.0/bin<br>
<br>
Gábor Légrádi<br>
Product Development Manager<br>
3DHISTECH Ltd.<br>
H-1141 Budapest, Öv utca 3., HUNGARY<br>
Jabber: <a href="mailto:gabor.legradi@3dhistech.com" target="_blank">gabor.legradi@3dhistech.com</a><br>
Phone: +36 1 467-5600<br>
Fax: +36 1 445-0920<br>
<br>
<br>
<br>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote>
</div>
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_1297804945232378307x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Gate-users <<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>> on behalf of Gábor Légrádi <<a href="mailto:gabor.legradi@3dhistech.com" target="_blank">gabor.legradi@3dhistech.com</a>><br>
<b>Sent:</b> Saturday, October 10, 2020 12:41:34 AM<br>
<b>To:</b> <a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a><br>
<b>Subject:</b> [Gate-users] Actor type: FixedForcedDetectionActor does not exist!</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div>Dear All,<br>
<br>
I am new to GATE. Until now, I have been playing with vGATE, on Virtual Machine. Now I am testing my newly compiled GATE on my host machine. I tried to execute a macro which runs properly on vGATE. You may find it in GateContrib Github folder:<a href="https://github.com/OpenGATE/GateContrib/tree/master/imaging/CT/fixedForcedDetectionCT" target="_blank">
https://github.com/OpenGATE/GateContrib/tree/master/imaging/CT/fixedForcedDetectionCT</a> .<br>
<br>
On my host Gate can not accomplish this line:<br>
/gate/actor/addActor FixedForcedDetectionActor ffda<br>
Warning message:<br>
<!> *** WARNING *** <!> Actor type: FixedForcedDetectionActor does not exist!<br>
<br>
And then, naturally, ffda can not be attached and Gate stops with error:<br>
/gate/actor/ffda/attachTo world<br>
[G4-cerr] command </gate/actor/ffda/attachTo world> not found<br>
<br>
Any hint?<br>
<br>
I installed the whole stuff on Ubuntu 20.04. Here are my notes about the installation:<br>
<br>
<br>
**** GEANT4 ****<br>
sudo apt-get update<br>
sudo apt upgrade<br>
sudo apt install cmake<br>
<br>
Downloaded and unzipped: <a href="https://geant4.web.cern.ch/support/download" target="_blank">https://geant4.web.cern.ch/support/download</a> -> GNU or Linux tar format, compressed using gzip (33.2Mb, 34833550 bytes)<br>
<br>
[...]<br>
<br>
cmake command:<br>
cmake -DCMAKE_INSTALL_PREFIX=/home/lg/geant4.10.06.p02 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF /home/lg/work/geant4.10.06.p02<br>
<br>
make -j4<br>
make install<br>
<br>
**** ROOT ****<br>
sudo apt-get install libx11-dev libxpm-dev libxft-dev libxext-dev libssl-dev (elvileg dpkg-dev cmake g++ gcc binutils már fenn vannak)<br>
<br>
Binary loaded from here and extracted: <a href="https://root.cern/install/all_releases/" target="_blank">
https://root.cern/install/all_releases/</a> -> Release 6.22/02 - 17 Aug 2020<br>
<br>
**** GATE ****<br>
sudo apt install cmake-curses-gui<br>
sudo apt-get install libxml2-dev<br>
sudo apt-get install libc6-dev libssl-dev dpkg-dev debhelper fakeroot libxml2-dev libxslt1-dev<br>
<br>
Downloaded and extracted: <a href="https://github.com/OpenGATE/Gate/archive/v9.0.zip" target="_blank">
https://github.com/OpenGATE/Gate/archive/v9.0.zip</a><br>
<br>
[...]<br>
<br>
cd gate_v9.0<br>
ccmake ../Gate-9.0-dwnld<br>
<br>
Then I set these settings:<br>
BUILD_TESTING: ON<br>
CMAKE_BACKWARD_COMPATIBILITY: 2.4<br>
CMAKE_BUILD_TYPE: Release<br>
CMAKE_INSTALL_PREFIX: <IT WAS SET PROPERLY><br>
EXECUTABLE_OUTPUT_PATH: <NONE><br>
GATE_COMPILE_WITH_NATIVE: OFF<br>
GATE_DOWNLOAD_BENCHMARKS_DATA: ON<br>
GATE_USE_DAVIS: OFF<br>
GATE_USE_ECAT7: OFF<br>
GATE_USE_GEANT4_UIVUS: ON<br>
GATE_USE_ITK: OFF<br>
GATE_USE_LMF: OFF<br>
GATE_USE_OPTICAL: ON<br>
GATE_USE_RTK: OFF<br>
GATE_USE_SYSTEM_CLHEP: OFF<br>
GATE_USE_TORCH: OFF<br>
GATE_USE_XRAYLIB: OFF<br>
Geant4_DIR: <IT WAS SET PROPERLY><br>
LIBRARY_OUTPUT_PATH: <NONE><br>
ROOTCINT_EXECUTABLE: <IT WAS SET PROPERLY><br>
<br>
g: Generate and exit<br>
<br>
make -j4<br>
make install<br>
<br>
source /home/lg/root/bin/thisroot.sh<br>
source /home/lg/geant4.10.06.p02/bin/geant4.sh<br>
export PATH=$PATH:/home/lg/gate_v9.0/bin<br>
<br>
Gábor Légrádi<br>
Product Development Manager<br>
3DHISTECH Ltd.<br>
H-1141 Budapest, Öv utca 3., HUNGARY<br>
Jabber: <a href="mailto:gabor.legradi@3dhistech.com" target="_blank">gabor.legradi@3dhistech.com</a><br>
Phone: +36 1 467-5600<br>
Fax: +36 1 445-0920<br>
<br>
<br>
<br>
This e-mail may contain confidential and/or privileged information and should only be read by those persons to whom it is addressed. If you are not the intended recipient or have received this e-mail in error, please notify the sender (3DHISTECH Ltd., <a href="mailto:info@3dhistech.com" target="_blank">info@3dhistech.com</a>)
immediately and erase this e-mail from your system. If you are not the intended recipient you are hereby notified that any form of copying, dissemination, disclosure, modification, distribution and/or publication or any action taken in reliance on this email
is prohibited and may be unlawful. Moreover, to the extent that a non-disclosure agreement exists between 3DHISTECH Ltd. and you, the recipient, the contents of this email and any attachments hereto are governed by the terms of said non-disclosure agreement
and are considered confidential and proprietary to 3DHISTECH Ltd. as defined by such agreement. Any form of copying, dissemination, disclosure, modification, distribution and/or publication of this e-mail message without preliminary permission is strictly
prohibited.<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">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></div>
</span></font><font face="arial" color="#002060">
<p><span style="font-size:11px">This e-mail may contain confidential and/or privileged information and should only be read by those persons to whom it is addressed. If you are not the intended recipient or have received this e-mail in error, please notify
the sender (3DHISTECH Ltd., <a href="mailto:info@3dhistech.com" target="_blank">info@3dhistech.com</a>) immediately and erase this e-mail from your system. If you are not the intended recipient you are hereby notified that any form of copying, dissemination, disclosure, modification, distribution and/or publication
or any action taken in reliance on this email is prohibited and may be unlawful. Moreover, to the extent that a non-disclosure agreement exists between 3DHISTECH Ltd. and you, the recipient, the contents of this email and any attachments hereto are governed
by the terms of said non-disclosure agreement and are considered confidential and proprietary to 3DHISTECH Ltd. as defined by such agreement. Any form of copying, dissemination, disclosure, modification, distribution and/or publication of this e-mail message
without preliminary permission is strictly prohibited.<br>
</span></p>
</font>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote></div>