Hello, I simulated a simple cylindrical ionization chamber model and got the weight potential of each plate through the COMSOL software.
The visualization of particle trajectory, electric field and signal are carried out in my main() function. However, The first two items are realized successfully, but the current signals are all zero(That’s incorrect). These are the outputs of my runs. Can you please help me to see what is wrong with the program I provided?
It seems that you are using the SetWeightingField function to import the weighting potential instead of the intended SetWeightingPotential function. To indicate to the AvalancheMicroscopic class that the weighting potential should be used for the signal calculations instead of of the weighting field, its UseWeightingPotential function can be used.
I see nothing unusual in the terminal readout. The fact that the code can be run successfully on another device could indicate an installation issue. To make sure it is not the code, could you provide me with all the files by sending them to firstname.lastname@example.org? This way, I can try and run it myself and take a closer look. I will keep the discussion on this forum so it can be helpful for other users as well.
One small point, the code on lines 178-192 in your script are needed to make the header of COMSOL’s weighting potential map file compatible with the one expected by the import function?
Thank you again for your reply！
The explanation of the code in lines 178-192 you understand is correct, because the file exported from COMSOL using parametric scanning will have information about each parameter.
In addition, when I was looking for installation problems, I found that I have an example (Geant4GarfieldInterface) that runs with an error message like the one below, and I don’t know if this has anything to do with the problem I’m facing.
Thank you very much for your patient reply! This image shows the version of the compiler used by my geant4 and root. I do not know much about this, please help me to see if it is compatible
I am doing this after reading this article. Do I have to update my compiler version （C++17） to be able to run this example? Also, I installed ROOT by downloading the installer and adding environment variables, but it seems that I can’t “Cmake” the compiler to update it this way. Do I have to change the installation method to reinstall ROOT？
Thank you for your reply！ I don’t quite understand what you mean, are you trying to say that I need to update the compiler version? Or do I need to reinstall Ubuntu or ROOT? (I’m new to VMs and don’t know much about them, so sorry)
I would be grateful if your answer！