Hello! I’m new user to Garfield++. Please tell me, I want to calculate the gas gain for gem, I have a couple of questions and clarifications.
-
To calculate the gas gain, I run the code that was given on the website (Examples/Gem/gem.C · master · garfield / garfieldpp · GitLab ), here the primary electrons are written as: nEvents, and the sum of the number of electrons formed in the avalanche using: std::cout " " total electron: " " netot " endl; ?
-
Then I need to change the voltage at the cathode and anode
const double width = 2.;
comp-> AddPlaneY(-width / 2, 0., “Cathode”);
AddPlaneY(width / 2, 1000., “Anode”);
comp->SetMagneticField(0.5, 0., 0);
also on the gem plates above and below, in order to get the dependence of the gas gain on the voltage. Unfortunately, no matter how I change the values at the cathode and anode, the number of electrons does not change from this in any way, maybe I have an error in the code? -
Do I understand correctly, in order to change the voltage on the gem top and bottom, also on the cathode and anode, I have to re-download the files from ansys and change the voltage there, or am I wrong?
I will be grateful for any help!