OpenGATE / Gate

Official public repository of Gate
http://www.opengatecollaboration.org
GNU Lesser General Public License v3.0
232 stars 261 forks source link

SpectrumActor in vGATE v9.0 is not working #441

Open GuardiolaC opened 3 years ago

GuardiolaC commented 3 years ago

Dear all,

I have started using the vGATE vs9.0 option, but I think that the EnergySpectrumActor is not working there. I have used exactly the same macro in standard GATE versions, e.g. v8.1, and that Actor is properly working there.

In the vGATE vs9.0, it gives me back the Energy spectra arriving to the SV, not the Energy deposited etc as it should. I have double checked it by adding a Phase Space actor in the same position and, effectively, it gives the energy spectra impiging therein, but not the other informations, e.g. the energy deposition per event ('edepHisto'), the energydeposition per track ('edepTrackHisto') etc. I have checked several times by using different energies, positions, etc.

I hope someone can figure it out since I would like to continue using the vGATE. Thanks in advance, Consuelo

dsarrut commented 3 years ago

Hello,

could you try with 9.1 please? And check benchmark t10 : https://github.com/OpenGATE/GateBenchmarks/tree/master/t10_SpectroGamma

thanks

GuardiolaC commented 3 years ago

Hi David, Thanks for the tip. I was just trying the vGATE9.0 to check the vGATE performance in a virtual machine. Indeed my code (and the associated EnergySpectrumActor) was correctly working in the Gate 8.1 version, but I am finding some disagreements with the experimental results and I wanted to check in another version. I'm installing Gate 9.1 and I'll check it. Best, Consuelo

andiresch commented 3 years ago

Hi Consuelo, there were major changes in the EnergySpectrumActor after 8.1 and some bug fixes from v9.0 to 9.1. Particularly the notation to enable the spectra changed. If I remember correctly, previously by activating the "Energy spectrum" , actually the energy deposition spectrum was enabled. Now the energy spectrum gives you the kinetic energy when you enable the energy spectrum and to extract the energy deposition you need a separate command. Could you check whether the wiki is up to date and a kind of clear?

best, andreas

GuardiolaC commented 3 years ago

Hi Andreas, Thanks for you email. I have been reading the SpectrumActor in the update Wiki and, for me, it is a bit confusing. I am not anymore sure which one is the energy deposition. Which one is exactly the energy deposited into the attached volumen? I would appreciate if you may clarify it. Thanks in advance, Consuelo

dsarrut commented 3 years ago

Hi @andiresch and @GuardiolaC, did you manage to discuss about the SpectrumActor ?

thanks David

andiresch commented 3 years ago

Hi David, we are in contact and will post here relevant things :-)

cheers, andreas

dsarrut commented 3 years ago

perfect 👍 ;) !

GuardiolaC commented 3 years ago

Hi David,

Andreas sent me many advices that I am trying. I was not able to advance more since I was (and I am right now) in 2 independent accelerator experiments in Cyrcé and ALTO these days for, indeed, taking more experimental data regarding this question.

In parallel, one of my students run the same simulation in Geant4 directly just to double check and he found the same problem in the distal edge...

I will give feedback to Andreas in few days to try to understand what happens.

Best Consuelo

dsarrut commented 3 years ago

thanks a lot, no problem (nothing urgent)!

yuxiXo commented 1 year ago

I just started learning gate, why does this keep happening? e.g. “command</gate/Volume_Name/> not found”