[Gate-users] Actor type: FixedForcedDetectionActor does not exist!

Simon Rit simon.rit at creatis.insa-lyon.fr
Mon Oct 12 09:23:37 CEST 2020


Hi,
Gate does not suport GEANT4_BUILD_MULTITHREADED and you should get a
meaningful message when configuring Gate, see here
<https://github.com/OpenGATE/Gate/blob/develop/CMakeLists.txt#L70>.
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.
You can always do a pure Monte Carlo simulation instead if you prefer
mathematical descriptions, see the analog simulation
<https://github.com/OpenGATE/GateContrib/blob/master/imaging/CT/fixedForcedDetectionCT/mac/monteCarloCT.mac>
of the fixed forced detection example.
Please report the meaningless messages if you get any...
Simon

On Sun, Oct 11, 2020 at 12:19 PM Gábor Légrádi <gabor.legradi at 3dhistech.com>
wrote:

> Thank you, hsl...!
>
> Anyway, may I ask some more general questions?
>
>     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
>         - X-ray source with spectrum.
>         - Interaction of X-ray and matter below 130keV, i.e.
> photoelectric effect, Compton- and Raleigh-scatter.
>         - Detector response.
>     In this case what flags and settings do you recommend for GEANT4 and
> GATE4 build?
>
>     2. Anyway, how can I find out myself such dependencies? Meanwhile I
> succeeded to compile GEANT4 with the following flags:
> 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/
>
> 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 case 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.
>
> Hoping that my point is clear,
> Gabor
>
>
> *Gábor Légrádi*
> Product Development Manager
>
> 3DHISTECH Ltd. <https://www.3dhistech.com/>
> H-1141 Budapest, Öv utca 3., HUNGARY
> Jabber: gabor.legradi at 3dhistech.com
> Phone: +36 1 467-5600
> Fax: +36 1 445-0920
>
> [image: 3DHISTECH Twitter] <https://twitter.com/3DHISTECH_LTD>[image:
> 3DHISTECH Linkedin] <https://www.linkedin.com/company/3dhistech-ltd-/>[image:
> 3DHISTECH Facebook] <https://www.facebook.com/3DHISTECH/>[image:
> 3DHISTECH Instagram] <https://www.instagram.com/3dhistech/> [image:
> 3DHISTECH Youtube] <https://www.youtube.com/user/3DHISTECH>[image:
> 3DHISTECH Website] <https://www.3dhistech.com/>
>
> On Sat, Oct 10, 2020 at 11:47 AM hsl1196997465 at gmail.com <
> hsl1196997465 at gmail.com> wrote:
>
> RTK is required for this function, you should install ITK with RTK ON
> firstly, and recompile Gate with ITK ON .
>
> ---Original---
> *From:* "Gábor Légrádi"<gabor.legradi at 3dhistech.com>
> *Date:* Sat, Oct 10, 2020 06:41 AM
> *To:* "gate-users at lists.opengatecollaboration.org"<
> gate-users at lists.opengatecollaboration.org>;
> *Subject:* [Gate-users] Actor type: FixedForcedDetectionActor does not
> exist!
>
> Dear All,
>
>
> 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:
> https://github.com/OpenGATE/GateContrib/tree/master/imaging/CT/fixedForcedDetectionCT
>  .
>
> On my host Gate can not accomplish this line:
> /gate/actor/addActor FixedForcedDetectionActor ffda
> Warning message:
>  *** WARNING ***   Actor type: FixedForcedDetectionActor does not exist!
>
> And then, naturally, ffda can not be attached and Gate stops with error:
> /gate/actor/ffda/attachTo                     world
> [G4-cerr] command  not found
>
> Any hint?
>
>
> I installed the whole stuff on Ubuntu 20.04. Here are my notes about the installation:
>
>
> **** GEANT4 ****
> sudo apt-get update
> sudo apt upgrade
> sudo apt  install cmake
>
> Downloaded and unzipped: https://geant4.web.cern.ch/support/download
>  -> GNU or Linux tar format, compressed using gzip (33.2Mb, 34833550 bytes)
>
> [...]
>
> cmake command:
>
> 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
>
> make -j4
> make install
>
> **** ROOT ****
>
> 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)
>
> Binary loaded from here and extracted:
> https://root.cern/install/all_releases/ -> Release 6.22/02 - 17 Aug 2020
>
> **** GATE ****
> sudo apt install cmake-curses-gui
> sudo apt-get install libxml2-dev
>
> sudo apt-get install libc6-dev libssl-dev dpkg-dev debhelper fakeroot libxml2-dev libxslt1-dev
>
> Downloaded and extracted:
> https://github.com/OpenGATE/Gate/archive/v9.0.zip
>
> [...]
>
> cd gate_v9.0
> ccmake ../Gate-9.0-dwnld
>
> Then I set these settings:
> BUILD_TESTING: ON
> CMAKE_BACKWARD_COMPATIBILITY: 2.4
> CMAKE_BUILD_TYPE: Release
> CMAKE_INSTALL_PREFIX:
> EXECUTABLE_OUTPUT_PATH:
> GATE_COMPILE_WITH_NATIVE: OFF
> GATE_DOWNLOAD_BENCHMARKS_DATA: ON
> GATE_USE_DAVIS: OFF
> GATE_USE_ECAT7: OFF
> GATE_USE_GEANT4_UIVUS: ON
> GATE_USE_ITK: OFF
> GATE_USE_LMF: OFF
> GATE_USE_OPTICAL: ON
> GATE_USE_RTK: OFF
> GATE_USE_SYSTEM_CLHEP: OFF
> GATE_USE_TORCH: OFF
> GATE_USE_XRAYLIB: OFF
> Geant4_DIR:
> LIBRARY_OUTPUT_PATH:
> ROOTCINT_EXECUTABLE:
>
> g: Generate and exit
>
> make -j4
> make install
>
> source /home/lg/root/bin/thisroot.sh
> source /home/lg/geant4.10.06.p02/bin/geant4.sh
> export PATH=$PATH:/home/lg/gate_v9.0/bin
>
> Gábor Légrádi
> Product Development Manager
> 3DHISTECH Ltd.
> H-1141 Budapest, Öv utca 3., HUNGARY
> Jabber: gabor.legradi at 3dhistech.com
> Phone: +36 1 467-5600
> Fax: +36 1 445-0920
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
> ------------------------------
> *From:* Gate-users <gate-users-bounces at lists.opengatecollaboration.org>
> on behalf of Gábor Légrádi <gabor.legradi at 3dhistech.com>
> *Sent:* Saturday, October 10, 2020 12:41:34 AM
> *To:* gate-users at lists.opengatecollaboration.org
> *Subject:* [Gate-users] Actor type: FixedForcedDetectionActor does not
> exist!
>
> Dear All,
>
> 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:
> https://github.com/OpenGATE/GateContrib/tree/master/imaging/CT/fixedForcedDetectionCT
> .
>
> On my host Gate can not accomplish this line:
> /gate/actor/addActor FixedForcedDetectionActor ffda
> Warning message:
> <!> *** WARNING *** <!>  Actor type: FixedForcedDetectionActor does not
> exist!
>
> And then, naturally, ffda can not be attached and Gate stops with error:
> /gate/actor/ffda/attachTo                     world
> [G4-cerr] command </gate/actor/ffda/attachTo                     world>
> not found
>
> Any hint?
>
> I installed the whole stuff on Ubuntu 20.04. Here are my notes about the
> installation:
>
>
> **** GEANT4 ****
> sudo apt-get update
> sudo apt upgrade
> sudo apt  install cmake
>
> Downloaded and unzipped: https://geant4.web.cern.ch/support/download ->
> GNU or Linux tar format, compressed using gzip (33.2Mb, 34833550 bytes)
>
> [...]
>
> cmake command:
> 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
>
> make -j4
> make install
>
> **** ROOT ****
> 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)
>
> Binary loaded from here and extracted:
> https://root.cern/install/all_releases/ -> Release 6.22/02 - 17 Aug 2020
>
> **** GATE ****
> sudo apt install cmake-curses-gui
> sudo apt-get install libxml2-dev
> sudo apt-get install libc6-dev libssl-dev dpkg-dev debhelper fakeroot
> libxml2-dev libxslt1-dev
>
> Downloaded and extracted:
> https://github.com/OpenGATE/Gate/archive/v9.0.zip
>
> [...]
>
> cd gate_v9.0
> ccmake ../Gate-9.0-dwnld
>
> Then I set these settings:
> BUILD_TESTING: ON
> CMAKE_BACKWARD_COMPATIBILITY: 2.4
> CMAKE_BUILD_TYPE: Release
> CMAKE_INSTALL_PREFIX: <IT WAS SET PROPERLY>
> EXECUTABLE_OUTPUT_PATH: <NONE>
> GATE_COMPILE_WITH_NATIVE: OFF
> GATE_DOWNLOAD_BENCHMARKS_DATA: ON
> GATE_USE_DAVIS: OFF
> GATE_USE_ECAT7: OFF
> GATE_USE_GEANT4_UIVUS: ON
> GATE_USE_ITK: OFF
> GATE_USE_LMF: OFF
> GATE_USE_OPTICAL: ON
> GATE_USE_RTK: OFF
> GATE_USE_SYSTEM_CLHEP: OFF
> GATE_USE_TORCH: OFF
> GATE_USE_XRAYLIB: OFF
> Geant4_DIR: <IT WAS SET PROPERLY>
> LIBRARY_OUTPUT_PATH: <NONE>
> ROOTCINT_EXECUTABLE:  <IT WAS SET PROPERLY>
>
> g: Generate and exit
>
> make -j4
> make install
>
> source /home/lg/root/bin/thisroot.sh
> source /home/lg/geant4.10.06.p02/bin/geant4.sh
> export PATH=$PATH:/home/lg/gate_v9.0/bin
>
> Gábor Légrádi
> Product Development Manager
> 3DHISTECH Ltd.
> H-1141 Budapest, Öv utca 3., HUNGARY
> Jabber: gabor.legradi at 3dhistech.com
> Phone: +36 1 467-5600
> Fax: +36 1 445-0920
>
>
>
> 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., info at 3dhistech.com) 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.
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
> 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., info at 3dhistech.com) 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.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c7dcba3f-543d-4ce0-94e4-89c46bd56b07.png
Type: image/png
Size: 559 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1fed76bc-471a-4368-a0d9-beacfcedad45.png
Type: image/png
Size: 509 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6541aae1-dc20-4094-ba81-2457709de827.png
Type: image/png
Size: 486 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8d6f8b70-e154-4830-98d0-3273539a91b4.png
Type: image/png
Size: 598 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 81733003-d740-44dc-a9b7-c4f6d8b9df38.png
Type: image/png
Size: 491 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daf7c96d-6cdb-4142-aecf-22825d78717a.png
Type: image/png
Size: 860 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201012/9d38cda8/attachment-0011.png>


More information about the Gate-users mailing list