I want to count the number of times that an electron ionizes a region filled with gas. I have approached this 2 ways. In the first approach I modified the TestEm1 example slightly by adding a material consisting of a 70/30 mix of Ar/CO2. I then simulated 2.3 MeV electrons hitting a 16 mm thick volume filled with the Ar/CO2 mixture. If I am understanding this example the histogram of the number of primary particle steps should be equivalent to the number of ionizations. I then executed the runs.mac file suitably modified to use the correct particle, energy, and detector size.
The run produces 2 histograms for the number of primary particle steps, one with a cut size of 1mm and one with a cut size of .01mm. The resulting histograms for the run are attached as text files. testEm1hist1mm.txt (198 Bytes) testEm1hist10um.txt (269 Bytes) If I am understanding these histograms, number of times there were 1, 2, or 3 steps is on line 9 and the number of times there were 3-6 steps is on line 10, etc. But why are there so many more steps with the 10um cut file? Is it that the larger cut value results in fewer ionizations contributing to a step because they do not meet an energy threshold?
I also tried to use a modification of example B1 to look for primary particle ionizations. I still don’t know enough about geant4 to be able to add a histogram to that example so I passed the simulation output through some filters, first restricting results to those with an eIoni process in the volume with the gas mixture and then eliminating secondary particle ionizations by eliminating steps with energy less than half the input energy and those with a step ID of 1.
When I did that and looked at the results I counted about 2100 events with step IDs 2-4, but no events with a step ID greater than 4 (which I equated to a 3rd ionization by a primary electron). In addition, When I attempted to change the step cut in the same way as done in TestEm1, there was no significant change in the result.
My first question is: Is my understanding that counting primary particle steps is equivalent to counting ionizations correct? Is my understanding of the reason that changing the cut value changes the histogram correct? The next question is what is wrong with my reasoning regarding counting ionizations by filtering steps to eliminate secondary ionizations?